:root {
  --ink: #17212b;
  --muted: #708090;
  --line: #e7ecef;
  --mint: #dff5ed;
  --green: #198754;
  --navy: #122c42;
  --cream: #f7faf9;
  --surface: #ffffff;
  --primary: #166c52;
  --primary-hover: #105440;
  --focus: #dff5ed;
}
:root[data-theme="ocean"] {
  --ink: #102a43;
  --muted: #607d94;
  --line: #dceaf2;
  --navy: #123b56;
  --cream: #f1f8fb;
  --surface: #ffffff;
  --primary: #147d91;
  --primary-hover: #0d6070;
  --focus: #d9f1f5;
}
:root[data-theme="sunset"] {
  --ink: #33251f;
  --muted: #8a7164;
  --line: #f0dfd5;
  --navy: #573b36;
  --cream: #fff8f3;
  --surface: #ffffff;
  --primary: #b85c38;
  --primary-hover: #964729;
  --focus: #fbe3d7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 248px;
  background: var(--navy);
  color: #dce8ee;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.5px;
  margin: 0 12px 54px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #8fe1be;
  color: var(--navy);
  font-size: 20px;
}
.side-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #8096a3;
  margin: 0 13px 12px;
}
.nav-link {
  color: #a9bcc7;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link i {
  font-size: 17px;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: #23465b;
}
.nav-link.active {
  box-shadow: inset 3px 0 #8fe1be;
}
.sidebar-footer {
  border-top: 1px solid #2b4b5d;
  margin-top: auto;
  padding: 18px 8px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}
.sidebar-footer small {
  display: block;
  color: #8fa4af;
  font-size: 11px;
  margin-top: 2px;
}
.logout-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a9bcc7;
  font-size: 12px;
  text-decoration: none;
}
.logout-link:hover {
  color: #fff;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f6c77c;
  color: #643f0d;
  font-size: 11px;
  font-weight: 800;
}
.avatar-sm {
  width: 36px;
  height: 36px;
}
.main-content {
  flex: 1;
  min-width: 0;
  padding: 0 42px 42px;
}
.topbar {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #9aa8ae;
}
.topbar h1 {
  font-size: 28px;
  margin: 5px 0 0;
  letter-spacing: -0.8px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.theme-picker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 15px;
}
.theme-picker select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 6px 26px 6px 8px;
  font-size: 12px;
}
.today {
  font-size: 13px;
  color: var(--muted);
}
.today i {
  margin-right: 7px;
}
.stat-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.stat-card {
  padding: 20px 22px;
  min-height: 137px;
}
.stat-label {
  color: var(--muted);
  font-size: 13px;
}
.stat-value {
  font-size: 32px;
  font-weight: 750;
  letter-spacing: -1px;
  margin-top: 9px;
}
.stat-icon {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.icon-mint {
  background: #dff5ed;
  color: #198754;
}
.icon-blue {
  background: #e4f0fb;
  color: #2874b2;
}
.icon-peach {
  background: #fff0dc;
  color: #b46e18;
}
.icon-lilac {
  background: #eee9fa;
  color: #7255a8;
}
.trend {
  font-size: 11px;
  color: #198754;
  margin-top: 6px;
}
.panel {
  padding: 22px;
}
.panel-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.panel-subtitle {
  font-size: 12px;
  color: var(--muted);
}
.table {
  margin-bottom: 0;
  vertical-align: middle;
}
.table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #8a989f;
  font-weight: 650;
  border-bottom-color: var(--line);
  padding: 13px 14px;
}
.table td {
  font-size: 13px;
  border-bottom-color: #f0f3f4;
  padding: 14px;
}
.table tr:last-child td {
  border-bottom: 0;
}
.student-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.student-initial {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #e7f4ef;
  color: #177b55;
  font-size: 11px;
  font-weight: 800;
}
.student-avatar-image,
.student-profile-image {
  object-fit: cover;
  border-radius: 9px;
}
.student-avatar-image {
  width: 32px;
  height: 32px;
}
.student-profile-image {
  width: 96px;
  height: 96px;
  display: block;
  margin-top: 6px;
}
.badge-soft {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 20px;
  font-weight: 650;
}
.badge-present {
  background: #e1f6eb;
  color: #14794d;
}
.badge-absent {
  background: #fde7e7;
  color: #b53c3c;
}
.badge-late {
  background: #fff0d1;
  color: #9a6510;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}
.btn-light {
  border: 1px solid var(--line);
  background: var(--surface);
}
.form-label {
  font-size: 12px;
  font-weight: 650;
  color: #51616a;
}
.form-control,
.form-select {
  border-color: #dce5e8;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
}
.form-control:focus,
.form-select:focus {
  border-color: #78bea3;
  box-shadow: 0 0 0 0.2rem var(--focus);
}
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state i {
  font-size: 34px;
  color: #a5cfc0;
}
.progress {
  height: 7px;
  background: #edf1f2;
}
.progress-bar {
  background: #38a879;
}
.report-number {
  font-size: 34px;
  font-weight: 750;
}
.search-box {
  max-width: 280px;
}
.filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .sidebar {
    width: 72px;
    padding: 24px 10px;
  }
  .brand {
    margin: 0 auto 48px;
  }
  .brand span:last-child,
  .side-label,
  .nav-link:not(.active)::after,
  .nav-link {
    font-size: 0;
  }
  .nav-link {
    justify-content: center;
    padding: 13px;
  }
  .nav-link i {
    font-size: 18px;
  }
  .sidebar-footer {
    justify-content: center;
  }
  .sidebar-footer .flex-grow-1,
  .sidebar-footer a {
    display: none;
  }
  .topbar-actions {
    gap: 10px;
  }
  .theme-picker select {
    width: 34px;
    padding: 6px 4px;
  }
  .theme-picker select option {
    width: 140px;
  }
  .main-content {
    padding: 0 20px 30px;
  }
  .topbar {
    height: 100px;
  }
  .today {
    display: none;
  }
}
@media (max-width: 575px) {
  .main-content {
    padding: 0 14px 24px;
  }
  .topbar h1 {
    font-size: 23px;
  }
  .panel {
    padding: 16px;
    overflow-x: auto;
  }
  .stat-card {
    min-height: 120px;
  }
  .stat-value {
    font-size: 26px;
  }
  .table {
    min-width: 650px;
  }
}
