/* =================================================================
   ADMIN DASHBOARD — Clean Modern UI (Global)
   Fonts: Outfit + Inter loaded via app.css / App.razor
   ================================================================= */

/* =================================================================
   PAGE LAYOUT
   ================================================================= */
.admin-page {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  animation: adminFadeIn 0.5s ease-out;
  padding: 1.25rem 1.5rem;
  position: relative;
  min-height: 100vh;
  background: #ffffff;
}

.admin-page h1,
.admin-page h2,
.admin-page h3,
.admin-page h4,
.admin-page h5,
.admin-page h6 {
  font-family: "Outfit", "Inter", sans-serif;
}

/* =================================================================
   PAGE HEADER
   ================================================================= */
.page-header {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-header-left h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.1rem;
  letter-spacing: -0.025em;
}

.page-header-left p {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 0;
  font-weight: 400;
}

/* =================================================================
   FILTER BAR
   ================================================================= */
.filter-bar {
  display: flex;
  gap: 0.625rem;
  align-items: center;
}

.search-input,
.filter-select-wrapper {
  position: relative;
}

.filter-bar i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  font-size: 0.85rem;
  z-index: 10;
}

.admin-page .filter-bar input,
.admin-page .filter-bar select {
  padding-left: 34px;
  font-size: 0.8rem;
  font-weight: 450;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  height: 36px;
  color: #374151;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-page .filter-bar .search-input input {
  min-width: 220px;
}
.admin-page .filter-bar .filter-select-wrapper select {
  min-width: 170px;
  padding-right: 36px;
  cursor: pointer;
  appearance: none;
}

.admin-page .filter-bar input:focus,
.admin-page .filter-bar select:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
  outline: none;
}

/* =================================================================
   STATS CARDS
   ================================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.stat-card {
  background: #ffffff;
  border: 1.5px solid #f3f4f6;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
  animation: statSlideUp 0.45s ease-out backwards;
}

.stat-card:hover {
  border-color: #e5e7eb;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.stat-card--active {
  border-color: var(--accent) !important;
  background: var(--accent-bg) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent), 0 4px 12px rgba(0,0,0,0.06) !important;
}

.stat-card--active .stat-value {
  color: var(--accent);
}

.stat-total   { --accent: #6366f1; --accent-bg: #eef2ff; }
.stat-approved { --accent: #10b981; --accent-bg: #ecfdf5; }
.stat-review  { --accent: #3b82f6; --accent-bg: #eff6ff; }
.stat-inprogress { --accent: #f59e0b; --accent-bg: #fffbeb; }
.stat-pastdue { --accent: #ef4444; --accent-bg: #fef2f2; }

.stat-card:nth-child(1) { animation-delay: 0.04s; }
.stat-card:nth-child(2) { animation-delay: 0.08s; }
.stat-card:nth-child(3) { animation-delay: 0.12s; }
.stat-card:nth-child(4) { animation-delay: 0.16s; }
.stat-card:nth-child(5) { animation-delay: 0.20s; }

.stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
  background: var(--accent-bg, #f3f4f6);
  color: var(--accent, #6b7280);
}

.stat-card:hover .stat-icon {
  transform: scale(1.06);
}

.stat-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.stat-label {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.stat-value {
  font-size: 1.375rem;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* =================================================================
   TABLE CARD
   ================================================================= */
.admin-page .table-card {
  background: #ffffff;
  border-radius: 10px;
  border: 1.5px solid #f3f4f6;
  overflow: hidden;
  animation: statSlideUp 0.45s ease-out backwards;
  animation-delay: 0.25s;
}

.table-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.table-header-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.table-header-actions {
  display: flex;
  gap: 0.5rem;
}

.table-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  font-family: "Outfit", sans-serif;
}
.record-count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #6366f1;
  background: #eef2ff;
  padding: 2px 10px;
  border-radius: 20px;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.action-btn:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
}

/* Table */
.admin-page .table-container {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.admin-page .table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: fixed;
}

.admin-page .table th {
  background: #f9fafb;
  color: #6b7280;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.875rem;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}

.admin-page .table tbody tr {
  background: #ffffff;
  transition: background-color 0.15s ease;
}
.admin-page .table tbody tr:hover {
  background: #f9fafb;
}

.admin-page .table td {
  padding: 0.5rem 0.875rem;
  vertical-align: middle;
  font-size: 0.8rem;
  color: #374151;
  border: none;
  border-bottom: 1px solid #f3f4f6;
}

.admin-page .table th:nth-child(1),
.admin-page .table td:nth-child(1) { width: 13%; }
.admin-page .table th:nth-child(2),
.admin-page .table td:nth-child(2) { width: 19%; }
.admin-page .table th:nth-child(3),
.admin-page .table td:nth-child(3) { width: 22%; }
.admin-page .table th:nth-child(4),
.admin-page .table td:nth-child(4) { width: 16%; }
.admin-page .table th:nth-child(5),
.admin-page .table td:nth-child(5) { width: 13%; }
.admin-page .table th:nth-child(6),
.admin-page .table td:nth-child(6) { width: 17%; }

.admin-page .po-cell-main,
.admin-page .po-cell-sub {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
}

.admin-page .po-cell-main { line-height: 1.3; }
.admin-page .po-cell-sub { line-height: 1.2; }

.admin-page .clamp-1 { -webkit-line-clamp: 1; }
.admin-page .clamp-2 { -webkit-line-clamp: 2; }

.admin-page .table td.text-end,
.admin-page .table th.text-end {
  white-space: nowrap;
}

/* Row Highlights */
.admin-page .row-past-due {
  background: #fef2f2 !important;
}
.admin-page .row-past-due:hover {
  background: #fee2e2 !important;
}
.admin-page .row-past-due td:first-child {
  box-shadow: inset 3px 0 0 #ef4444;
}

.admin-page .row-due {
  background: #fffbeb !important;
}
.admin-page .row-due:hover {
  background: #fef3c7 !important;
}
.admin-page .row-due td:first-child {
  box-shadow: inset 3px 0 0 #f59e0b;
}

/* =================================================================
   BADGES
   ================================================================= */
.admin-page .badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
}
.admin-page .badge-danger {
  background: #fef2f2;
  color: #dc2626;
}
.admin-page .badge-warning {
  background: #fffbeb;
  color: #d97706;
}
.admin-page .badge-success {
  background: #ecfdf5;
  color: #059669;
}
.admin-page .badge-info {
  background: #eff6ff;
  color: #2563eb;
}
.admin-page .badge-primary {
  background: #eef2ff;
  color: #4f46e5;
}
.admin-page .badge-secondary {
  background: #f3f4f6;
  color: #6b7280;
}

/* =================================================================
   PROGRESS BAR
   ================================================================= */
.admin-page .progress {
  background-color: #f3f4f6;
  border-radius: 999px;
  overflow: hidden;
  height: 6px;
}
.admin-page .progress-bar {
  transition: width 0.6s ease;
  border-radius: 999px;
}

/* =================================================================
   BUTTONS
   ================================================================= */
.admin-page .btn-sm {
  font-size: 0.725rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 550;
  transition: all 0.15s ease;
}
.admin-page .btn-primary {
  background: #4f46e5;
  color: white;
  border: none;
}
.admin-page .btn-primary:hover {
  background: #4338ca;
  color: white;
}
.admin-page .btn-success {
  background: #059669;
  color: white;
  border: none;
}
.admin-page .btn-success:hover {
  background: #047857;
  color: white;
}
.admin-page .btn-danger {
  background: #dc2626;
  color: white;
  border: none;
}
.admin-page .btn-danger:hover {
  background: #b91c1c;
  color: white;
}
.admin-page .btn-secondary {
  background: #ffffff;
  color: #374151;
  border: 1.5px solid #e5e7eb;
}
.admin-page .btn-secondary:hover {
  background: #f9fafb;
  color: #111827;
  border-color: #d1d5db;
}
.admin-page .btn-ghost {
  background: transparent;
  color: #9ca3af;
  border: none;
}
.admin-page .btn-ghost:hover {
  background: #f3f4f6;
  color: #374151;
}
.admin-page .btn-outline-primary {
  background: transparent;
  color: #4f46e5;
  border: 1.5px solid #c7d2fe;
}
.admin-page .btn-outline-primary:hover {
  background: #eef2ff;
  border-color: #a5b4fc;
}

/* Link Button Group */
.admin-page .link-btn-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.admin-page .action-cell-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.admin-page .timeline-btn.is-active {
  background: #eef2ff;
  color: #4338ca;
}

.admin-page .timeline-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  max-height: 280px;
  overflow: auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);
  z-index: 30;
  text-align: left;
}

.admin-page .timeline-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem 0.4rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
}

.admin-page .timeline-popover-loading,
.admin-page .timeline-empty {
  padding: 0.75rem;
  font-size: 0.74rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.admin-page .timeline-list {
  list-style: none;
  margin: 0;
  padding: 0.4rem 0.55rem 0.55rem;
}

.admin-page .timeline-list li {
  border-left: 2px solid #e5e7eb;
  padding: 0.2rem 0 0.45rem 0.55rem;
  margin-left: 0.25rem;
}

.admin-page .timeline-list li:last-child {
  padding-bottom: 0.2rem;
}

.admin-page .timeline-action {
  font-size: 0.75rem;
  color: #111827;
  font-weight: 600;
}

.admin-page .timeline-time {
  color: #6b7280;
  font-size: 0.69rem;
}

/* Due Date Cell */
.admin-page .due-date-cell {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* =================================================================
   MODALS
   ================================================================= */
.admin-page .modal-backdrop {
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.admin-page .modal-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.admin-page .modal-header {
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
  padding: 0.875rem 1.25rem;
}
.admin-page .modal-title {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
}
.admin-page .modal-body {
  padding: 1.125rem 1.25rem;
}
.admin-page .modal-footer {
  padding: 0.75rem 1.25rem;
  background: #f9fafb;
  border-top: 1px solid #f3f4f6;
}

/* Submission review modal polish */
.admin-page .submission-modal-dialog {
  max-width: 900px;
}
.admin-page .submission-modal-content {
  border-radius: 16px;
  box-shadow: 0 30px 70px -28px rgba(2, 6, 23, 0.45);
  overflow: hidden;
}
.admin-page .submission-modal-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.75rem 1.1rem;
}
.admin-page .submission-modal-header .modal-title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.admin-page .submission-modal-body {
  background: #f8fafc;
  padding: 1rem;
  max-height: 72vh;
  overflow-y: auto;
}
.admin-page .submission-modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 0.625rem 1.1rem;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
}

.admin-page .submission-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.34);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
}

.admin-page .submission-modal-shell {
  z-index: 2010;
}

/* ── Status Banner ── */
.admin-page .sub-status-banner {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 1px solid;
}
.admin-page .sub-status-banner--review {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f9ff 100%);
  border-color: #bfdbfe;
  color: #1e40af;
}
.admin-page .sub-status-banner--approved {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: #bbf7d0;
  color: #166534;
}
.admin-page .sub-status-banner--default {
  background: #f9fafb;
  border-color: #e5e7eb;
  color: #374151;
}
.admin-page .sub-status-banner__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.95rem;
}
.admin-page .sub-status-banner--review .sub-status-banner__icon {
  background: #dbeafe;
  color: #2563eb;
}
.admin-page .sub-status-banner--approved .sub-status-banner__icon {
  background: #d1fae5;
  color: #059669;
}
.admin-page .sub-status-banner--default .sub-status-banner__icon {
  background: #f3f4f6;
  color: #6b7280;
}
.admin-page .sub-status-banner__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.admin-page .sub-status-banner__label {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
}
.admin-page .sub-status-banner__date {
  font-size: 0.775rem;
  opacity: 0.7;
}

/* ── Section ── */
.admin-page .sub-section {
  margin-bottom: 1rem;
}
.admin-page .sub-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 0.825rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 0.5rem 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e5e7eb;
}
.admin-page .sub-section__title i {
  font-size: 0.9rem;
  color: #9ca3af;
}
.admin-page .sub-section__unit {
  margin-left: auto;
  font-size: 0.675rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: #9ca3af;
  background: #f3f4f6;
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
  border: 1px solid #e5e7eb;
}

/* ── Data Grid ── */
.admin-page .sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5rem;
}

/* ── Data Card ── */
.admin-page .sub-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-page .sub-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}
.admin-page .sub-card__label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}
.admin-page .sub-card__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  word-break: break-word;
}
.admin-page .sub-card__value--numeric {
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.admin-page .sub-card__unit {
  font-size: 0.7rem;
  font-weight: 400;
  color: #9ca3af;
}

/* Filled card (non-zero values) */
.admin-page .sub-card--filled {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
  border-color: #a7f3d0;
}
.admin-page .sub-card--filled .sub-card__value {
  color: #065f46;
}

/* ── Totals Bar ── */
.admin-page .sub-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}
.admin-page .sub-totals__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 140px;
}
.admin-page .sub-totals__label {
  font-size: 0.675rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-page .sub-totals__value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e40af;
  font-variant-numeric: tabular-nums;
}
.admin-page .sub-totals__unit {
  font-size: 0.75rem;
  font-weight: 400;
  color: #93c5fd;
}

/* Email Preview */
.admin-page .email-preview {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.875rem 1rem;
  font-size: 0.8rem;
}

/* Due Date Info */
.admin-page .due-date-info {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  font-size: 0.8rem;
}

/* Form Controls inside modals */
.admin-page .form-control {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  color: #374151;
}
.admin-page .filter-bar .form-control {
  padding-left: 34px;
}
.admin-page .form-control:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
  outline: none;
}
.admin-page .form-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.375rem;
}

/* Alerts inside modals */
.admin-page .alert {
  border-radius: 10px;
  font-size: 0.8125rem;
  border: none;
  font-weight: 450;
}
.admin-page .alert-info {
  background: #eff6ff;
  color: #1e40af;
}
.admin-page .alert-success {
  background: #ecfdf5;
  color: #065f46;
}
.admin-page .alert-warning {
  background: #fffbeb;
  color: #92400e;
}
.admin-page .alert-danger {
  background: #fef2f2;
  color: #991b1b;
}

/* =================================================================
   PAGINATION
   ================================================================= */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border-top: 1px solid #f3f4f6;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pagination-info {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 400;
}
.pagination-controls {
  display: flex;
  gap: 0.25rem;
}
.pagination-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  border: 1.5px solid #e5e7eb;
  color: #6b7280;
  font-weight: 550;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.pagination-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}
.pagination-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pagination-btn--active {
  background: #4f46e5 !important;
  color: white !important;
  border: none !important;
}
.pagination-size select {
  height: 32px;
  border-radius: 8px;
  padding: 0 0.75rem;
  font-size: 0.75rem;
  border: 1.5px solid #e5e7eb;
  background: #ffffff;
  font-weight: 450;
  color: #6b7280;
  cursor: pointer;
}
.pagination-ellipsis {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
}

/* =================================================================
   EMPTY STATE
   ================================================================= */
.empty-state {
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.empty-icon {
  font-size: 3rem;
  color: #d1d5db;
  margin-bottom: 1rem;
}
.empty-state h5 {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: #374151;
  margin-bottom: 0.25rem;
}
.empty-state p {
  color: #9ca3af;
  font-size: 0.85rem;
}

/* =================================================================
   ANIMATIONS
   ================================================================= */
@keyframes adminFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes statSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 1280px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .page-header { flex-direction: column; align-items: flex-start; }
  .filter-bar { width: 100%; }
  .search-input input { min-width: 0; flex: 1; }
}
@media (max-width: 768px) {
  .admin-page { padding: 0.75rem 0.625rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0.5rem; }
  .stat-card { padding: 0.625rem 0.75rem; }
  .stat-value { font-size: 1.15rem; }
  .stat-icon { width: 32px; height: 32px; font-size: 0.9rem; border-radius: 8px; }
  .filter-bar { flex-direction: column; }
  .search-input input, .filter-select-wrapper select { min-width: 100%; width: 100%; }
  .admin-page .table td, .admin-page .table th { padding: 0.375rem 0.625rem; font-size: 0.725rem; }
  .pagination-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}
