/* Tema skrin Asrama SMK Bintulu */
:root {
  --red: #98223d;
  --dark: #19253a;
  --muted: #54647a;
  --paper: #f1f5fa;
  --line: #dce4ee;
  --yellow: #f6d481;
  --green: #0f745a;
  --radius: 16px;
}

body { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
#shell { background: linear-gradient(135deg, #f7f3f6, var(--paper) 52%); }
#login { background: radial-gradient(ellipse at top left, #9a2946, #1b263e 65%); }
#login .auth-card { border-top: 5px solid var(--yellow); }
.sidebar {
  background: linear-gradient(170deg, #28344e, #151e31 65%);
  border-right: 0;
  color: #fff;
}
.sidebar .brand { border-color: #ffffff26; }
.sidebar .brand img { background: #fff; border-radius: 9px; padding: 4px; }
.sidebar .brand span, .sidebar .nav-label, .sidebar-bottom { color: #c2cce0; }
.sidebar nav a { color: #e3eaf6; line-height: 1.35; }
.sidebar nav a:hover { background: #ffffff14; }
.sidebar nav a.active {
  background: #70283f;
  box-shadow: inset 3px 0 var(--yellow);
  color: #fff;
}
.sidebar nav a.active .nav-icon { color: var(--yellow); }
.sidebar .status-dot { background: #6ce0b5; }
.topbar { background: #fff; }
#breadcrumb { font-weight: 700; }
.page-head .eyebrow { color: var(--red); letter-spacing: .14em; }
.hero {
  background: radial-gradient(circle at 85% 0%, #83354b, transparent 52%),
    linear-gradient(125deg, #202c46, #47283f);
  border-bottom: 4px solid var(--yellow);
}
.hero p { color: #ecedf5; }
.panel, .stat { box-shadow: 0 4px 16px #1828440a; }
.panel-title h2 { color: #20304a; }
.stat {
  --stat-ink: #2a5491;
  --stat-wash: #edf4ff;
  background: linear-gradient(135deg, var(--stat-wash), #fff 75%);
  border-top: 3px solid var(--stat-ink);
  min-width: 0;
}
.stat.good { --stat-ink: #0c7156; --stat-wash: #e9f8f2; }
.stat.alert { --stat-ink: #a02647; --stat-wash: #ffeff3; }
.stat.waiting { --stat-ink: #82531a; --stat-wash: #fff5df; }
.stat.metric { --stat-ink: #63458e; --stat-wash: #f4edff; }
.stat .dot { background: var(--stat-ink); }
.stat strong { color: var(--stat-ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.workspace .table-wrap { border: 1px solid var(--line); border-radius: 11px; }
.workspace table th { background: #edf2fa; color: #263b59; }
.workspace tbody tr:nth-child(even) { background: #f8fafd; }
.workspace tbody tr:hover { background: #eef4ff; }
#academic-v2-content .table-wrap thead th:first-child { background: #edf2fa; }
#academic-v2-content .table-wrap tbody tr:nth-child(even) td:first-child { background: #f8fafd; }
#academic-v2-content .table-wrap tbody tr:hover td:first-child { background: #eef4ff; }
.badge.green { background: #def5e9; color: #105b44; }
.badge.red { background: #fce7ee; color: #90223f; }
.badge.yellow { background: #fff1d2; color: #744d13; }
.badge { font-weight: 700; }
#shell :focus-visible, #login :focus-visible, #modal :focus-visible {
  outline: 2px solid #2f61a3;
  outline-offset: 2px;
}
.sidebar a:focus-visible { outline-color: var(--yellow) !important; outline-offset: -3px !important; }

.grade-chart {
  margin: 0 0 20px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafd;
}
.grade-chart h3 { margin-bottom: 6px; }
.grade-chart p { margin-bottom: 12px; }
.grade-chart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.grade-chart-list li {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.grade-track { display: block; height: 11px; border-radius: 8px; background: #e4ebf4; overflow: hidden; }
.grade-bar { display: block; height: 100%; border-radius: inherit; background: #526eaa; }
.grade-bar[data-band="A"] { background: #147e67; }
.grade-bar[data-band="B"] { background: #315d9d; }
.grade-bar[data-band="C"] { background: #7351a5; }
.grade-bar[data-band="D"], .grade-bar[data-band="E"] { background: #a36b21; }
.grade-bar[data-band="F"], .grade-bar[data-band="G"] { background: #aa3154; }

@media (max-width: 760px) {
  .grade-chart { padding: 13px; }
  .topbar #breadcrumb { overflow-wrap: anywhere; }
  .top-right { flex-shrink: 0; }
  .top-right button { max-width: 7.5rem; overflow-wrap: anywhere; }
}
