/* ============================================================
   Enrollment System — Stylesheet
   Icons:  Feather Icons (CDN, replaced at runtime)
   Fonts:  DM Serif Display + DM Sans
   Colors: Driven entirely by CSS custom properties so any
           theme can be applied by overriding :root in <style>
   ============================================================ */

/* ── Base Variables ───────────────────────────────────────── */
:root {
  /* Primary palette — overridden by PHP theme vars */
  --green-dark:   #1B5E20;
  --green:        #2E7D32;
  --green-light:  #43A047;
  --green-tint:   #E8F5E9;
  --gold:         #F9A825;
  --gold-dark:    #F57F17;
  --gold-tint:    #FFF8E1;

  /* Neutrals */
  --cream:        #F5F3EE;
  --white:        #FFFFFF;
  --text:         #1A1A1A;
  --text-muted:   #666666;
  --border:       #DDD8CE;
  --danger:       #C62828;
  --danger-tint:  #FFEBEE;

  /* Layout */
  --sidebar-w:    264px;
  --topbar-h:     58px;
  --radius:       8px;
  --radius-lg:    12px;
  --shadow:       0 1px 6px rgba(0,0,0,.07), 0 2px 12px rgba(0,0,0,.05);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.14);

  /* Sidebar colours */
  --sb-bg:        var(--green-dark);
  --sb-text:      rgba(255,255,255,.72);
  --sb-text-hi:   #ffffff;
  --sb-hover-bg:  rgba(255,255,255,.07);
  --sb-active-bg: rgba(255,255,255,.12);
  --sb-border:    rgba(255,255,255,.1);
  --sb-label:     rgba(255,255,255,.38);
  --sb-accent:    var(--gold);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
}

/* ════════════════════════════════════════════════════════════
   SIDEBAR
   ════════════════════════════════════════════════════════════ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--sb-bg);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

/* ── Brand ─────────────────────────────────────────────────── */
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1.25rem 1.1rem 1.1rem;
  border-bottom: 1px solid var(--sb-border);
  flex-shrink: 0;
  min-height: 70px;
}

.brand-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
}

.brand-emblem {
  width: 40px;
  height: 40px;
  background: var(--sb-accent);
  color: var(--sb-bg);
  font-family: 'DM Serif Display', serif;
  font-size: .82rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  border-radius: 8px;
  flex-shrink: 0;
  letter-spacing: .04em;
  line-height: 1;
}

.brand-text { min-width: 0; }
.brand-name {
  display: block;
  color: var(--sb-text-hi);
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  display: block;
  color: var(--sb-label);
  font-size: .7rem;
  margin-top: .1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Nav scroll area ───────────────────────────────────────── */
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .5rem 0 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.12) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 4px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

/* ── Section labels ────────────────────────────────────────── */
.nav-section-label {
  padding: 1rem 1.1rem .35rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sb-label);
  user-select: none;
}
.nav-section-label:first-child { padding-top: .6rem; }

/* ── Nav list ──────────────────────────────────────────────── */
.nav-links {
  list-style: none;
  padding: 0 .6rem;
}

.nav-links a {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .75rem;
  color: var(--sb-text);
  text-decoration: none;
  font-size: .855rem;
  font-weight: 500;
  border-radius: var(--radius);
  margin-bottom: .1rem;
  transition: background .16s, color .16s;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}

.nav-links a span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--sb-hover-bg);
  color: var(--sb-text-hi);
}

.nav-links a.active {
  background: var(--sb-active-bg);
  color: var(--sb-text-hi);
  font-weight: 600;
}

/* Accent left bar for active */
.nav-links a.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--sb-accent);
  border-radius: 0 3px 3px 0;
}

/* ── Feather icon in nav ───────────────────────────────────── */
.nav-icon {
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0;
  opacity: .75;
  transition: opacity .16s;
}
.nav-links a:hover .nav-icon,
.nav-links a.active .nav-icon { opacity: 1; }

/* ── Sidebar footer ────────────────────────────────────────── */
.sidebar-footer {
  flex-shrink: 0;
  padding: .9rem 1rem;
  border-top: 1px solid var(--sb-border);
}

.user-info {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .65rem;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: var(--sb-accent);
  color: var(--sb-bg);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}

.user-details { min-width: 0; }
.user-name { color: var(--sb-text-hi); font-size: .82rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { color: var(--sb-label); font-size: .7rem; margin-top: .05rem; }

.logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  width: 100%;
  padding: .45rem;
  background: rgba(255,255,255,.07);
  color: var(--sb-text);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .8rem;
  font-weight: 500;
  transition: background .18s, color .18s;
}
.logout-btn:hover { background: rgba(255,255,255,.15); color: var(--sb-text-hi); }
.logout-btn .nav-icon { opacity: .7; }

/* ════════════════════════════════════════════════════════════
   TOP BAR & MAIN CONTENT
   ════════════════════════════════════════════════════════════ */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 0 1.6rem;
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-heading {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--green-dark);
  line-height: 1;
}

.top-bar-right {
  margin-left: auto;
}
.top-school-name {
  font-size: .78rem;
  color: var(--text-muted);
  font-weight: 500;
  display: none;
}
@media (min-width: 900px) { .top-school-name { display: block; } }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--green-dark);
  padding: .25rem;
  border-radius: 6px;
  line-height: 0;
}
.menu-toggle .nav-icon { width: 20px !important; height: 20px !important; }

.content-body { padding: 1.6rem; flex: 1; }

/* ════════════════════════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════════════════════════ */
.alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 1.2rem;
  border-radius: var(--radius);
  margin: 0 1.6rem 0;
  font-size: .875rem;
  font-weight: 500;
  transition: opacity .5s;
  gap: .8rem;
}
.alert + .content-body,
.content-body { padding-top: 1rem; }
.alert { margin-top: .8rem; }
.alert-success { background: var(--green-tint); color: var(--green-dark); border-left: 4px solid var(--green); }
.alert-error   { background: var(--danger-tint); color: var(--danger);     border-left: 4px solid var(--danger); }
.alert-warning { background: var(--gold-tint);   color: var(--gold-dark);  border-left: 4px solid var(--gold); }
.alert span { flex: 1; }
.alert-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: inherit; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  margin-bottom: 1.4rem;
}
.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--green-tint);
}

/* ════════════════════════════════════════════════════════════
   STATS
   ════════════════════════════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.4rem;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--green);
}
.stat-card.gold::before   { background: var(--gold); }
.stat-card.danger::before { background: var(--danger); }
.stat-label { font-size: .75rem; color: var(--text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.stat-value { font-family: 'DM Serif Display', serif; font-size: 2rem; color: var(--green-dark); line-height: 1.1; margin: .2rem 0; }
.stat-sub   { font-size: .78rem; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════════
   TABLES
   ════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }

thead th {
  background: var(--green-dark);
  color: #fff;
  padding: .72rem .9rem;
  text-align: left;
  font-weight: 600;
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}
thead th:first-child { border-radius: 0; }

tbody tr { border-bottom: 1px solid var(--border); transition: background .14s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #fafaf8; }
tbody td { padding: .72rem .9rem; vertical-align: middle; }

tfoot td { padding: .7rem .9rem; font-weight: 600; background: var(--green-tint); }

/* ════════════════════════════════════════════════════════════
   BADGES
   ════════════════════════════════════════════════════════════ */
.badge {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 99px;
  font-size: .71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.badge-success { background: var(--green-tint);  color: var(--green-dark); }
.badge-warning { background: var(--gold-tint);   color: var(--gold-dark); }
.badge-danger  { background: var(--danger-tint); color: var(--danger); }
.badge-neutral { background: #EBEBEB; color: #555; }

/* ════════════════════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary { background: var(--green);   color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-gold    { background: var(--gold);    color: var(--green-dark); }
.btn-gold:hover { background: var(--gold-dark); color: #fff; }
.btn-danger  { background: var(--danger);  color: #fff; }
.btn-danger:hover { filter: brightness(.88); }
.btn-outline { background: none; border: 1.5px solid var(--green); color: var(--green); }
.btn-outline:hover { background: var(--green-tint); }
.btn-sm { padding: .3rem .7rem; font-size: .78rem; }
.btn-group { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ════════════════════════════════════════════════════════════
   FORMS
   ════════════════════════════════════════════════════════════ */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label { font-size: .82rem; font-weight: 600; color: var(--text); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: .55rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .88rem;
  background: var(--white);
  color: var(--text);
  transition: border-color .18s, box-shadow .18s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(67,160,71,.14);
}
.form-actions { margin-top: 1.2rem; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.form-span-2  { grid-column: span 2; }

/* ════════════════════════════════════════════════════════════
   SEARCH BAR
   ════════════════════════════════════════════════════════════ */
.search-bar {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.search-bar input,
.search-bar select {
  padding: .48rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .85rem;
  background: var(--white);
  color: var(--text);
  transition: border-color .18s;
}
.search-bar input:focus,
.search-bar select:focus {
  outline: none;
  border-color: var(--green-light);
}
.search-bar input { min-width: 200px; flex: 1; }

/* ════════════════════════════════════════════════════════════
   PAGINATION
   ════════════════════════════════════════════════════════════ */
.pagination {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 .65rem;
  white-space: nowrap;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .82rem;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
  line-height: 1;
}
.page-btn:hover  { border-color: var(--green); color: var(--green); }
.page-btn.active { background: var(--green); border-color: var(--green); color: #fff; }
.page-btn.disabled { opacity: .4; pointer-events: none; cursor: default; }
.page-info { font-size: .78rem; color: var(--text-muted); margin-left: .4rem; align-self: center; white-space: nowrap; }

/* ════════════════════════════════════════════════════════════
   AJAX LOADING
   ════════════════════════════════════════════════════════════ */
[data-ajax-zone] { position: relative; }
[data-ajax-zone].ajax-loading .ajax-result {
  opacity: .45;
  pointer-events: none;
  transition: opacity .15s;
}
[data-ajax-zone].ajax-loading::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-light) 60%, transparent 100%);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: ajax-bar .9s ease-in-out infinite alternate;
  z-index: 5;
}
@keyframes ajax-bar {
  from { left: 0;   width: 30%; }
  to   { left: 60%; width: 40%; }
}

/* ════════════════════════════════════════════════════════════
   NOTIFICATION BELL
   ════════════════════════════════════════════════════════════ */
.notif-bell-wrap {
  position: relative;
  flex-shrink: 0;
}
.notif-bell-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: .35rem;
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  transition: background .15s, color .15s;
  line-height: 0;
}
.notif-bell-btn:hover { background: var(--cream); color: var(--green-dark); }
.notif-bell-btn .nav-icon { width: 20px !important; height: 20px !important; }

.notif-badge {
  position: absolute;
  top: 0; right: 0;
  min-width: 18px;
  height: 18px;
  background: var(--danger);
  color: #fff;
  border-radius: 99px;
  font-size: .65rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
  border: 2px solid var(--white);
  pointer-events: none;
}

/* Dropdown */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-width: 95vw;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 500;
  overflow: hidden;
}
.notif-dd-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.notif-dd-title {
  font-weight: 700;
  font-size: .9rem;
  color: var(--green-dark);
}
.notif-dd-action {
  background: none;
  border: none;
  font-size: .75rem;
  color: var(--green);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  font-weight: 600;
  padding: 0;
}
.notif-dd-action:hover { text-decoration: underline; }
.notif-dd-list {
  max-height: 380px;
  overflow-y: auto;
}
.notif-dd-item {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .14s;
  text-decoration: none;
  color: inherit;
}
.notif-dd-item:last-child { border-bottom: none; }
.notif-dd-item:hover { background: var(--cream); }
.notif-dd-item.unread { background: #f4fdf4; }
.notif-dd-item.unread:hover { background: #e8f8e8; }
.notif-dd-dot {
  width: 8px; height: 8px; min-width: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-top: .35rem;
}
.notif-dd-dot.read { background: transparent; }
.notif-dd-text { flex: 1; min-width: 0; }
.notif-dd-text-title { font-weight: 600; font-size: .84rem; color: var(--text); line-height: 1.3; }
.notif-dd-text-msg   { font-size: .76rem; color: var(--text-muted); margin-top: .15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-dd-text-time  { font-size: .72rem; color: var(--text-muted); margin-top: .2rem; }
.notif-dd-empty { text-align: center; padding: 2rem 1rem; color: var(--text-muted); font-size: .84rem; }
.notif-dd-footer {
  padding: .6rem 1rem;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--cream);
}
.notif-dd-footer a {
  font-size: .8rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.notif-dd-footer a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════
   SETTINGS — Color theme swatches
   ════════════════════════════════════════════════════════════ */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: .8rem;
  margin-top: .5rem;
}
.theme-swatch {
  position: relative;
  cursor: pointer;
}
.theme-swatch input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.theme-swatch-card {
  border: 2.5px solid transparent;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
  box-shadow: var(--shadow);
}
.theme-swatch input:checked + .theme-swatch-card {
  border-color: var(--green-light);
  box-shadow: 0 0 0 3px rgba(67,160,71,.2), var(--shadow);
  transform: translateY(-2px);
}
.theme-swatch-bar  { height: 36px; }
.theme-swatch-accent { height: 12px; }
.theme-swatch-label {
  padding: .45rem .6rem;
  font-size: .78rem;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  background: var(--white);
}
.theme-swatch:hover .theme-swatch-card { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* ── Settings logo upload ───────────────────────────────── */
.logo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.logo-upload-area:hover { border-color: var(--green); background: var(--green-tint); }
.logo-preview { max-height: 80px; max-width: 180px; object-fit: contain; margin: 0 auto .6rem; display: block; }

/* ════════════════════════════════════════════════════════════
   AUTH PAGES
   ════════════════════════════════════════════════════════════ */
body.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--green-dark);
}
.auth-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 1.6rem; }
.auth-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  background: var(--green-dark);
  color: var(--gold);
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  border-radius: 14px;
  margin-bottom: .7rem;
}
.auth-title { font-family: 'DM Serif Display', serif; font-size: 1.5rem; color: var(--green-dark); }
.auth-sub   { font-size: .82rem; color: var(--text-muted); margin-top: .2rem; }

/* ════════════════════════════════════════════════════════════
   PRINT
   ════════════════════════════════════════════════════════════ */
@media print {
  .sidebar, .sidebar-overlay, .top-bar, .btn, .alert, .search-bar, .pagination { display: none !important; }
  .main-content { margin-left: 0; }
  .content-body { padding: 0; }
  body { background: #fff; }
}

/* ════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 99;
  }
  body.sidebar-open .sidebar-overlay { display: block; }
  .main-content { margin-left: 0; }
  .menu-toggle  { display: flex; }
  .form-grid    { grid-template-columns: 1fr; }
  .form-span-2  { grid-column: span 1; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); }
}
