/* =========================================================================
   SIPENSIF — Sistem Informasi Pemantauan Magang Pendidikan Inklusif
   BGTK Provinsi NTB
   ========================================================================= */

:root {
    --primer: #1d4ed8;
    --primer-gelap: #1e3a8a;
    --primer-muda: #dbeafe;
    --aksen: #0d9488;
    --ungu: #7c3aed;

    --sukses: #16a34a;
    --info: #0ea5e9;
    --peringatan: #f59e0b;
    --bahaya: #dc2626;
    --netral: #64748b;

    --teks: #0f172a;
    --teks-lembut: #475569;
    --teks-samar: #94a3b8;
    --garis: #e2e8f0;
    --latar: #f1f5f9;
    --kartu: #ffffff;

    --radius: 14px;
    --radius-kecil: 9px;
    --bayang: 0 1px 2px rgba(15, 23, 42, .05), 0 4px 16px rgba(15, 23, 42, .06);
    --bayang-kuat: 0 10px 30px rgba(15, 23, 42, .12);
    --sidebar-lebar: 264px;
    --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.6;
    color: var(--teks);
    background: var(--latar);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { margin: 0 0 .5rem; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1.02rem; }
h4 { font-size: .93rem; }
p { margin: 0 0 .75rem; }
a { color: var(--primer); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
    background: #eef2ff; color: #3730a3; padding: .1em .4em;
    border-radius: 5px; font-size: .87em;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
small { font-size: .82rem; }

/* ============================ Tata Letak =============================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-lebar);
    flex: 0 0 var(--sidebar-lebar);
    background: linear-gradient(180deg, #0f172a 0%, #16233d 55%, #1e293b 100%);
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    overflow-y: auto;
    transition: transform .25s ease;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(148,163,184,.35); border-radius: 3px; }

.sidebar-merek {
    display: flex; align-items: center; gap: .7rem;
    padding: 1.15rem 1.1rem;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}
.sidebar-merek .logo {
    width: 40px; height: 40px; flex: 0 0 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #3b82f6, #14b8a6);
    display: grid; place-items: center;
    font-weight: 800; color: #fff; font-size: .95rem;
    box-shadow: 0 4px 14px rgba(59, 130, 246, .4);
}
.sidebar-merek strong { color: #fff; display: block; font-size: 1.05rem; letter-spacing: .02em; }
.sidebar-merek span { font-size: .68rem; color: #94a3b8; text-transform: uppercase; letter-spacing: .07em; }

.sidebar-nav { padding: .85rem .7rem 1.5rem; flex: 1; }
.nav-judul {
    font-size: .66rem; text-transform: uppercase; letter-spacing: .1em;
    color: #64748b; font-weight: 700; padding: .9rem .7rem .4rem;
}
.nav-item {
    display: flex; align-items: center; gap: .65rem;
    padding: .58rem .7rem; margin-bottom: 2px;
    border-radius: 9px; color: #cbd5e1; font-size: .885rem; font-weight: 500;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(148, 163, 184, .12); color: #fff; text-decoration: none; }
.nav-item.aktif {
    background: linear-gradient(90deg, rgba(59,130,246,.28), rgba(59,130,246,.06));
    color: #fff;
    box-shadow: inset 3px 0 0 #60a5fa;
}
.nav-item .ikon { width: 18px; height: 18px; flex: 0 0 18px; opacity: .9; }
.nav-item .lencana {
    margin-left: auto; background: rgba(148,163,184,.22); color: #e2e8f0;
    font-size: .68rem; font-weight: 700; padding: .1rem .42rem; border-radius: 20px;
}
.nav-item.aktif .lencana { background: rgba(255,255,255,.22); }

.sidebar-kaki {
    padding: .9rem 1.1rem; border-top: 1px solid rgba(148,163,184,.16);
    font-size: .7rem; color: #64748b;
}

.konten {
    flex: 1;
    min-width: 0;
    margin-left: var(--sidebar-lebar);
    display: flex;
    flex-direction: column;
}

.topbar {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--garis);
    padding: .7rem 1.5rem;
    display: flex; align-items: center; gap: 1rem;
}
.topbar-judul h1 { font-size: 1.16rem; margin: 0; }
.topbar-judul p { margin: 0; font-size: .78rem; color: var(--teks-samar); }
.topbar-kanan { margin-left: auto; display: flex; align-items: center; gap: .8rem; }

.tombol-menu {
    display: none; background: none; border: 1px solid var(--garis);
    border-radius: 9px; padding: .4rem .55rem; cursor: pointer;
}

.profil-mini { display: flex; align-items: center; gap: .6rem; }
.profil-mini .avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primer), var(--aksen));
    color: #fff; display: grid; place-items: center;
    font-weight: 700; font-size: .82rem; flex: 0 0 38px;
}
.profil-mini .nama { font-size: .84rem; font-weight: 600; line-height: 1.2; }
.profil-mini .peran { font-size: .72rem; color: var(--teks-samar); }

.isi { padding: 1.4rem 1.5rem 3rem; flex: 1; }
.isi-lebar { max-width: 1400px; margin: 0 auto; width: 100%; }

/* ============================== Kartu ================================== */
.kartu {
    background: var(--kartu);
    border: 1px solid var(--garis);
    border-radius: var(--radius);
    box-shadow: var(--bayang);
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.15rem;
}
.kartu-kepala {
    display: flex; align-items: flex-start; gap: 1rem;
    margin: -.15rem 0 1rem;
}
.kartu-kepala h2, .kartu-kepala h3 { margin: 0; }
.kartu-kepala p { margin: .15rem 0 0; font-size: .8rem; color: var(--teks-samar); }
.kartu-kepala .aksi { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; }
.kartu-rapat { padding: 0; overflow: hidden; }
.kartu-rapat .kartu-kepala { padding: 1.1rem 1.25rem 0; margin-bottom: .8rem; }

/* ============================== Grid =================================== */
.grid { display: grid; gap: 1.15rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }

/* ========================== Kartu Statistik ============================ */
.statistik {
    background: var(--kartu);
    border: 1px solid var(--garis);
    border-radius: var(--radius);
    box-shadow: var(--bayang);
    padding: 1rem 1.1rem;
    position: relative;
    overflow: hidden;
}
.statistik::before {
    content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
    background: var(--warna, var(--primer));
}
.statistik .label {
    font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
    color: var(--teks-samar); font-weight: 700;
}
.statistik .nilai { font-size: 1.85rem; font-weight: 800; line-height: 1.15; margin-top: .15rem; letter-spacing: -.02em; }
.statistik .catatan { font-size: .77rem; color: var(--teks-lembut); margin-top: .15rem; }
.statistik .ikon-besar {
    position: absolute; right: .85rem; top: .85rem;
    width: 38px; height: 38px; border-radius: 10px;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--warna, var(--primer)) 12%, white);
    color: var(--warna, var(--primer));
}

/* ============================== Tabel ================================== */
.tabel-bungkus { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tabel { width: 100%; border-collapse: collapse; font-size: .855rem; }
table.tabel th {
    text-align: left; padding: .6rem .75rem;
    background: #f8fafc; color: var(--teks-lembut);
    font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700;
    border-bottom: 1px solid var(--garis); white-space: nowrap;
}
table.tabel td { padding: .62rem .75rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
table.tabel tbody tr:hover { background: #f8fafc; }
table.tabel tbody tr:last-child td { border-bottom: none; }
table.tabel .angka { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.tabel .tengah { text-align: center; }
table.tabel .aksi-kolom { white-space: nowrap; text-align: right; }
table.tabel.rapat td, table.tabel.rapat th { padding: .45rem .6rem; }

.kosong {
    text-align: center; padding: 2.4rem 1rem; color: var(--teks-samar);
}
.kosong svg { opacity: .35; margin-bottom: .6rem; }
.kosong p { margin: 0 0 .2rem; font-weight: 600; color: var(--teks-lembut); }
.kosong small { display: block; }

/* ============================= Lencana ================================= */
.badge {
    display: inline-block; padding: .16rem .55rem; border-radius: 20px;
    font-size: .715rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.badge-sukses { background: #dcfce7; color: #15803d; }
.badge-info { background: #e0f2fe; color: #0369a1; }
.badge-peringatan { background: #fef3c7; color: #b45309; }
.badge-bahaya { background: #fee2e2; color: #b91c1c; }
.badge-netral { background: #e2e8f0; color: #475569; }
.badge-ungu { background: #ede9fe; color: #6d28d9; }
.badge-garis { background: transparent; border: 1px solid var(--garis); color: var(--teks-lembut); }

.pil {
    display: inline-flex; align-items: center; gap: .35rem;
    background: #f1f5f9; border-radius: 20px; padding: .2rem .6rem;
    font-size: .76rem; color: var(--teks-lembut); font-weight: 500;
}

/* ============================= Tombol ================================== */
.tombol {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    padding: .5rem .9rem; border-radius: var(--radius-kecil);
    border: 1px solid var(--garis); background: #fff; color: var(--teks);
    font-size: .855rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all .15s; text-decoration: none; white-space: nowrap;
}
.tombol:hover { background: #f8fafc; border-color: #cbd5e1; text-decoration: none; }
.tombol:disabled { opacity: .55; cursor: not-allowed; }
.tombol.utama { background: var(--primer); border-color: var(--primer); color: #fff; }
.tombol.utama:hover { background: var(--primer-gelap); border-color: var(--primer-gelap); }
.tombol.sukses { background: var(--sukses); border-color: var(--sukses); color: #fff; }
.tombol.sukses:hover { background: #15803d; }
.tombol.bahaya { background: #fff; border-color: #fecaca; color: var(--bahaya); }
.tombol.bahaya:hover { background: #fef2f2; }
.tombol.hantu { background: transparent; border-color: transparent; color: var(--teks-lembut); }
.tombol.hantu:hover { background: #f1f5f9; }
.tombol.kecil { padding: .32rem .62rem; font-size: .78rem; }
.tombol.penuh { width: 100%; }
.tombol svg { width: 16px; height: 16px; }

.grup-tombol { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ============================= Formulir ================================ */
.bidang { margin-bottom: .95rem; }
.bidang > label, .label {
    display: block; font-size: .8rem; font-weight: 600;
    color: var(--teks-lembut); margin-bottom: .3rem;
}
.bidang .wajib { color: var(--bahaya); }
.bidang .bantuan { font-size: .75rem; color: var(--teks-samar); margin-top: .25rem; display: block; }

input[type=text], input[type=password], input[type=date], input[type=number],
input[type=email], input[type=tel], input[type=search], select, textarea {
    width: 100%; padding: .55rem .7rem;
    border: 1px solid #cbd5e1; border-radius: var(--radius-kecil);
    font-family: inherit; font-size: .875rem; color: var(--teks);
    background: #fff; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--primer);
    box-shadow: 0 0 0 3px rgba(29, 78, 216, .12);
}
textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .6rem center; padding-right: 2rem;
}
input:disabled, select:disabled, textarea:disabled { background: #f8fafc; color: var(--teks-samar); }

.baris-bidang { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.filter-bar {
    display: flex; gap: .7rem; flex-wrap: wrap; align-items: flex-end;
}
.filter-bar .bidang { margin-bottom: 0; min-width: 150px; flex: 1 1 150px; }
.filter-bar .aksi { display: flex; gap: .5rem; }

/* ========================= Skala Penilaian ============================= */
.butir-list { display: flex; flex-direction: column; }

.aspek-blok { border: 1px solid var(--garis); border-radius: var(--radius); margin-bottom: 1rem; overflow: hidden; }
.aspek-kepala {
    display: flex; align-items: center; gap: .8rem;
    padding: .8rem 1rem; background: #f8fafc; border-bottom: 1px solid var(--garis);
}
.aspek-kepala .huruf {
    width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px;
    background: var(--primer); color: #fff; display: grid; place-items: center;
    font-weight: 800; font-size: .9rem;
}
.aspek-kepala h3 { margin: 0; font-size: .93rem; }
.aspek-kepala .info { font-size: .75rem; color: var(--teks-samar); margin: 0; }
.aspek-kepala .rekap { margin-left: auto; text-align: right; font-size: .78rem; }

.butir {
    display: grid; grid-template-columns: 40px 1fr 300px;
    gap: .8rem; align-items: start;
    padding: .8rem 1rem; border-bottom: 1px solid #f1f5f9;
}
.butir:last-child { border-bottom: none; }
.butir:hover { background: #fbfdff; }
.butir .nomor {
    width: 28px; height: 28px; border-radius: 8px; background: #eef2ff; color: #4338ca;
    display: grid; place-items: center; font-weight: 700; font-size: .8rem;
}
.butir .pernyataan { font-size: .875rem; line-height: 1.55; }
.butir .catatan-butir { margin-top: .4rem; }
.butir .catatan-butir input { font-size: .8rem; padding: .35rem .55rem; }
.butir.belum-diisi { background: #fffbeb; }

.skala { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }
.skala label {
    position: relative; display: block; cursor: pointer; user-select: none;
}
.skala input { position: absolute; opacity: 0; width: 0; height: 0; }
.skala .kotak {
    display: block; text-align: center; padding: .4rem .2rem;
    border: 1.5px solid var(--garis); border-radius: 9px;
    font-size: .78rem; font-weight: 700; color: var(--teks-lembut);
    background: #fff; transition: all .13s; line-height: 1.25;
}
.skala .kotak small { display: block; font-size: .61rem; font-weight: 600; opacity: .75; letter-spacing: .01em; }
.skala label:hover .kotak { border-color: #94a3b8; background: #f8fafc; }
.skala input:focus-visible + .kotak { box-shadow: 0 0 0 3px rgba(29,78,216,.2); }
.skala input:checked + .kotak { color: #fff; border-color: transparent; box-shadow: var(--bayang); }
.skala .n4 input:checked + .kotak { background: #16a34a; }
.skala .n3 input:checked + .kotak { background: #0ea5e9; }
.skala .n2 input:checked + .kotak { background: #f59e0b; }
.skala .n1 input:checked + .kotak { background: #dc2626; }

.legenda-skala { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--teks-lembut); }
.legenda-skala span { display: inline-flex; align-items: center; gap: .35rem; }
.legenda-skala i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

/* ============================= Progres ================================= */
.progres { height: 8px; background: #e2e8f0; border-radius: 20px; overflow: hidden; }
.progres > i { display: block; height: 100%; border-radius: 20px; background: var(--primer); transition: width .4s ease; }
.progres.tipis { height: 6px; }

.bar-aspek { display: flex; flex-direction: column; gap: .75rem; }
.bar-aspek .baris { display: grid; grid-template-columns: 26px 1fr 76px; gap: .65rem; align-items: center; }
.bar-aspek .huruf {
    width: 26px; height: 26px; border-radius: 7px; background: #eef2ff; color: #4338ca;
    display: grid; place-items: center; font-weight: 800; font-size: .78rem;
}
.bar-aspek .nama { font-size: .79rem; color: var(--teks-lembut); margin-bottom: .22rem; line-height: 1.3; }
.bar-aspek .persen { text-align: right; font-weight: 700; font-size: .84rem; font-variant-numeric: tabular-nums; }

/* ============================== Skor =================================== */
.skor-utama {
    display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap;
}
.cincin {
    --nilai: 0;
    --warna-cincin: var(--primer);
    width: 128px; height: 128px; flex: 0 0 128px; border-radius: 50%;
    background: conic-gradient(var(--warna-cincin) calc(var(--nilai) * 1%), #e2e8f0 0);
    display: grid; place-items: center; position: relative;
}
.cincin::after {
    content: ''; position: absolute; inset: 11px; background: #fff; border-radius: 50%;
}
.cincin .isi-cincin { position: relative; z-index: 1; text-align: center; }
.cincin .angka-besar { font-size: 1.65rem; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.cincin .satuan { font-size: .7rem; color: var(--teks-samar); font-weight: 600; }

.skor-rincian { flex: 1; min-width: 200px; }
.skor-rincian dl { display: grid; grid-template-columns: auto 1fr; gap: .28rem 1rem; margin: 0; font-size: .855rem; }
.skor-rincian dt { color: var(--teks-samar); }
.skor-rincian dd { margin: 0; font-weight: 600; }

/* ============================= Analisis ================================ */
.narasi { font-size: .885rem; line-height: 1.7; color: var(--teks-lembut); }
.narasi p { margin: 0 0 .55rem; padding-left: 1.1rem; position: relative; }
.narasi p::before {
    content: ''; position: absolute; left: 0; top: .62em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--primer); opacity: .5;
}
.narasi strong { color: var(--teks); }

.tl-kartu {
    border: 1px solid var(--garis); border-left: 4px solid var(--netral);
    border-radius: var(--radius-kecil); padding: .85rem 1rem; margin-bottom: .7rem;
    background: #fff;
}
.tl-kartu.tinggi { border-left-color: var(--bahaya); background: #fffbfb; }
.tl-kartu.sedang { border-left-color: var(--peringatan); background: #fffdf7; }
.tl-kartu.rendah { border-left-color: var(--info); }
.tl-kartu .judul { font-weight: 700; font-size: .89rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.tl-kartu .temuan { font-size: .81rem; color: var(--teks-lembut); margin: .4rem 0 .5rem; }
.tl-kartu .rekomendasi {
    font-size: .835rem; background: #f8fafc; border-radius: 8px; padding: .55rem .7rem;
    border: 1px dashed var(--garis);
}
.tl-kartu .rekomendasi strong { color: var(--primer-gelap); }
.tl-kartu .kaki { display: flex; gap: .6rem; align-items: center; margin-top: .55rem; flex-wrap: wrap; font-size: .76rem; color: var(--teks-samar); }

/* ============================= Pesan =================================== */
/* Memakai blok + ikon melayang, bukan flex, agar teks panjang maupun isi
   bertingkat (daftar, beberapa baris) tetap mengalir wajar. */
.pesan {
    padding: .7rem .9rem; border-radius: var(--radius-kecil);
    font-size: .86rem; margin-bottom: .85rem; border: 1px solid transparent;
    display: block; line-height: 1.55;
}
.pesan::after { content: ''; display: block; clear: both; }
.pesan.sukses { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.pesan.bahaya, .pesan.error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.pesan.peringatan { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.pesan.info { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.pesan > svg { float: left; margin: .15rem .55rem 0 0; }
.pesan p { margin: 0 0 .5rem; }
.pesan p:last-child { margin-bottom: 0; }
.pesan ol, .pesan ul { margin: .45rem 0 0; padding-left: 1.25rem; }
.pesan li { margin-bottom: .35rem; }
.pesan li:last-child { margin-bottom: 0; }
.pesan code { background: rgba(0, 0, 0, .06); padding: .05rem .3rem; border-radius: 4px; }

/* ============================== Tab ==================================== */
.tab-nav {
    display: flex; gap: .25rem; border-bottom: 1px solid var(--garis);
    margin-bottom: 1.1rem; overflow-x: auto;
}
.tab-nav a {
    padding: .55rem .9rem; font-size: .855rem; font-weight: 600; color: var(--teks-lembut);
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab-nav a:hover { color: var(--primer); text-decoration: none; }
.tab-nav a.aktif { color: var(--primer); border-bottom-color: var(--primer); }

/* ============================ Halaman Login ============================ */
.halaman-login {
    min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr;
    background: var(--latar);
}
.login-kiri {
    background:
        radial-gradient(1000px 600px at 15% 15%, rgba(20, 184, 166, .35), transparent 55%),
        radial-gradient(900px 700px at 85% 85%, rgba(124, 58, 237, .35), transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: center;
    position: relative; overflow: hidden;
}
.login-kiri::after {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
    background-size: 26px 26px; opacity: .5;
}
.login-kiri > * { position: relative; z-index: 1; }
.login-merek { display: flex; align-items: center; gap: .85rem; margin-bottom: 2.2rem; }
.login-merek .logo {
    width: 54px; height: 54px; border-radius: 15px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.26);
    display: grid; place-items: center; font-weight: 800; font-size: 1.15rem;
    backdrop-filter: blur(6px);
}
.login-kiri h1 { font-size: 2.05rem; margin-bottom: .7rem; letter-spacing: -.02em; }
.login-kiri .subjudul { color: rgba(226, 232, 240, .88); font-size: 1rem; max-width: 42ch; margin-bottom: 2rem; }
.login-fitur { display: grid; gap: .85rem; max-width: 46ch; }
.login-fitur .baris { display: flex; gap: .75rem; align-items: flex-start; font-size: .89rem; color: rgba(226,232,240,.94); }
.login-fitur .tanda-cek {
    width: 21px; height: 21px; flex: 0 0 21px; border-radius: 50%;
    background: rgba(45, 212, 191, .22); border: 1px solid rgba(45,212,191,.5);
    display: grid; place-items: center; margin-top: .1rem;
}
.login-kaki { margin-top: 2.6rem; font-size: .77rem; color: rgba(148,163,184,.9); }

.login-kanan { display: grid; place-items: center; padding: 2.5rem 2rem; }
.login-kotak { width: 100%; max-width: 396px; }
.login-kotak h2 { font-size: 1.5rem; margin-bottom: .25rem; }
.login-kotak .keterangan { color: var(--teks-samar); font-size: .875rem; margin-bottom: 1.6rem; }
.login-kotak .bidang label { font-size: .82rem; }
.login-kotak input { padding: .68rem .8rem; }
.kotak-sandi { position: relative; }
.kotak-sandi input { padding-right: 2.7rem; }
.kotak-sandi button {
    position: absolute; right: .3rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; color: var(--teks-samar);
    padding: .4rem; border-radius: 6px; display: grid; place-items: center;
}
.kotak-sandi button:hover { color: var(--teks); background: #f1f5f9; }
.login-info {
    margin-top: 1.4rem; padding: .8rem .9rem; background: #eff6ff;
    border: 1px solid #bfdbfe; border-radius: var(--radius-kecil);
    font-size: .8rem; color: #1e40af; line-height: 1.55;
}

/* ========================= Halaman Pemasangan ========================== */
.halaman-pasang { background: #0f172a; padding: 2.5rem 1rem; min-height: 100vh; }
.pasang-wrap { max-width: 720px; margin: 0 auto; }
.pasang-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; color: #fff; }
.pasang-logo {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    background: linear-gradient(135deg, #3b82f6, #14b8a6); font-weight: 800; font-size: 1.1rem;
}
.pasang-head h1 { margin: 0; font-size: 1.5rem; }
.pasang-head p { margin: 0; font-size: .84rem; color: #94a3b8; }
.pasang-kaki { text-align: center; color: #64748b; font-size: .78rem; margin-top: 1.5rem; }
.tabel-periksa { width: 100%; border-collapse: collapse; font-size: .865rem; margin-bottom: .8rem; }
.tabel-periksa td { padding: .5rem .3rem; border-bottom: 1px solid var(--garis); }
.tabel-periksa td:last-child { text-align: right; }
.tanda { font-size: .74rem; font-weight: 700; padding: .15rem .55rem; border-radius: 20px; }
.tanda.ok { background: #dcfce7; color: #15803d; }
.tanda.gagal { background: #fee2e2; color: #b91c1c; }
.tanda.peringatan { background: #fef3c7; color: #b45309; }
.daftar-langkah { list-style: none; padding: 0; margin: 0 0 1rem; }
.daftar-langkah li {
    padding: .6rem .8rem; border-radius: 9px; margin-bottom: .45rem;
    font-size: .855rem; border-left: 3px solid var(--sukses); background: #f0fdf4;
}
.daftar-langkah li.gagal { border-left-color: var(--bahaya); background: #fef2f2; }
.daftar-langkah li strong { display: block; }
.daftar-langkah li span { color: var(--teks-lembut); font-size: .8rem; }
.keterangan { color: var(--teks-lembut); font-size: .875rem; }

/* ============================== Cetak ================================== */
.lembar-cetak { max-width: 900px; margin: 0 auto; background: #fff; }
.cetak-kop {
    display: flex; gap: 1rem; align-items: center;
    border-bottom: 3px double #0f172a; padding-bottom: .8rem; margin-bottom: 1.2rem;
}
.cetak-kop .teks { text-align: center; flex: 1; }
.cetak-kop h1 { font-size: 1.12rem; margin: 0; text-transform: uppercase; }
.cetak-kop h2 { font-size: .95rem; margin: .1rem 0 0; font-weight: 600; }
.cetak-kop p { margin: .12rem 0 0; font-size: .78rem; color: var(--teks-lembut); }
.identitas { width: 100%; font-size: .855rem; border-collapse: collapse; margin-bottom: 1rem; }
.identitas td { padding: .2rem .3rem; vertical-align: top; }
.identitas td:first-child { width: 190px; color: var(--teks-lembut); }
.identitas td:nth-child(2) { width: 14px; }
.ttd-blok { display: flex; justify-content: flex-end; margin-top: 2.2rem; }
.ttd-blok .kolom { text-align: center; font-size: .855rem; min-width: 230px; }
.ttd-blok .ruang { height: 62px; }

/* ============================== Bantu ================================== */
.rata-kanan { text-align: right; }
.rata-tengah { text-align: center; }
.tebal { font-weight: 700; }
.samar { color: var(--teks-samar); }
.lembut { color: var(--teks-lembut); }
.kecil { font-size: .8rem; }
.mini { font-size: .74rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.sembunyi { display: none !important; }
.gulir-y { max-height: 420px; overflow-y: auto; }
.pemisah { height: 1px; background: var(--garis); margin: 1rem 0; border: none; }
.flex { display: flex; gap: .6rem; align-items: center; }
.flex-antara { display: flex; gap: .6rem; align-items: center; justify-content: space-between; }
.flex-bungkus { flex-wrap: wrap; }
.tumpuk { display: flex; flex-direction: column; gap: .35rem; }

/* ============================= Grafik ================================== */
.grafik-bungkus { position: relative; width: 100%; }
.grafik-bungkus canvas { max-width: 100%; }

.donat-legenda { display: grid; gap: .45rem; margin-top: .9rem; }
.donat-legenda .baris { display: flex; align-items: center; gap: .5rem; font-size: .82rem; }
.donat-legenda i { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 11px; }
.donat-legenda .jumlah { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ============================ Responsif ================================ */
@media (max-width: 1200px) {
    .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .grid-2-1, .grid-1-2, .grid-3 { grid-template-columns: 1fr; }
    .butir { grid-template-columns: 34px 1fr; }
    .butir .skala { grid-column: 1 / -1; max-width: 340px; }
    .halaman-login { grid-template-columns: 1fr; }
    .login-kiri { padding: 2.2rem 1.6rem; }
    .login-kiri h1 { font-size: 1.6rem; }
    .login-fitur { display: none; }
}
@media (max-width: 860px) {
    .sidebar { transform: translateX(-100%); box-shadow: var(--bayang-kuat); }
    .sidebar.terbuka { transform: translateX(0); }
    .konten { margin-left: 0; }
    .tombol-menu { display: grid; place-items: center; }
    .isi { padding: 1rem .85rem 3rem; }
    .topbar { padding: .65rem .85rem; }
    .grid-2, .grid-4, .grid-5 { grid-template-columns: 1fr; }
    .profil-mini .nama, .profil-mini .peran { display: none; }
    .tirai { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 50; }
}
@media (max-width: 520px) {
    .skor-utama { justify-content: center; text-align: center; }
    .kartu { padding: .95rem; }
    .kartu-kepala { flex-direction: column; }
    .kartu-kepala .aksi { margin-left: 0; }
}

/* ============================= Media Cetak ============================= */
@media print {
    @page { size: A4 portrait; margin: 14mm 12mm; }
    body { background: #fff; font-size: 11.5px; }
    .sidebar, .topbar, .tanpa-cetak, .tirai { display: none !important; }
    .konten { margin-left: 0; }
    .isi { padding: 0; }
    .kartu {
        box-shadow: none; border: 1px solid #cbd5e1; page-break-inside: avoid;
        margin-bottom: .7rem; padding: .7rem .8rem;
    }
    .aspek-blok, .butir, .tl-kartu, table.tabel tr { page-break-inside: avoid; }
    table.tabel th { background: #f1f5f9 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .badge, .statistik::before, .cincin, .progres > i, .skala input:checked + .kotak {
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    a { color: inherit; text-decoration: none; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(4, 1fr); }
}
