/* ============ Tema bersama SMPN 216 ============ */

:root { 
    /* Font: serif untuk judul, sans untuk isi */ 
    --font-sans: 'Inter', system-ui, sans-serif; 
    --font-serif: 'Source Serif 4', Georgia, serif; 
 
    /* Sudut mengikuti halaman Riwayat */ 
    --r-btn: 11px;    /* tombol utama */ 
    --r-field: 10px;  /* input, select, menu sidebar */ 
    --r-sm: 9px;      /* tombol kecil, pagination, ikon */ 
} 
 
/* ---------- Font ---------- */ 
body { font-family: var(--font-sans) !important; -webkit-font-smoothing: antialiased; } 
h1, h2, h3, h4 { font-family: var(--font-serif) !important; } 
 
/* Teks serif yang bukan h1–h4 (nama sekolah, judul kecil di footer/daftar) */ 
.h-title, .school-name, .fname, .domain-list .name { font-family: var(--font-serif) !important; } 
 
/* Angka statistik tetap Inter supaya rapi */ 
.stat-num { font-family: var(--font-sans) !important; } 
 
/* ---------- Sidebar ---------- */ 
#sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(15,39,71,.5); z-index: 40; } 
#sidebar-overlay.open { display: block; } 
 
#sidebar { 
    position: fixed; top: 0; left: 0; height: 100vh; width: 272px; z-index: 50; 
    display: flex; flex-direction: column; padding: 22px 14px 16px; 
    background: linear-gradient(180deg, #0F2747 0%, #0B1F3A 100%); color: #fff; 
    transform: translateX(-100%); transition: transform .3s cubic-bezier(.4,0,.2,1); 
} 
#sidebar.open { transform: translateX(0); } 
#sidebar::after { 
    content: ''; position: absolute; inset: 0; pointer-events: none; 
    background: 
        radial-gradient(260px 220px at 0% 0%, rgba(91,157,245,.28), transparent 70%), 
        radial-gradient(240px 240px at 100% 100%, rgba(91,157,245,.16), transparent 70%); 
} 
#sidebar > * { position: relative; z-index: 1; } 
 
#sidebar h1 { font-size: 16px !important; font-weight: 600 !important; } 
#sidebar a > div > p { font-size: 12px !important; } 
 
.nav-label { padding: 0 12px; margin: 22px 0 8px; font-size: 12px !important; font-weight: 600; color: #7F97B8; } 
.nav-link { 
    position: relative; display: flex; align-items: center; gap: 12px; 
    padding: 11px 12px; margin-bottom: 4px; font-size: 13.5px !important; font-weight: 500; 
    border-radius: var(--r-field) !important; color: #B7C7DD; transition: .15s; 
} 
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; } 
.nav-link.active { 
    background: linear-gradient(90deg, rgba(91,157,245,.32), rgba(91,157,245,.08)); 
    box-shadow: inset 0 0 0 1px rgba(143,187,250,.25); color: #fff; font-weight: 600; 
} 
.nav-link.active::before { 
    content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 4px; 
    border-radius: 0 4px 4px 0; background: #5B9DF5; 
} 
.nav-link.active .material-symbols-outlined { 
    color: #8FBBFA; font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; 
} 
 
.admin-badge { border-radius: 8px !important; } 
 
.side-user { 
    margin-top: auto; padding: 12px; border-radius: 12px; 
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); 
    display: flex; align-items: center; gap: 10px; 
} 
.side-user .logout { 
    margin-left: auto; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; 
    border-radius: var(--r-sm) !important; color: #9FB3CF; transition: .15s; 
} 
.side-user .logout:hover { background: rgba(229,72,77,.18); color: #FF8A8E; } 
 
@media (min-width: 1024px) { 
    #sidebar { position: sticky; transform: translateX(0) !important; flex-shrink: 0; } 
    #sidebar-overlay { display: none !important; } 
    #hamburger-btn { display: none !important; } 
} 
@media (prefers-reduced-motion: reduce) { #sidebar { transition: none !important; } } 
@media print { #sidebar, #sidebar-overlay { display: none !important; } } 
 
/* ---------- Topbar ---------- */ 
header h2 { font-size: 20px !important; font-weight: 600 !important; } 
header p { font-size: 13px !important; } 
#hamburger-btn, header a[aria-label="Kembali"], .nav-toggle { border-radius: var(--r-sm) !important; } 
@media (max-width: 639px) { header h2 { font-size: 18px !important; } } 
 
/* ---------- Judul & teks di card ---------- */ 
.h-title { font-size: 17px !important; font-weight: 600 !important; } 
.h-sub { font-size: 13.5px !important; } 
.profile-top h3 { font-size: 17px !important; font-weight: 600 !important; } 
.info-row { font-size: 13.5px !important; } 
.kelas-pill { font-size: 12px !important; } 
 
/* ---------- Form & tombol ---------- */ 
.lbl { font-size: 13px !important; } 
.input, .field { font-size: 13.5px !important; border-radius: var(--r-field) !important; } 
.btn-sa, .btn-primary, .btn-ghost, .btn-warn, .btn-copy, .pw-done { 
    font-size: 13.5px !important; border-radius: var(--r-btn) !important; 
} 
/* Tombol halaman welcome: sudut ikut tema, ukuran font diatur responsif di halamannya */ 
.btn { border-radius: var(--r-btn) !important; } 
.btn-line { font-size: 13px !important; border-radius: var(--r-sm) !important; } 
.link-reset { font-size: 13px !important; } 
.icon-btn, .pw-x { border-radius: var(--r-sm) !important; } 
 
/* ---------- Tabel ---------- */ 
.tbl th, #tabel-skrining th, #tabel-riwayat th { font-size: 12px !important; } 
.tbl td, #tabel-skrining td, #tabel-riwayat td { font-size: 13.5px !important; } 
 
/* ---------- Pagination ---------- */ 
.pg-info { font-size: 13px !important; } 
.pg-btn, .pg { font-size: 13px !important; border-radius: var(--r-sm) !important; } 
 
/* ---------- Badge & chip (tetap bulat) ---------- */ 
.badge, .hero-chip { font-size: 12px !important; } 
 
/* ---------- Popup password ---------- */ 
.pw-modal h3 { font-size: 21px !important; font-weight: 600 !important; } 
.pw-modal p { font-size: 13.5px !important; }