/* ═══════════════════════════════════════════════════════════════
   AYLIN — Admin Panel Stylesheet
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600&family=Lato:wght@300;400;700&display=swap');

:root {
  --cream:      #FDFAF6;
  --beige-light:#F5EDD9;
  --beige:      #EDE0C8;
  --gold:       #C9A96E;
  --gold-dark:  #A8845A;
  --brown:      #8B5E3C;
  --brown-dark: #3D2B1F;
  --text:       #2C1810;
  --text-muted: #8A7060;
  --border:     #E8D5BA;
  --white:      #FFFFFF;
  --sidebar-w:  260px;

  --shadow-sm: 0 2px 8px rgba(139,94,60,0.08);
  --shadow-md: 0 4px 20px rgba(139,94,60,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.25s ease;
  --font-heading: 'Playfair Display', serif;
  --font-body:    'Lato', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-body); background: var(--cream); color: var(--text); min-height: 100vh; display: flex; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ─── Admin Layout ─────────────────────────────────────── */
.admin-sidebar {
  width: var(--sidebar-w);
  background: var(--brown-dark);
  min-height: 100vh;
  position: fixed;
  left: 0; top: 0;
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: var(--transition);
}

.admin-logo {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.admin-logo .name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
}
.admin-logo .badge {
  font-size: 0.62rem;
  background: var(--gold);
  color: var(--white);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 1rem 0;
  overflow-y: auto;
}
.nav-section-title {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 1rem 1.5rem 0.4rem;
  font-weight: 700;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  color: rgba(255,255,255,0.72);
  font-size: 0.88rem;
  transition: var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-left-color: var(--gold);
}
.sidebar-link .icon { font-size: 1.05rem; width: 20px; text-align: center; }
.sidebar-link .badge-count {
  margin-left: auto;
  background: var(--gold);
  color: var(--white);
  font-size: 0.65rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.admin-user-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.admin-avatar {
  width: 36px; height: 36px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}
.admin-user-info .name { color: var(--white); font-size: 0.88rem; font-weight: 700; }
.admin-user-info .role { font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.logout-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--transition);
}
.logout-btn:hover { background: rgba(192,57,43,0.3); color: #fff; border-color: rgba(192,57,43,0.5); }

/* Main content */
.admin-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Admin topbar */
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}
.page-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--brown-dark); }
.topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.topbar-actions .action-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text);
  position: relative;
}
.topbar-actions .action-icon:hover { background: var(--beige); color: var(--gold-dark); }
.topbar-actions .notif-badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: #C0392B;
  border-radius: 50%;
  border: 2px solid var(--white);
}

/* Admin content area */
.admin-content { padding: 2rem; flex: 1; }

/* ─── Stats Cards ──────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--gold);
}
.stat-card.blue::before    { background: #3B82F6; }
.stat-card.green::before   { background: #10B981; }
.stat-card.orange::before  { background: #F59E0B; }
.stat-card.purple::before  { background: #8B5CF6; }
.stat-card.red::before     { background: #EF4444; }

.stat-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.stat-card.gold   .stat-icon { background: rgba(201,169,110,0.15); color: var(--gold-dark); }
.stat-card.blue   .stat-icon { background: rgba(59,130,246,0.12); color: #2563EB; }
.stat-card.green  .stat-icon { background: rgba(16,185,129,0.12); color: #059669; }
.stat-card.orange .stat-icon { background: rgba(245,158,11,0.12); color: #D97706; }
.stat-card.purple .stat-icon { background: rgba(139,92,246,0.12); color: #7C3AED; }
.stat-card.red    .stat-icon { background: rgba(239,68,68,0.12);  color: #DC2626; }

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--brown-dark);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.stat-change { font-size: 0.78rem; margin-top: 0.6rem; display: flex; align-items: center; gap: 0.25rem; }
.stat-change.up   { color: #059669; }
.stat-change.down { color: #DC2626; }

/* ─── Admin Card ───────────────────────────────────────── */
.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.card-header h3 { font-size: 0.95rem; color: var(--brown-dark); }
.card-header .card-actions { display: flex; gap: 0.5rem; }
.card-body { padding: 1.5rem; }

/* ─── Admin Table ──────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table thead { background: var(--beige-light); }
.admin-table th {
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brown-dark);
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--beige-light);
  font-size: 0.88rem;
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--beige-light); }
.admin-table .no-data { text-align: center; color: var(--text-muted); padding: 2.5rem; }

/* Table images */
.tbl-img {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--beige-light);
  border: 1px solid var(--border);
}
.tbl-product { display: flex; align-items: center; gap: 0.75rem; }
.tbl-product .name { font-weight: 700; color: var(--brown-dark); font-size: 0.88rem; }
.tbl-product .sku  { font-size: 0.72rem; color: var(--text-muted); }

/* ─── Status Badges ────────────────────────────────────── */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-active    { background: #D1FAE5; color: #065F46; }
.badge-inactive  { background: #F3F4F6; color: #6B7280; }
.badge-pending   { background: #FEF3C7; color: #92400E; }
.badge-approved  { background: #D1FAE5; color: #065F46; }
.badge-rejected  { background: #FEE2E2; color: #991B1B; }
.badge-shipped   { background: #DBEAFE; color: #1E40AF; }
.badge-delivered { background: #D1FAE5; color: #065F46; }
.badge-cancelled { background: #FEE2E2; color: #991B1B; }
.badge-processing{ background: #E0E7FF; color: #3730A3; }
.badge-paid      { background: #D1FAE5; color: #065F46; }
.badge-failed    { background: #FEE2E2; color: #991B1B; }
.badge-admin     { background: rgba(201,169,110,0.2); color: var(--brown); }
.badge-customer  { background: var(--beige-light); color: var(--text-muted); }
.badge-featured  { background: rgba(201,169,110,0.2); color: var(--gold-dark); }

/* ─── Action Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--font-body);
}
.btn-primary { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); box-shadow: 0 4px 12px rgba(168,132,90,0.35); }
.btn-secondary { background: var(--brown-dark); color: var(--white); border-color: var(--brown-dark); }
.btn-secondary:hover { background: var(--brown); }
.btn-outline { background: transparent; color: var(--gold-dark); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--white); }
.btn-danger { background: #EF4444; color: var(--white); border-color: #EF4444; }
.btn-danger:hover { background: #DC2626; }
.btn-success { background: #10B981; color: var(--white); border-color: #10B981; }
.btn-success:hover { background: #059669; }
.btn-warning { background: #F59E0B; color: var(--white); border-color: #F59E0B; }
.btn-warning:hover { background: #D97706; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--beige-light); color: var(--text); }
.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.72rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.88rem; }
.btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }

/* ─── Forms ────────────────────────────────────────────── */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brown-dark); margin-bottom: 0.4rem; }
.form-label .req { color: #EF4444; }
.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--cream);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
  font-family: var(--font-body);
}
.form-control:focus { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(201,169,110,0.15); }
.form-control::placeholder { color: rgba(138,112,96,0.6); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-hint  { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.75rem; color: #EF4444; margin-top: 0.3rem; }
.input-group { display: flex; }
.input-group .input-prefix {
  padding: 0.65rem 0.9rem;
  background: var(--beige-light);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.input-group .form-control { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.input-group .form-control:focus { border-left: none; }

/* Toggle switch */
.toggle-wrap { display: flex; align-items: center; gap: 0.75rem; }
.toggle {
  position: relative;
  width: 44px; height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; bottom: 3px;
  background: var(--white);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-slider { background: var(--gold); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* Image upload */
.img-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
}
.img-upload-area:hover { border-color: var(--gold); background: rgba(201,169,110,0.05); }
.img-upload-area .icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 0.75rem; }
.img-upload-area p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.img-upload-area input { display: none; }
.uploaded-images { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.uploaded-img {
  position: relative;
  width: 90px; height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1.5px solid var(--border);
}
.uploaded-img img { width: 100%; height: 100%; object-fit: cover; }
.uploaded-img .remove-img {
  position: absolute;
  top: 3px; right: 3px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  cursor: pointer;
  border: none;
}

/* ─── Page Header ──────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.page-header h2 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--brown-dark); }
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; color: var(--text-muted); margin-top: 0.25rem; }
.breadcrumb a { color: var(--gold); }

/* ─── Toolbar ──────────────────────────────────────────── */
.toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  flex: 1;
  max-width: 320px;
}
.search-box input { border: none; background: transparent; font-size: 0.85rem; outline: none; width: 100%; }
.search-box .icon { color: var(--text-muted); }
.filter-select {
  padding: 0.5rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--white);
  font-size: 0.82rem;
  cursor: pointer;
  outline: none;
  color: var(--text);
}

/* ─── Dashboard Charts Placeholder ─────────────────────── */
.chart-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.chart-area { height: 240px; display: flex; align-items: flex-end; gap: 8px; padding: 1.5rem 1.5rem 0; }
.chart-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chart-bar {
  width: 100%;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: linear-gradient(to top, var(--gold-dark), var(--gold));
  transition: var(--transition);
  position: relative;
}
.chart-bar:hover { filter: brightness(1.1); }
.chart-bar::after {
  content: attr(data-value);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.65rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.chart-labels { display: flex; padding: 0.5rem 1.5rem 1rem; gap: 8px; }
.chart-label { flex: 1; text-align: center; font-size: 0.65rem; color: var(--text-muted); }

/* ─── Recent Activity ──────────────────────────────────── */
.activity-feed { display: flex; flex-direction: column; }
.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--beige-light);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.activity-dot.gold   { background: var(--gold); }
.activity-dot.green  { background: #10B981; }
.activity-dot.blue   { background: #3B82F6; }
.activity-dot.orange { background: #F59E0B; }
.activity-item .text { font-size: 0.82rem; color: var(--text); line-height: 1.5; }
.activity-item .time { font-size: 0.72rem; color: var(--text-muted); white-space: nowrap; }

/* ─── Modals ───────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(-20px);
  transition: var(--transition);
}
.modal-overlay.active .modal { transform: translateY(0); }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1rem; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); padding: 0.25rem; border-radius: 50%; transition: var(--transition); }
.modal-close:hover { background: var(--beige-light); color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 0.75rem; background: var(--cream); }

/* ─── Alerts ───────────────────────────────────────────── */
.alert { padding: 0.85rem 1.1rem; border-radius: var(--radius-md); font-size: 0.85rem; margin-bottom: 1.25rem; display: flex; align-items: center; gap: 0.6rem; border: 1px solid; }
.alert-success { background: #D1FAE5; color: #065F46; border-color: #6EE7B7; }
.alert-error   { background: #FEE2E2; color: #991B1B; border-color: #FCA5A5; }
.alert-warning { background: #FEF3C7; color: #92400E; border-color: #FCD34D; }

/* ─── Quick Stats Row on Dashboard ─────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.dashboard-grid .full { grid-column: 1 / -1; }

/* ─── Order Timeline ───────────────────────────────────── */
.order-timeline { padding: 0.5rem 0; }
.timeline-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1.25rem;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 15px; top: 30px;
  width: 2px;
  bottom: 0;
  background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--beige);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.timeline-dot.done { background: var(--gold); border-color: var(--gold); color: var(--white); }
.timeline-content .title { font-weight: 700; font-size: 0.88rem; }
.timeline-content .date  { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .admin-sidebar { width: 64px; }
  .admin-logo .name, .admin-logo .badge { display: none; }
  .sidebar-link span { display: none; }
  .sidebar-link { justify-content: center; padding: 0.75rem; border-left: none; border-bottom: 3px solid transparent; }
  .sidebar-link.active, .sidebar-link:hover { border-bottom-color: var(--gold); border-left: none; }
  .sidebar-link .badge-count { display: none; }
  .nav-section-title { display: none; }
  .admin-user-info .name, .admin-user-info .role { display: none; }
  .sidebar-footer { justify-content: center; }
  .admin-main { margin-left: 64px; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .admin-content { padding: 1rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
}

/* ─── Utilities ────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); font-size: 0.85rem; }
.text-sm     { font-size: 0.82rem; }
.text-xs     { font-size: 0.72rem; }
.fw-bold     { font-weight: 700; }
.d-flex      { display: flex; }
.align-center{ align-items: center; }
.gap-1       { gap: 0.5rem; }
.gap-2       { gap: 1rem; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.p-0   { padding: 0; }
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
