/* admin campaign css */
/* Global admin styles */

.admin-campaigns-container {
  padding: 1.5rem;
  overflow-x: auto;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #1e293b;
}

/* Prevent horizontal scrollbars globally */
html, body {
  overflow-x: hidden !important;
}

.table-container {
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  max-width: 100%;
}

.campaigns-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.campaigns-table th,
.campaigns-table td {
  text-align: left;
  padding: 0.75rem;
}

.campaigns-table thead {
  background-color: #f1f5f9;
  font-weight: 600;
}

.campaigns-table tr:nth-child(even) {
  background-color: #f9fafb;
}

.campaigns-table tr:hover {
  background-color: #eef2ff;
  transition: background 0.2s ease-in-out;
}

/* Buttons */
.btn {
  padding: 0.35rem 0.75rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
  border: none;
  transition: background-color 0.2s;
}

.btn-approve {
  background-color: #16a34a;
  color: #fff;
}

.btn-approve:hover {
  background-color: #15803d;
}

.btn-reject {
  background-color: #dc2626;
  color: #fff;
}

.btn-reject:hover {
  background-color: #b91c1c;
}

.inline-form {
  display: inline-block;
  margin-right: 0.5rem;
}

/* Status colors */
.status-pending {
  color: #f59e0b;
  font-weight: 600;
}

.status-approved {
  color: #16a34a;
  font-weight: 600;
}

.status-rejected {
  color: #dc2626;
  font-weight: 600;
}


/* admin dashboard css */

/* Fix unwanted horizontal scroll */
html, body {
  overflow-x: hidden !important;
}

.dashboard-container {
  padding: 2rem;
  background-color: #f9fafb;
  max-width: 1200px;
  margin: 0 auto;
}

/* Title */
.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #047857;
  margin-bottom: 2rem;
  text-align: center;
}

/* Stat cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 0.75rem;
  padding: 1.25rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.stat-card.pending {
  border-left: 5px solid #f59e0b;
}
.stat-card.approved {
  border-left: 5px solid #16a34a;
}
.stat-card.donations {
  border-left: 5px solid #0284c7;
}

/* Campaign cards */
.section-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin: 1.5rem 0 1rem;
}

.campaign-card {
  background: white;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.campaign-card h3 {
  font-weight: 600;
  color: #111827;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.campaign-card .status {
  color: #6b7280;
  font-size: 0.9rem;
}

.inline-form {
  display: inline-block;
  margin-right: 0.5rem;
}

.btn-approve, .btn-reject {
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  color: white;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-approve {
  background-color: #16a34a;
}
.btn-approve:hover {
  background-color: #15803d;
}

.btn-reject {
  background-color: #dc2626;
}
.btn-reject:hover {
  background-color: #b91c1c;
}

/* Donations table */
.table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.donations-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.donations-table th, .donations-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.donations-table th {
  background-color: #f3f4f6;
  color: #111827;
  font-weight: 600;
}

.text-success {
  color: #16a34a;
  font-weight: 600;
}
.text-failed {
  color: #dc2626;
  font-weight: 600;
}

.pagination-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 640px) {
  .dashboard-container {
    padding: 1rem;
  }
  .stat-card {
    font-size: 0.9rem;
  }
  .campaign-card h3 {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* admin donations css */

.admin-donations-container {
  padding: 2rem;
  background-color: #f9fafb;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #047857;
  text-align: center;
  margin-bottom: 2rem;
}

/* Table styling */
.table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.donations-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.donations-table th,
.donations-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.donations-table th {
  background-color: #f3f4f6;
  font-weight: 600;
  color: #111827;
}

.donations-table tbody tr:hover {
  background-color: #f9fafb;
}

.text-success {
  color: #16a34a;
  font-weight: 600;
}

.text-failed {
  color: #dc2626;
  font-weight: 600;
}

.pagination-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .admin-donations-container {
    padding: 1rem;
  }

  .donations-table {
    font-size: 0.9rem;
  }
}


.stat-card.zakat {
    background-color: #fef6e4;
    color: #c77d00;
}
.stat-card.sadaqah {
    background-color: #e0f7e9;
    color: #008037;
}
.stat-card.tilth {
    background-color: #e3f2fd;
    color: #0277bd;
}

