/* donor history css */

/* General Layout */
html, body {
  overflow-x: hidden !important;
}

.donor-history-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.donor-history-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #047857; /* Tailwind green-700 */
  margin-bottom: 1.5rem;
  text-align: left;
}

/* Empty state */
.no-donations {
  color: #6b7280; /* Tailwind gray-500 */
  text-align: center;
  font-size: 1rem;
}

/* Table Wrapper */
.table-wrapper {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  overflow-x: auto;
}

.donations-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.donations-table thead {
  background-color: #16a34a; /* Tailwind green-600 */
  color: #ffffff;
}

.donations-table th,
.donations-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.donations-table tr:nth-child(even) {
  background-color: #f9fafb;
}

.donations-table tr:hover {
  background-color: #f1f5f9;
  transition: background-color 0.2s ease-in-out;
}

/* Links */
.campaign-link {
  color: #047857;
  font-weight: 600;
  text-decoration: none;
}

.campaign-link:hover {
  text-decoration: underline;
}

/* Status Colors */
.status {
  font-weight: 600;
}

.status.completed {
  color: #16a34a;
}

.status.pending {
  color: #f59e0b;
}

.status.failed {
  color: #dc2626;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .donor-history-title {
    text-align: center;
  }

  .donations-table {
    min-width: 100%;
  }
}

/* donor dashboard css */

/* Layout container */
.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  background-color: #f9fafb;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #047857;
  text-align: center;
  margin-bottom: 2rem;
}

/* Grid for campaigns */
.campaign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* Campaign cards */
.campaign-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.campaign-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.campaign-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.campaign-card .card-body {
  padding: 1rem;
}

.campaign-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

.campaign-card p {
  font-size: 0.95rem;
  color: #4b5563;
  margin-bottom: 1rem;
  min-height: 48px;
}

/* Buttons */
.btn-view {
  display: inline-block;
  background-color: #047857;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-view:hover {
  background-color: #065f46;
}

/* Pagination */
.pagination-wrapper {
  margin-top: 2rem;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 640px) {
  .campaign-card img {
    height: 180px;
  }
}
