/* ── TimetableGen — Clean Modern Design ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --blue:      #1a56db;
  --blue-lt:   #e3f0ff;
  --blue-md:   #3b82f6;
  --green:     #10b981;
  --green-lt:  #d1fae5;
  --amber:     #f59e0b;
  --amber-lt:  #fef3c7;
  --red:       #ef4444;
  --red-lt:    #fee2e2;
  --purple:    #8b5cf6;
  --purple-lt: #ede9fe;
  --gray-50:   #f8fafc;
  --gray-100:  #f1f5f9;
  --gray-200:  #e2e8f0;
  --gray-300:  #cbd5e1;
  --gray-400:  #94a3b8;
  --gray-500:  #64748b;
  --gray-600:  #475569;
  --gray-700:  #334155;
  --gray-800:  #1e293b;
  --gray-900:  #0f172a;
  --sidebar-w: 240px;
  --topbar-h:  60px;
  --radius:    10px;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── App Shell ──────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ── Sidebar ─────────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: var(--gray-900);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  overflow-y: auto;
  transition: transform .25s;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 16px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.brand-icon svg { width: 36px; height: 36px; border-radius: 8px; }

.brand-name {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
}
.brand-sub {
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-500);
  padding: 16px 16px 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 0;
  transition: all .15s;
  margin: 1px 8px;
  border-radius: 8px;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active {
  background: var(--blue);
  color: #fff;
}

.sidebar-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.powered-by {
  font-size: 11px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 6px;
}
.powered-by strong { color: var(--gray-300); }
.badge-free {
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  letter-spacing: .5px;
}

/* ── Main Content ────────────────────────────────────────────────────── */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Topbar ──────────────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  flex: 1;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-600);
  padding: 4px;
}

.topbar-actions { display: flex; gap: 8px; }

/* ── Page Body ───────────────────────────────────────────────────────── */
.page-body {
  flex: 1;
  padding: 24px;
  max-width: 1400px;
  width: 100%;
}

/* ── Cards ───────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  background: var(--gray-50);
}
.card-header h3 { font-size: 14px; font-weight: 700; color: var(--gray-700); }

.card-body { padding: 18px; }
.card-body.p0 { padding: 0; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .15s;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1648c0; }
.btn-ghost { background: var(--gray-100); color: var(--gray-700); border: 1px solid var(--gray-200); }
.btn-ghost:hover { background: var(--gray-200); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-icon { background: none; border: none; cursor: pointer; padding: 4px 8px; font-size: 14px; border-radius: 6px; transition: background .15s; }
.btn-icon:hover { background: var(--gray-100); }
.btn-delete:hover { background: var(--red-lt); }
.w-full { width: 100%; justify-content: center; }

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-600); margin-bottom: 5px; text-transform: uppercase; letter-spacing: .4px; }
.form-input, .form-select {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--gray-800);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.12);
}
.form-hint { font-size: 11px; color: var(--gray-400); margin-top: 3px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }

/* ── Badges ──────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
}
.badge-blue { background: var(--blue-lt); color: var(--blue); }
.badge-green { background: var(--green-lt); color: var(--green); }
.badge-type-theory { background: var(--blue-lt); color: var(--blue); }
.badge-type-lab { background: var(--green-lt); color: var(--green); }
.badge-type-PT { background: var(--amber-lt); color: #92400e; }
.badge-type-activity { background: var(--purple-lt); color: var(--purple); }

/* ── Dashboard ───────────────────────────────────────────────────────── */
.school-banner {
  background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.school-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.school-info h2 { font-size: 18px; font-weight: 800; color: #fff; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 20px; height: 20px; }
.icon-blue   { background: var(--blue-lt); color: var(--blue); }
.icon-green  { background: var(--green-lt); color: var(--green); }
.icon-purple { background: var(--purple-lt); color: var(--purple); }
.icon-red    { background: var(--red-lt); color: var(--red); }
.icon-gray   { background: var(--gray-100); color: var(--gray-400); }

.stat-body { flex: 1; }
.stat-value { font-size: 22px; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-label { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.stat-link { font-size: 11px; color: var(--blue); text-decoration: none; font-weight: 600; position: absolute; right: 14px; bottom: 12px; }
.card-success { border-color: var(--green); }
.card-danger { border-color: var(--red); }

.section-title { font-size: 15px; font-weight: 700; color: var(--gray-700); margin-bottom: 14px; }

.action-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.action-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  text-decoration: none;
  color: var(--gray-800);
  transition: all .2s;
  cursor: pointer;
}
.action-card:hover { border-color: var(--blue); box-shadow: 0 4px 20px rgba(26,86,219,.1); transform: translateY(-2px); }
.action-icon { font-size: 28px; margin-bottom: 8px; }
.action-label { font-size: 13px; font-weight: 700; color: var(--gray-800); }
.action-desc { font-size: 11px; color: var(--gray-500); margin-top: 3px; }

/* Checklist */
.checklist-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.check-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gray-100); font-size: 13.5px; }
.check-item:last-child { border-bottom: none; }
.check-icon { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; background: var(--gray-100); color: var(--gray-400); font-weight: 700; flex-shrink: 0; }
.check-item.done .check-icon { background: var(--green-lt); color: var(--green); }
.check-item.done span:not(.check-icon):not(.check-link) { color: var(--gray-400); text-decoration: line-through; }
.check-link { margin-left: auto; font-size: 12px; color: var(--blue); text-decoration: none; font-weight: 600; background: none; border: none; cursor: pointer; font-family: inherit; }

/* ── Alerts ──────────────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13.5px;
}
.alert-danger { background: var(--red-lt); color: #7f1d1d; border: 1px solid #fecaca; }
.alert-info { background: var(--blue-lt); color: #1e3a5f; border: 1px solid #bfdbfe; }
.alert-warn { background: var(--amber-lt); color: #78350f; border: 1px solid #fde68a; margin: 12px 0; border-radius: 8px; padding: 10px 14px; font-size: 13px; }
.alert-warn ul { margin: 6px 0 0 16px; }
.clash-list { margin: 6px 0 0 16px; font-size: 13px; }

/* ── Timetable ───────────────────────────────────────────────────────── */
.class-tabs-wrap { overflow-x: auto; margin-bottom: 16px; }
.class-tabs { display: flex; gap: 6px; padding-bottom: 4px; white-space: nowrap; }
.class-tab {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--gray-600);
  background: #fff;
  border: 1px solid var(--gray-200);
  transition: all .15s;
}
.class-tab:hover { border-color: var(--blue); color: var(--blue); }
.class-tab.active { background: var(--blue); color: #fff; border-color: var(--blue); }

.clash-bar { margin-bottom: 12px; }

.tt-container {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.tt-scroll { overflow-x: auto; }

.timetable {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.timetable thead th {
  background: var(--gray-900);
  color: #fff;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}
.timetable .day-col, .timetable .break-col { min-width: 60px; }
.timetable thead th:first-child { text-align: left; padding-left: 16px; }

.day-label {
  padding: 10px 16px;
  font-weight: 700;
  font-size: 12px;
  color: var(--gray-700);
  background: var(--gray-50);
  white-space: nowrap;
  border-right: 2px solid var(--gray-200);
}

.tt-cell {
  border: 1px solid var(--gray-100);
  padding: 4px;
  min-width: 100px;
  height: 64px;
  vertical-align: middle;
  cursor: pointer;
  transition: background .15s;
}
.tt-cell:hover { background: var(--blue-lt); }

.cell-inner {
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--gray-50);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cell-subject { font-size: 12px; font-weight: 700; color: var(--gray-800); line-height: 1.2; }
.cell-teacher { font-size: 10px; color: var(--gray-500); margin-top: 2px; }
.cell-badge { font-size: 9px; font-weight: 700; text-transform: uppercase; color: var(--amber); margin-top: 2px; }

.cell-break { background: #fff8ed; text-align: center; font-size: 16px; border: 1px solid #fde68a; }
.cell-free { background: var(--gray-50); }
.cell-free-label { text-align: center; font-size: 11px; color: var(--gray-300); font-weight: 600; }
.cell-clash { background: var(--red-lt) !important; border: 2px solid var(--red) !important; }
.cell-clash .cell-inner { background: transparent; }

/* ── Modal ───────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-box {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}
.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 { font-size: 15px; font-weight: 700; }
.modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray-400); line-height: 1; }
.modal-body { padding: 20px; }
.modal-footer { padding: 12px 20px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 8px; }
.clash-warning { background: var(--red-lt); color: #7f1d1d; padding: 8px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; margin-top: 8px; }

/* ── Data Table ──────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: var(--gray-50); }
.data-table th { padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--gray-500); text-align: left; border-bottom: 1px solid var(--gray-200); }
.data-table td { padding: 11px 14px; border-bottom: 1px solid var(--gray-100); font-size: 13.5px; color: var(--gray-700); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--gray-50); }

/* ── Teacher Card ────────────────────────────────────────────────────── */
.teacher-card {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.teacher-card:last-child { border-bottom: none; }
.teacher-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.teacher-name { font-size: 14px; font-weight: 700; }
.teacher-meta { font-size: 11px; color: var(--gray-400); margin-top: 1px; }
.teacher-info { flex: 1; }

/* Chips */
.subject-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--gray-100);
  color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.chip-active { background: var(--blue-lt); color: var(--blue); border-color: var(--blue); }

/* ── Setup Page ──────────────────────────────────────────────────────── */
.two-col-layout, .split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.day-checkboxes { display: flex; gap: 6px; flex-wrap: wrap; }
.day-check {
  padding: 5px 11px;
  border-radius: 8px;
  background: var(--gray-100);
  color: var(--gray-600);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-200);
  user-select: none;
  transition: all .15s;
}
.day-check.checked { background: var(--blue-lt); color: var(--blue); border-color: var(--blue); }

/* Colors */
.color-row { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  transition: transform .15s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.selected { border-color: var(--gray-900); transform: scale(1.15); }
.color-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }

/* ── Substitution ────────────────────────────────────────────────────── */
.sub-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.sub-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sub-label { font-size: 12px; font-weight: 700; color: var(--gray-500); margin-bottom: 6px; }
.sub-options { display: flex; flex-wrap: wrap; gap: 6px; }
.sub-no-options { font-size: 12px; color: var(--red); font-weight: 600; }

/* ── Workload Bar ────────────────────────────────────────────────────── */
.workload-bar { height: 10px; background: var(--gray-100); border-radius: 10px; overflow: hidden; }
.workload-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 10px; transition: width .5s; }

/* ── Toast ───────────────────────────────────────────────────────────── */
.toast-zone { position: fixed; top: 70px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: slideIn .2s ease;
}
.toast.success { background: var(--green); color: #fff; }
.toast.error { background: var(--red); color: #fff; }
@keyframes slideIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* htmx loading indicator */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }
.spinner-sm { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Empty States ────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-500); }
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 20px; }
.empty-mini { text-align: center; padding: 24px; color: var(--gray-400); font-size: 13px; }

code { font-family: 'JetBrains Mono', monospace; font-size: 12px; background: var(--gray-100); padding: 2px 6px; border-radius: 4px; }

/* ── Mobile ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main-content { margin-left: 0; }
  .mobile-menu-btn { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .action-cards { grid-template-columns: repeat(2, 1fr); }
  .two-col-layout, .split-layout { grid-template-columns: 1fr; }
  .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
  .page-body { padding: 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .action-cards { grid-template-columns: 1fr 1fr; }
}

/* ── User pill in sidebar ────────────────────────────────────────── */
.user-pill { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; text-decoration: none; transition: background .15s; margin-bottom: 4px; }
.user-pill:hover { background: rgba(255,255,255,.06); }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: #1a56db; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.user-name { font-size: 13px; font-weight: 600; color: #e2e8f0; }
.user-role { font-size: 10px; color: #64748b; text-transform: capitalize; }
.logout-link { display: block; font-size: 12px; color: #64748b; text-decoration: none; padding: 4px 8px; margin-bottom: 10px; }
.logout-link:hover { color: #ef4444; }
.welcome-banner { background: linear-gradient(135deg,#d1fae5,#a7f3d0); border: 1px solid #6ee7b7; border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.welcome-banner .wb-icon { font-size: 28px; }
.welcome-banner h3 { font-size: 15px; font-weight: 700; color: #064e3b; }
.welcome-banner p { font-size: 13px; color: #065f46; }

/* ── Admin Panel Styles ──────────────────────────────────────────────── */
.admin-sidebar { background: #1e1b4b; }
.admin-sidebar .nav-item.active { background: #7c3aed; }
.admin-sidebar .nav-item:hover { background: rgba(124,58,237,.2); }
.admin-sidebar .nav-section-label { color: #6d6897; }
.admin-sidebar .brand-sub { color: #a78bfa !important; }

.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.admin-stat-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.admin-stat-card .stat-sub {
  margin-top: 8px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.school-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: var(--green); }
.dot-red   { background: var(--red); }

.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-amber  { background: #fef3c7; color: #d97706; }

@media (max-width: 768px) {
  .admin-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Report Cards ────────────────────────────────────────────────────── */
.report-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: var(--gray-800);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all .2s;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.report-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,86,219,.1);
}
.report-icon { font-size: 28px; width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.report-title { font-size: 15px; font-weight: 700; color: var(--gray-900); }
.report-desc { font-size: 12px; color: var(--gray-500); line-height: 1.5; flex: 1; }
.report-arrow { font-size: 12px; color: var(--blue); font-weight: 600; margin-top: 4px; }
