/* =========================================================
   BERANDA / DASBOR - SinTast BBKK Batam
   Dipakai hanya oleh index.html (tidak mengubah halaman lain).
========================================================= */
:root {
    --teal-900: #00585e;
    --teal-800: #006b70;
    --teal-700: #008c91;
    --teal-500: #12aeb0;
    --teal-300: #7fe0dc;
    --mint-100: #d9f1f1;
    --mint-50: #eaf6f7;
    --latar: #eaf5f7;
    --teks: #0e3a3f;
    --teks-redup: #5d7c80;
    --lebar-sb: 250px;
    --tinggi-bar: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body.page-dasbor {
    margin: 0;
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    color: var(--teks);
    background: var(--latar);
    -webkit-font-smoothing: antialiased;
}
:where(body.page-dasbor) a { text-decoration: none; color: inherit; }
:where(body.page-dasbor) button { font-family: inherit; }

.ic {
    width: 24px; height: 24px; flex: none;
    fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.ic-kecil { width: 16px; height: 16px; }

.app { min-height: 100vh; }

/* ===================== SIDEBAR (sama dengan sidebar halaman lain) ===================== */
.sidebar-overlay {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0, 0, 0, .32);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden;
    transition: opacity .45s ease, visibility .45s ease;
    overscroll-behavior: contain;
}
body.menu-buka .sidebar-overlay { opacity: 1; visibility: visible; }

.sidebar-drawer {
    position: fixed; top: 0; left: 0; z-index: 1001;
    width: 250px; max-width: 86vw; height: 100vh; height: 100dvh;
    display: flex; flex-direction: column;
    color: #fff;
    font-family: 'Plus Jakarta Sans', 'Poppins', 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #00858B 0%, #007379 55%, #006B70 100%);
    box-shadow: 5px 0 25px rgba(0, 0, 0, .25);
    transform: translateX(-105%);
    transition: transform .6s cubic-bezier(.22, 1, .36, 1);
    overscroll-behavior: contain;
}
body.menu-buka .sidebar-drawer { transform: none; }

/* ---- Kepala: kartu logo putih + judul ---- */
.minda-sidebar-header {
    position: relative;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    padding: 12px 12px 6px;
}
.minda-sidebar-header::before {
    content: ""; flex: 0 0 100%;
    height: 66px; margin-bottom: 8px; border-radius: 15px;
    background-color: #fff;
    background-image: linear-gradient(#dfe5e7, #dfe5e7);
    background-repeat: no-repeat; background-position: center center; background-size: 1px 36px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .18);
}
.minda-sidebar-header::after {
    content: ""; position: absolute; top: 12px; left: 12px; right: 12px; height: 66px;
    pointer-events: none;
    background-image: url("assets/karantina.png"), url("assets/logo-kementerian-kesehatan.png");
    background-repeat: no-repeat;
    background-position: 22% center, 78% center;
    background-size: auto 48px, auto 44px;
    filter: drop-shadow(0 0 1.5px rgba(255, 255, 255, .95)) drop-shadow(0 0 6px rgba(20, 176, 181, .95)) drop-shadow(0 0 13px rgba(32, 196, 199, .55));
}
.minda-brand { flex: 1; text-align: center; }
.minda-brand h2 { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .01em; line-height: 1.25; color: #fff; }
.minda-brand p {
    margin: 3px 0 0; font-size: 8px; font-weight: 600;
    letter-spacing: .09em; text-transform: uppercase; color: rgba(255, 255, 255, .72);
}

/* ---- Tombol tutup: panah kiri di luar sisi kanan sidebar ---- */
.sidebar-close-btn {
    position: absolute; top: 100px; right: -52px;
    width: 39px; height: 39px; margin: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 10px; cursor: pointer;
    background: #008C91; box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
    font-size: 0; line-height: 0; color: transparent;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .35s ease, visibility .35s ease, background-color .2s ease, transform .2s ease;
}
body.menu-buka .sidebar-close-btn {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition-delay: .4s, .4s, 0s, 0s;
}
.sidebar-close-btn::after {
    content: ""; display: block; width: 21px; height: 21px; background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4.5L7.5 12 15 19.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 4.5L7.5 12 15 19.5'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: transform .25s ease;
}
.sidebar-close-btn:hover { background: #14B0B5; transform: translateY(-2px); }
.sidebar-close-btn:hover::after { transform: translateX(-3px); }

/* ---- Isi: daftar menu ---- */
.sidebar-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 9px 14px; }
.minda-card-grid { display: flex; flex-direction: column; gap: 2px; }
.minda-card-grid::before {
    content: "MENU UTAMA"; padding: 7px 7px 3px;
    font-size: 8.5px; font-weight: 700; letter-spacing: .2em; color: rgba(255, 255, 255, .5);
}
.minda-card {
    position: relative;
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 9px;
    padding: 4px 7px; border-radius: 10px; text-align: left; color: #fff;
    background: transparent; border: 1px solid transparent;
    transition: background-color .2s ease;
}
.minda-card:hover { background: rgba(255, 255, 255, .10); }
.minda-card.is-active { background: rgba(255, 255, 255, .16); box-shadow: inset 3px 0 0 #A8F0F2; }

.minda-icon-circle {
    width: 30px; height: 30px; flex: 0 0 30px; margin: 0; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .10);
    font-size: 0; line-height: 0; color: transparent;
    transition: background-color .2s ease;
}
.minda-icon-circle::before {
    content: ""; display: block; width: 15px; height: 15px; background-color: #fff;
    -webkit-mask: var(--ik) center / contain no-repeat;
            mask: var(--ik) center / contain no-repeat;
}
.minda-card.is-active .minda-icon-circle { background: #fff; border-color: #fff; }
.minda-card.is-active .minda-icon-circle::before { background-color: #008C91; }
.minda-card-title { margin: 0; font-size: 12px; font-weight: 600; color: #fff; }
.minda-card.is-active .minda-card-title { font-weight: 700; }

/* ikon garis per menu (berdasarkan tujuan tautan) */
.minda-card[href="index.html"]            { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7.5' height='7.5' rx='2'/%3E%3Crect x='13.5' y='3' width='7.5' height='7.5' rx='2'/%3E%3Crect x='3' y='13.5' width='7.5' height='7.5' rx='2'/%3E%3Crect x='13.5' y='13.5' width='7.5' height='7.5' rx='2'/%3E%3C/svg%3E"); }
.minda-card[href="form.html"]             { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M12 11.5v6M9 14.5h6'/%3E%3C/svg%3E"); }
.minda-card[href="rekap.html"]            { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-2'/%3E%3Crect x='9' y='2.5' width='6' height='3.5' rx='1.2'/%3E%3Cpath d='M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.minda-card[href="rpk.html"]              { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 6h10M10 12h10M10 18h10'/%3E%3Cpath d='M3.5 6l1.2 1.2L6.8 5M3.5 12l1.2 1.2L6.8 11M3.5 18l1.2 1.2L6.8 17'/%3E%3C/svg%3E"); }
.minda-card[href="kalender.html"]         { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.minda-card[href="pegawai.html"]          { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20c0-3.3 2.9-6 6.5-6s6.5 2.7 6.5 6'/%3E%3Cpath d='M16 4.7a3.3 3.3 0 0 1 0 6.3M18 14.3c2 .8 3.5 2.6 3.5 5.2'/%3E%3C/svg%3E"); }
.minda-card[href="pengelolaan-data.html"] { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h8M20 6h0M4 12h2M14 12h6M4 18h10M22 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E"); }

.minda-card[href="kelola-tahun.html"]     { --ik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2.5'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3Cpath d='m9 15.5 2 2 4-4'/%3E%3C/svg%3E"); }

/* bagian Administrasi (kartu terakhir = Kelola Data) */
.minda-card-grid .minda-admin-awal { margin-top: 26px; }
.minda-card-grid .minda-admin-awal::before {
    content: "ADMINISTRASI"; position: absolute; top: -20px; left: 7px;
    font-size: 8.5px; font-weight: 700; letter-spacing: .2em; color: rgba(255, 255, 255, .5);
}

/* menu terkunci: gembok garis di kanan */
.minda-card.is-locked .minda-icon-circle,
.minda-card.is-locked .minda-card-title { opacity: .72; }
.minda-card.is-locked::after {
    content: ""; width: 12px; height: 12px; margin-left: auto; margin-right: 4px; opacity: .9;
    background-color: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* animasi isi sidebar saat dibuka */
body.menu-buka .minda-sidebar-header { animation: sbKepalaMasuk 1s ease-out .3s both; }
body.menu-buka .minda-card { animation: sbKartuMasuk .8s ease-out both; }
body.menu-buka .minda-card:nth-child(1) { animation-delay: .15s; }
body.menu-buka .minda-card:nth-child(2) { animation-delay: .21s; }
body.menu-buka .minda-card:nth-child(3) { animation-delay: .27s; }
body.menu-buka .minda-card:nth-child(4) { animation-delay: .33s; }
body.menu-buka .minda-card:nth-child(5) { animation-delay: .39s; }
body.menu-buka .minda-card:nth-child(6) { animation-delay: .45s; }
body.menu-buka .minda-card:nth-child(7) { animation-delay: .51s; }
body.menu-buka .minda-card:nth-child(8) { animation-delay: .57s; }
@keyframes sbKepalaMasuk { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes sbKartuMasuk { from { opacity: 0; transform: translateX(-25px) scale(.97); } to { opacity: 1; transform: none; } }

/* HP: sidebar lebih ramping, panah tutup di dekat tombol buka (kiri bawah) */
@media (max-width: 768px) {
    .sidebar-drawer { width: 72vw; max-width: 260px; }
    .minda-sidebar-header::before { height: 56px; background-size: 1px 30px; }
    .minda-sidebar-header::after { height: 56px; background-size: auto 42px, auto 36px; }
    .sidebar-close-btn { top: calc(100vh - 58px); top: calc(100dvh - 58px); right: -54px; width: 42px; height: 42px; }
}

/* ===================== KONTEN UTAMA ===================== */
.main {
    min-height: 100vh;
    display: flex; flex-direction: column;
}

/* ----- Bilah atas ----- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    height: var(--tinggi-bar);
    display: flex; align-items: center; gap: 16px;
    padding: 0 22px 0 26px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0, 90, 96, .08);
}
.tb-menu {
    display: inline-flex; flex: none;
    width: 40px; height: 40px; border-radius: 11px; border: 0; cursor: pointer;
    background: var(--mint-100); color: var(--teal-800);
    align-items: center; justify-content: center;
}
.tb-salam { display: flex; align-items: center; gap: 14px; min-width: 0; }
.tb-garis-miring {
    width: 14px; height: 34px; flex: none;
    background: linear-gradient(180deg, #1fc2bd, #008c91);
    transform: skewX(-18deg); border-radius: 3px;
}
.tb-salam h1 {
    margin: 0; font-size: 17px; font-weight: 600; color: #0b3f44;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tb-kanan { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.tb-kemenkes { height: 34px; width: auto; object-fit: contain; }
.tb-pemisah { width: 1px; height: 30px; background: linear-gradient(180deg, transparent, #0aa0a4, transparent); }

.tb-akun { position: relative; }
.akun-pil {
    display: flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 14px 0 8px;
    border: 0; border-radius: 999px; cursor: pointer;
    background: #eef6f8; color: #0b3f44;
    font-size: 15px; font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(0, 140, 145, .12);
}
.akun-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    display: grid; place-items: center;
    background: linear-gradient(135deg, #1fb7b4, #007c85); color: #fff;
}
.akun-avatar svg { width: 22px; height: 22px; }
.akun-nama { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.akun-pil .ic-kecil { transition: transform .2s; }
.akun-pil[aria-expanded="true"] .ic-kecil { transform: rotate(180deg); }

.akun-menu {
    position: absolute; right: 0; top: calc(100% + 10px);
    min-width: 220px; padding: 14px 16px;
    background: #fff; border-radius: 16px;
    box-shadow: 0 16px 36px rgba(0, 70, 76, .22);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: .18s;
}
.akun-menu.terbuka { opacity: 1; visibility: visible; transform: none; }
.akun-info small { display: block; font-size: 11.5px; color: var(--teks-redup); }
.akun-info strong { display: block; margin: 2px 0 8px; font-size: 15px; word-break: break-word; }
.akun-peran {
    display: inline-block; padding: 3px 12px; border-radius: 999px;
    font-size: 11.5px; font-weight: 700; color: var(--teal-800); background: var(--mint-100);
}

.tb-tombol {
    display: inline-flex; align-items: center; gap: 9px;
    height: 46px; padding: 0 20px; border: 0; border-radius: 14px; cursor: pointer;
    font-size: 15px; font-weight: 600; color: #fff !important;
    background: linear-gradient(135deg, #0b9aa0, #006f77);
    box-shadow: 0 6px 16px rgba(0, 100, 108, .3);
    transition: transform .15s, box-shadow .15s;
}
.tb-tombol:hover { transform: translateY(-1px); box-shadow: 0 9px 20px rgba(0, 100, 108, .36); }
.tb-tombol .ic { width: 21px; height: 21px; }

/* ----- Hero ----- */
.hero {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    background: linear-gradient(100deg, #005f65 0%, #00858b 42%, #0aa3a7 100%);
}
/* foto gedung di kanan, tepi kirinya memudar ke warna hero */
.hero::before {
    content: "";
    position: absolute; right: 0; top: -17%;
    height: 150%; aspect-ratio: 1152 / 941;
    background: url("assets/gedung-hero.jpg") no-repeat center / cover;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 18%, #000 42%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 18%, #000 42%);
}
.hero::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0, 92, 98, .55) 0%, rgba(0, 92, 98, 0) 55%);
}
.hero-isi {
    position: relative; z-index: 2;
    max-width: 640px;
    padding: 56px 0 64px 52px;
    color: #fff;
}
.hero-isi h2 {
    margin: 0; font-size: 44px; line-height: 1.12; font-weight: 700;
    text-shadow: 0 3px 14px rgba(0, 50, 56, .35);
}
.hero-sub {
    margin: 8px 0 0; font-size: 24px; font-style: italic; font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 50, 56, .35);
}
.hero-garis {
    display: block; width: 92px; height: 3px; margin: 16px 0 18px;
    background: linear-gradient(90deg, #7ff0e6, rgba(127, 240, 230, 0)); border-radius: 3px;
}
.hero-teks {
    margin: 0 0 20px; max-width: 420px; min-height: 52px;
    font-size: 18px; line-height: 1.5; font-weight: 400;
    transition: opacity .35s;
    text-shadow: 0 2px 8px rgba(0, 50, 56, .3);
}
.hero-teks.pudar { opacity: 0; }
.hero-tombol {
    display: inline-flex; align-items: center; gap: 10px;
    height: 46px; padding: 0 22px 0 18px; border-radius: 999px;
    font-size: 15px; font-weight: 700; color: #00767c;
    background: #e3f7f6;
    box-shadow: 0 8px 20px rgba(0, 60, 66, .3);
    transition: transform .15s, background .15s;
}
.hero-tombol:hover { transform: translateY(-2px); background: #fff; }
.hero-tombol .ic { width: 22px; height: 22px; }
.hero-tombol .ic-kecil { width: 18px; height: 18px; }

.hero-titik { display: flex; gap: 9px; margin-top: 22px; }
.hero-titik button {
    width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(255, 255, 255, .9); opacity: .9;
    transition: background .2s, transform .2s;
}
.hero-titik button.aktif { background: #19c9c3; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); transform: scale(1.05); }

.hero-ombak {
    position: absolute; left: 0; bottom: -1px; z-index: 1;
    width: 100%; height: 90px; pointer-events: none;
}

/* ----- Isi dasbor ----- */
.isi { position: relative; z-index: 2; margin-top: -26px; padding: 0 28px 28px; }

.menu-cepat {
    display: grid; gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    padding: 16px; margin-bottom: 20px;
    background: #fff; border-radius: 22px;
    box-shadow: 0 8px 26px rgba(0, 90, 96, .08);
}
.mc-kartu {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(0, 100, 108, .12), 0 0 0 1px rgba(0, 140, 145, .06);
    transition: transform .18s, box-shadow .18s;
}
.mc-kartu:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(0, 100, 108, .18), 0 0 0 1px rgba(0, 140, 145, .12); }
.mc-ikon {
    width: 54px; height: 54px; flex: none; border-radius: 50%;
    display: grid; place-items: center; color: #1a7fb8;
    background: radial-gradient(circle at 30% 25%, #f0fbfb, #c6ebec);
}
.mc-ikon .ic { width: 27px; height: 27px; }
.mc-teks { min-width: 0; flex: 1; }
.mc-teks strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.25; }
.mc-teks small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--teks-redup); }
.mc-panah {
    width: 32px; height: 32px; flex: none; align-self: flex-end; border-radius: 50%;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, #12a4a8, #00777f);
}
.mc-panah .ic { width: 17px; height: 17px; stroke-width: 2.2; }
.mc-kartu.is-locked .mc-panah { background: #9fb9bc; }
.mc-kartu.is-locked .mc-panah .ic use { display: none; }
.mc-kartu.is-locked .mc-panah::before {
    content: ""; width: 15px; height: 15px;
    background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E");
}

/* ----- Baris bawah ----- */
.baris-bawah { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; }

.kartu-kalender { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 26px rgba(0, 90, 96, .09); }
.kk-kepala {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    height: 52px; padding: 0 20px; color: #fff;
    background: linear-gradient(90deg, #00979b, #12b5b3);
}
.kk-kepala h3 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.kk-kepala h3 .ic { width: 23px; height: 23px; }
.kk-kepala a { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.kk-kepala a:hover { text-decoration: underline; }

.kk-badan { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.kk-bulan-wrap { padding: 14px 18px 18px; }
.kk-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 12px; }
.kk-nav button {
    width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
    display: grid; place-items: center; color: var(--teal-800); background: transparent;
}
.kk-nav button:hover { background: var(--mint-100); }
.kk-judul { display: inline-flex; align-items: center; gap: 8px; min-width: 150px; justify-content: center; font-size: 15px; color: #0b3f44; }
.kk-judul .ic { color: var(--teal-800); }

.kk-hari-nama, .kk-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.kk-hari-nama { margin-bottom: 4px; padding: 6px 4px; border-radius: 10px; background: var(--mint-50); }
.kk-hari-nama span { text-align: center; font-size: 12.5px; font-weight: 600; color: #3b6a6f; }
.kk-grid { row-gap: 2px; }
.kk-hari {
    position: relative; width: 36px; height: 36px; margin: 0 auto;
    display: grid; place-items: center;
    border: 0; border-radius: 50%; background: transparent; cursor: pointer;
    font-size: 13.5px; font-weight: 500; color: #12373b;
    transition: background .15s;
}
.kk-hari:hover { background: var(--mint-100); }
.kk-hari.luar { color: #9db4b7; }
.kk-hari.terpilih { box-shadow: inset 0 0 0 2px #14aaa9; }
.kk-hari.hari-ini { color: #fff; font-weight: 700; background: linear-gradient(135deg, #20c0bb, #008f95); box-shadow: none; }
.kk-hari.ada::after {
    content: ""; position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px;
    margin-left: -2.5px; border-radius: 50%; background: #f2a33a;
}
.kk-hari.hari-ini.ada::after { background: #fff; }

.kk-agenda { padding: 16px 20px 18px; border-left: 1px dashed #cfe6e7; display: flex; flex-direction: column; min-width: 0; }
.ka-kepala strong { display: block; font-size: 14.5px; font-weight: 600; color: #0b3f44; }
.ka-kepala small { display: block; margin-top: 2px; font-size: 12px; color: var(--teks-redup); min-height: 18px; }
.ka-daftar { list-style: none; margin: 12px 0 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 10px; max-height: 250px; overflow-y: auto; }
.ka-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #f2f9f9; border-left: 3px solid #14aaa9; }
.ka-jam { flex: none; min-width: 48px; font-size: 12px; font-weight: 700; color: var(--teal-800); }
.ka-judul { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.35; word-break: break-word; }
.ka-tempat { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; color: var(--teks-redup); }
.ka-tempat .ic { width: 13px; height: 13px; }
.ka-kosong { margin: auto 0; padding: 26px 8px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--teks-redup); list-style: none; }
.ka-kosong .ic { display: block; width: 34px; height: 34px; margin: 0 auto 8px; color: #a8cfd1; }

/* ----- Kartu kutipan ----- */
.kartu-kutipan {
    position: relative; overflow: hidden; min-height: 260px;
    display: flex; flex-direction: column; justify-content: center;
    padding: 30px 30px 78px; border-radius: 20px; color: #fff;
    background: linear-gradient(135deg, #007f86 0%, #0aa3a6 55%, #19bdb8 100%);
    box-shadow: 0 8px 26px rgba(0, 90, 96, .16);
}
.kartu-kutipan blockquote {
    position: relative; z-index: 2; margin: 0;
    font-size: 24px; line-height: 1.32; font-weight: 700; font-style: italic;
    text-shadow: 0 2px 10px rgba(0, 60, 66, .25);
}
.kut-garis { position: relative; z-index: 2; display: block; width: 110px; height: 2px; margin: 18px 0 16px; background: linear-gradient(90deg, #8ff3ea, rgba(143, 243, 234, 0)); }
.kut-merek { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.kut-merek img { width: 32px; height: 38px; object-fit: contain; }
.kut-dekor { position: absolute; left: 0; bottom: 0; width: 100%; height: 150px; pointer-events: none; }

/* ----- Kaki halaman ----- */
.kaki {
    margin-top: auto; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 12px 120px 12px 28px;
    font-size: 13.5px; color: #12373b;
    background: #e3f1f5; border-top: 1px solid #d3e7ec;
}
.kaki::after {
    content: ""; position: absolute; right: -20px; top: 0; bottom: 0; width: 120px;
    background:
        linear-gradient(115deg, transparent 38%, #19bdb8 38% 52%, transparent 52% 60%, #0a9aa0 60% 100%);
    opacity: .9;
}
.kaki-kiri, .kaki-kanan { display: flex; align-items: center; gap: 10px; }
.kaki-kiri img { width: 26px; height: 30px; object-fit: contain; }
.kaki-kanan { color: #0a7f86; font-style: italic; }
.kaki-kanan b { font-weight: 700; }
.kaki-kanan img { height: 24px; width: auto; margin-left: 8px; object-fit: contain; font-style: normal; }

/* ===================== POP-UP ===================== */
.modal {
    position: fixed; inset: 0; z-index: 1000; padding: 16px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0, 30, 34, .5);
}
.modal-kotak {
    width: 100%; max-width: 400px; padding: 26px 24px 20px; text-align: center;
    background: #fff; border-radius: 18px; box-shadow: 0 20px 44px rgba(0, 0, 0, .3);
    animation: modalMuncul .2s ease;
}
.modal-ikon {
    width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 50%;
    display: grid; place-items: center; background: var(--mint-100); color: var(--teal-700);
}
.modal-ikon .ic { width: 28px; height: 28px; }
.modal-kotak h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: var(--teal-800); }
.modal-kotak p { margin: 0 0 22px; font-size: 14px; line-height: 1.55; color: #4b5b5d; }
.modal-aksi { display: flex; gap: 10px; }
.modal-aksi button {
    flex: 1; padding: 10px 16px; border: 0; border-radius: 11px; cursor: pointer;
    font-size: 14px; font-weight: 700;
}
.modal-aksi .m-sekunder { background: #e5eaeb; color: #374143; }
.modal-aksi .m-sekunder:hover { background: #d8dfe0; }
.modal-aksi .m-utama { background: var(--teal-700); color: #fff; }
.modal-aksi .m-utama:hover { background: #007379; }
@keyframes modalMuncul { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }


/* ===================== LAYAR LEBAR SEDANG ===================== */
@media (max-width: 1280px) {
    .baris-bawah { grid-template-columns: minmax(0, 1fr); }
    .kartu-kutipan { min-height: 220px; }
    .hero-isi h2 { font-size: 38px; }
}

/* ===================== TABLET & HP ===================== */
@media (max-width: 960px) {
    .tb-salam h1 { font-size: 15px; }
    .tb-kemenkes { height: 28px; }
    .hero-isi { padding: 48px 24px 64px; max-width: 560px; }
    .isi { padding: 0 16px 20px; }
}

@media (max-width: 720px) {
    .topbar { padding: 0 12px; gap: 10px; }
    .tb-garis-miring { display: none; }
    .tb-salam h1 { font-size: 13.5px; white-space: normal; line-height: 1.25; }
    .tb-kemenkes, .tb-pemisah, .akun-nama, .akun-pil .ic-kecil { display: none; }
    .akun-pil { padding: 0 6px; }
    .tb-tombol { padding: 0 14px; }
    .tb-tombol span { display: none; }
    .tb-tombol { width: 46px; justify-content: center; padding: 0; }

    .hero { min-height: 330px; }
    .hero::before {
        top: 0; height: 100%; width: 100%; aspect-ratio: auto; opacity: .45;
        background-position: 70% 30%;
        -webkit-mask-image: none; mask-image: none;
    }
    .hero::after { background: linear-gradient(180deg, rgba(0, 100, 106, .7) 0%, rgba(0, 135, 141, .35) 100%); }
    .hero-isi h2 { font-size: 30px; }
    .hero-sub { font-size: 17px; }
    .hero-teks { font-size: 15px; }

    .menu-cepat { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; }
    .baris-bawah { grid-template-columns: minmax(0, 1fr); }

    .kk-badan { grid-template-columns: minmax(0, 1fr); }
    .kk-agenda { border-left: 0; border-top: 1px dashed #cfe6e7; }
    .kartu-kutipan blockquote { font-size: 20px; }
    .kaki { padding: 12px 70px 12px 16px; font-size: 12px; }
    .kaki::after { width: 70px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}

/* =========================================================
   PENYESUAIAN DESAIN DASBOR (mengikuti mockup)
========================================================= */
/* Menu cepat: ikon biru terisi + kilau teal di pojok kanan bawah */
.menu-cepat { border-radius: 24px; padding: 18px; gap: 18px; box-shadow: 0 10px 30px rgba(0, 90, 96, .10); }
.mc-kartu {
    position: relative; overflow: hidden; padding: 14px 16px; border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f7fcfc 100%);
    box-shadow: 0 6px 18px rgba(0, 100, 108, .10), 0 0 0 1px rgba(0, 140, 145, .07);
}
.mc-kartu::after {
    content: ""; position: absolute; right: -30px; bottom: -34px; width: 150px; height: 90px; pointer-events: none;
    background: radial-gradient(closest-side, rgba(32, 196, 199, .30), rgba(32, 196, 199, 0));
}
.mc-kartu > * { position: relative; z-index: 1; }
.mc-ikon { width: 56px; height: 56px; color: #1b7fc0; background: radial-gradient(circle at 30% 25%, #f4fcfd, #cdeaf1); box-shadow: inset 0 0 0 1px rgba(27, 127, 192, .10); }
.mc-ikon .ic { width: 28px; height: 28px; fill: currentColor; fill-opacity: .16; stroke-width: 1.9; }

/* Kalender: navigasi bulan berbentuk pil, nama hari pita abu-mint, hari ini lingkaran teal */
.kartu-kalender, .kartu-kutipan { border-radius: 22px; }
.kk-nav {
    width: max-content; margin: 0 auto 14px; padding: 4px 8px; gap: 10px;
    background: #eef6f7; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0, 140, 145, .10);
}
.kk-judul { min-width: 140px; font-weight: 700; }
.kk-hari-nama { background: #edf3f5; border-radius: 12px; padding: 8px 4px; }
.kk-hari { width: 38px; height: 38px; font-size: 14px; }
.kk-hari.hari-ini { box-shadow: 0 5px 12px rgba(0, 140, 145, .35); }
.kk-kepala { height: 56px; }
.kk-kepala h3 { font-size: 17px; font-weight: 700; }

/* Hero: lapisan ombak lebih lembut */
.hero-ombak { height: 100px; }
.hero-isi h2 { letter-spacing: -.005em; }


/* =========================================================
   TOMBOL BUKA SIDEBAR: panah mengambang, sama dengan halaman lain
========================================================= */
.tb-menu {
    position: fixed; left: 20px; top: 90px; z-index: 1000;
    width: 39px; height: 39px; border: 0; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: #008C91; color: #fff; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    transition: top .3s ease, transform .25s ease, background-color .3s ease, box-shadow .3s ease;
}
.tb-menu .ic { width: 21px; height: 21px; stroke-width: 2.8; transition: transform .25s ease; }
.tb-menu:hover { background: #14B0B5; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.tb-menu:hover .ic { transform: translateX(3px); }
.tb-menu:active { transform: scale(.97); }
.topbar { padding-left: 26px; }
.hero-isi { padding-left: 84px; }

@media (max-width: 960px) {
    .hero-isi { padding-left: 24px; }
}
@media (max-width: 768px) {
    .tb-menu {
        left: 12px; top: auto; bottom: 16px; width: 42px; height: 42px;
        border-radius: 50%; background: #006B70; border: 2px solid #fff;
        box-shadow: 0 6px 18px rgba(0, 60, 66, .4);
    }
    .tb-menu .ic { width: 20px; height: 20px; }
    body.menu-buka .tb-menu { display: none; }
}

/* ===== LATAR SIDEBAR: gradasi + heksagon + gelombang (isi menu tidak diubah) ===== */
.sidebar-drawer { background: linear-gradient(180deg, #00858B 0%, #007379 55%, #006B70 calc(100% - 270px), #1BB8BB 100%); }
.sidebar-drawer::before { content:""; position:absolute; left:0; right:0; bottom:-14px; height:240px; pointer-events:none; z-index:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke='white' stroke-opacity='.28' stroke-width='3'%3E%3Cpath d='M70 52 112 76v48l-42 24-42-24V76z' fill='white' fill-opacity='.07'/%3E%3Cpath d='M178 128l34 20v40l-34 20-34-20v-40z' fill='white' fill-opacity='.07'/%3E%3C/g%3E%3Cg fill='white' fill-opacity='.38'%3E%3Crect x='64' y='72' width='12' height='52' rx='3'/%3E%3Crect x='44' y='92' width='52' height='12' rx='3'/%3E%3Crect x='173' y='152' width='10' height='36' rx='3'/%3E%3Crect x='160' y='165' width='36' height='10' rx='3'/%3E%3C/g%3E%3C/svg%3E") center bottom / 100% auto no-repeat; }
.sidebar-drawer::after { content:""; position:absolute; left:0; right:0; bottom:-8px; height:150px; pointer-events:none; z-index:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 150' preserveAspectRatio='none'%3E%3Cpath d='M0 70C60 40 110 100 170 80S240 40 260 50V150H0z' fill='white' fill-opacity='.10'/%3E%3Cpath d='M0 100C50 70 120 130 180 105S240 80 260 90V150H0z' fill='white' fill-opacity='.14'/%3E%3Cpath d='M0 125C70 100 130 145 260 112V150H0z' fill='white' fill-opacity='.12'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat; }
.sidebar-drawer .minda-sidebar-header, .sidebar-drawer .sidebar-body { position: relative; z-index: 1; }
.sidebar-drawer .sidebar-close-btn { z-index: 2; }
@media (max-height: 720px) { .sidebar-drawer::before { display: none; } }

/* =========================================================
   PERCANTIK TOPBAR + HERO
   (blok ini di paling bawah; hapus saja kalau mau kembali ke tampilan sebelumnya)
========================================================= */

/* ----- Topbar: putih lembut + garis tipis di bawah (tanpa backdrop-filter, karena tombol panah sidebar fixed berada di dalam topbar) ----- */
.topbar {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbfb 100%);
    box-shadow: 0 4px 22px rgba(0, 90, 96, .09);
}
.topbar::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
    background: linear-gradient(90deg, transparent 0%, #1fc2bd 22%, #008c91 55%, transparent 100%);
    opacity: .55; pointer-events: none;
}
.tb-salam h1 { font-weight: 700; letter-spacing: -.005em; }
.tb-garis-miring { box-shadow: 0 4px 10px rgba(0, 140, 145, .35); }
.akun-pil {
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 140, 145, .20), 0 5px 14px rgba(0, 100, 108, .10);
    transition: box-shadow .2s, transform .2s;
}
.akun-pil:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(0, 140, 145, .35), 0 8px 18px rgba(0, 100, 108, .16); }
.akun-avatar { box-shadow: 0 0 0 3px rgba(31, 194, 189, .22); }
.tb-tombol { border-radius: 999px; }

/* ----- Hero: latar berlapis (cahaya + pola titik + lingkaran) ----- */
.hero {
    background:
        radial-gradient(60% 95% at 14% 18%, rgba(45, 215, 214, .34) 0%, rgba(45, 215, 214, 0) 70%),
        linear-gradient(100deg, #00545a 0%, #007b81 42%, #0aa3a7 100%);
}
/* foto gedung: zoom pelan (Ken Burns) */
/* Satu siklus utuh (1 -> 1.06 -> 1) dengan easing sinus di tiap paruh, jadi masuk dan keluar sama mulusnya.
   will-change + translateZ(0) membuat foto jadi layer GPU sendiri, sehingga mask tidak digambar ulang tiap frame. */
.hero::before {
    transform-origin: 85% 50%;
    transform: translateZ(0) scale(1);
    will-change: transform;
    backface-visibility: hidden;
    animation: heroZoom 32s infinite;
}
@keyframes heroZoom {
    0%   { transform: translateZ(0) scale(1);    animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
    50%  { transform: translateZ(0) scale(1.06); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
    100% { transform: translateZ(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero-isi::before {
    content: ""; position: absolute; z-index: -1;
    top: -60px; bottom: -80px; left: 0; right: -120px; pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, .26) 1.2px, transparent 1.8px) 0 0 / 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .35) 55%, transparent 100%);
    opacity: .55;
}
.hero-isi::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 380px; height: 380px; left: -150px; bottom: -190px; border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 0 0 46px rgba(255, 255, 255, .035), 0 0 0 92px rgba(255, 255, 255, .025);
}

/* ----- Hero: tipografi ----- */
.hero-isi h2 {
    font-weight: 800;
    background: linear-gradient(90deg, #ffffff 0%, #e6fffd 55%, #a8f0f2 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 4px 14px rgba(0, 50, 56, .38));
}
.hero-sub { color: #d6fbf9; letter-spacing: .01em; }
.hero-garis {
    width: 130px; height: 4px; position: relative;
    background: linear-gradient(90deg, #7ff0e6, rgba(127, 240, 230, 0));
    box-shadow: 0 0 14px rgba(127, 240, 230, .55);
}
.hero-garis::before {
    content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px;
    border-radius: 50%; background: #fff; box-shadow: 0 0 12px 3px rgba(127, 240, 230, .85);
}
.hero-teks { color: rgba(255, 255, 255, .94); }

/* ----- Hero: tombol ----- */
.hero-tombol {
    gap: 12px; padding: 0 20px 0 8px;
    background: linear-gradient(135deg, #ffffff, #d9f6f5);
    box-shadow: 0 10px 24px rgba(0, 50, 56, .32), inset 0 0 0 1px rgba(255, 255, 255, .8);
}
.hero-tombol > .ic:first-child {
    width: 32px; height: 32px; padding: 7px; border-radius: 50%;
    color: #fff; background: linear-gradient(135deg, #17b4b8, #00868c);
    box-shadow: 0 4px 10px rgba(0, 110, 116, .35);
}
.hero-tombol .ic-kecil { transition: transform .2s ease; }
.hero-tombol:hover .ic-kecil { transform: translateX(4px); }
.hero-tombol:hover { box-shadow: 0 14px 28px rgba(0, 50, 56, .38), inset 0 0 0 1px #fff; }

/* ----- Hero: indikator titik jadi pil memanjang ----- */
.hero-titik button { width: 10px; height: 10px; background: rgba(255, 255, 255, .5); opacity: 1; transition: width .3s ease, background .3s ease; }
.hero-titik button.aktif { width: 30px; border-radius: 999px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, .6); transform: none; }

/* ----- Hero: animasi masuk (fill backwards agar tidak menahan efek pudar teks) ----- */
@keyframes heroMasuk { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-isi > h2, .hero-isi > .hero-sub, .hero-isi > .hero-garis,
.hero-isi > .hero-teks, .hero-isi > .hero-tombol, .hero-isi > .hero-titik { animation: heroMasuk .7s ease-out backwards; }
.hero-isi > .hero-sub    { animation-delay: .08s; }
.hero-isi > .hero-garis  { animation-delay: .16s; }
.hero-isi > .hero-teks   { animation-delay: .24s; }
.hero-isi > .hero-tombol { animation-delay: .32s; }
.hero-isi > .hero-titik  { animation-delay: .40s; }

/* =========================================================
   NAVBAR LEBIH RAMPING (tinggi 66px -> 52px)
========================================================= */
:root { --tinggi-bar: 52px; }
.topbar { padding-top: 0; padding-bottom: 0; }
.tb-garis-miring { width: 11px; height: 26px; }
.tb-salam { gap: 11px; }
.tb-salam h1 { font-size: 15px; }
.tb-kanan { gap: 10px; }
.tb-kemenkes { height: 26px; }
.tb-pemisah { height: 22px; }

.akun-pil { height: 36px; padding: 0 11px 0 4px; gap: 8px; font-size: 13px; }
.akun-avatar { width: 28px; height: 28px; box-shadow: 0 0 0 2px rgba(31, 194, 189, .22); }
.akun-avatar svg { width: 18px; height: 18px; }

.tb-tombol { height: 36px; padding: 0 15px; gap: 7px; font-size: 13px; box-shadow: 0 4px 10px rgba(0, 100, 108, .26); }
.tb-tombol .ic { width: 17px; height: 17px; }

@media (max-width: 960px) {
    .tb-salam h1 { font-size: 14px; }
    .tb-kemenkes { height: 24px; }
}
@media (max-width: 720px) {
    .tb-salam h1 { font-size: 13px; }
    .akun-pil { height: 34px; padding: 0 4px; }
    .tb-tombol { width: 36px; height: 36px; padding: 0; }
}

/* =========================================================
   NAVBAR: POLES AKHIR
========================================================= */
/* garis bawah bergerak pelan */
.topbar::after {
    height: 2px; opacity: .8;
    background: linear-gradient(90deg, transparent 0%, #1fc2bd 20%, #008c91 45%, #7ff0e6 60%, #008c91 75%, transparent 100%);
    background-size: 200% 100%;
    animation: navGaris 9s linear infinite;
}
@keyframes navGaris { from { background-position: 0 0; } to { background-position: -200% 0; } }

/* judul: "Selamat Datang di" ringan, nama sistem tebal bergradasi */
.tb-sapa { font-weight: 500; color: #5d7c80; }
.tb-merek {
    font-weight: 800; letter-spacing: -.01em;
    background: linear-gradient(90deg, #006b70 0%, #0aa3a7 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
}
.tb-garis-miring {
    background: linear-gradient(180deg, #5eead9 0%, #14b0b5 45%, #006b70 100%);
    box-shadow: 0 4px 12px rgba(0, 140, 145, .40), inset 0 0 0 1px rgba(255, 255, 255, .35);
}

/* logo Kemenkes dalam wadah halus */
.tb-kemenkes { padding: 4px 10px; border-radius: 10px; background: #f3fafa; box-sizing: content-box; box-shadow: inset 0 0 0 1px rgba(0, 140, 145, .10); }

/* pil akun: titik status hijau di avatar */
.akun-avatar { position: relative; }
.akun-avatar::after {
    content: ""; position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px;
    border-radius: 50%; background: #2ecc71; box-shadow: 0 0 0 2px #fff;
}
.akun-pil { background: linear-gradient(180deg, #ffffff, #f1f9f9); }
.akun-nama { letter-spacing: .02em; font-weight: 700; }

/* Logout: gaya outline lembut, terisi saat disorot. Login tetap tombol utama */
#btnLogout {
    color: #007a80 !important; background: #fff;
    box-shadow: inset 0 0 0 1.5px rgba(0, 140, 145, .55);
    transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}
#btnLogout:hover {
    color: #fff !important; background: linear-gradient(135deg, #0b9aa0, #006f77);
    box-shadow: 0 6px 14px rgba(0, 100, 108, .30);
}
#btnLogout:hover .ic { transform: translateX(2px); }
#btnLogout .ic { transition: transform .2s; }

/* =========================================================
   HERO VERSI TERANG: latar putih, tulisan hijau teal
   (foto gedung memudar ke putih). Hapus blok ini untuk kembali ke hero gelap.
========================================================= */
.hero {
    background:
        radial-gradient(55% 90% at 12% 15%, rgba(31, 194, 189, .10) 0%, rgba(31, 194, 189, 0) 70%),
        linear-gradient(100deg, #ffffff 0%, #f5fbfb 45%, #e9f6f6 100%);
}
.hero::after { background: linear-gradient(90deg, rgba(255, 255, 255, .75) 0%, rgba(255, 255, 255, 0) 58%); }

/* teks */
.hero-isi { color: #0e5a5f; }
.hero-isi h2 {
    background: linear-gradient(90deg, #00585e 0%, #008c91 55%, #14b0b5 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 110, 116, .14));
}
.hero-sub { color: #0b7f84; text-shadow: none; }
.hero-teks { color: #2b5a5e; text-shadow: none; }

/* garis & hiasan */
.hero-garis { background: linear-gradient(90deg, #14b0b5, rgba(20, 176, 181, 0)); box-shadow: 0 0 10px rgba(20, 176, 181, .35); }
.hero-garis::before { background: #14b0b5; box-shadow: 0 0 10px 2px rgba(20, 176, 181, .55); }
.hero-isi::before { background-image: radial-gradient(circle, rgba(0, 140, 145, .30) 1.2px, transparent 1.8px); opacity: .45; }
.hero-isi::after {
    border-color: rgba(0, 140, 145, .14);
    box-shadow: 0 0 0 46px rgba(0, 140, 145, .04), 0 0 0 92px rgba(0, 140, 145, .025);
}

/* tombol: teal pekat, teks putih */
.hero-tombol {
    color: #fff;
    background: linear-gradient(135deg, #14b0b5, #007c82);
    box-shadow: 0 10px 22px rgba(0, 110, 116, .32);
}
.hero-tombol:hover { background: linear-gradient(135deg, #1cc0c4, #008a90); box-shadow: 0 14px 26px rgba(0, 110, 116, .38); }
.hero-tombol > .ic:first-child { color: #008c91; background: #fff; box-shadow: 0 3px 8px rgba(0, 60, 66, .22); }

/* indikator titik */
.hero-titik button { background: rgba(0, 140, 145, .28); }
.hero-titik button.aktif { background: #008c91; box-shadow: 0 0 8px rgba(0, 140, 145, .45); }

/* HP: foto lebih samar + lapisan putih supaya tulisan hijau tetap terbaca */
@media (max-width: 720px) {
    .hero::before { opacity: .28; }
    .hero::after { background: linear-gradient(180deg, rgba(255, 255, 255, .80) 0%, rgba(255, 255, 255, .45) 100%); }
}

/* =========================================================
   NAVBAR BERWARNA: gradasi teal + hiasan, teks putih
   (hapus blok ini untuk kembali ke navbar putih)
========================================================= */
.topbar {
    background: linear-gradient(100deg, #00545a 0%, #007b81 42%, #0aa3a7 100%);
    box-shadow: 0 6px 20px rgba(0, 70, 76, .28);
}
/* hiasan: pola titik di kanan + kilau diagonal */
.topbar::before {
    content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, .10) 50%, transparent 62%),
        radial-gradient(circle, rgba(255, 255, 255, .30) 1.2px, transparent 1.8px) 0 0 / 16px 16px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 100%);
            mask-image: linear-gradient(90deg, transparent 0%, transparent 35%, #000 100%);
    opacity: .6;
}
.topbar > *:not(.tb-menu) { position: relative; z-index: 1; }
.topbar::after {
    z-index: 2; opacity: .9;
    background: linear-gradient(90deg, transparent 0%, #7ff0e6 22%, #ffffff 48%, #7ff0e6 74%, transparent 100%);
    background-size: 200% 100%;
}

/* judul */
.tb-sapa { color: rgba(255, 255, 255, .78); font-weight: 500; }
.tb-merek {
    background: linear-gradient(90deg, #ffffff 0%, #bff7f4 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 6px rgba(0, 40, 46, .25));
}
.tb-garis-miring {
    background: linear-gradient(180deg, #ffffff 0%, #9bf0ea 55%, #3fd0cb 100%);
    box-shadow: 0 4px 12px rgba(0, 40, 46, .30);
}

/* logo Kemenkes: wadah putih supaya warna logo tetap jelas */
.tb-kemenkes { background: #fff; box-shadow: 0 4px 12px rgba(0, 40, 46, .22); }
.tb-pemisah { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .6), transparent); }

/* pil akun: kaca transparan */
.akun-pil {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .38), 0 4px 12px rgba(0, 40, 46, .18);
}
.akun-pil:hover { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6), 0 8px 18px rgba(0, 40, 46, .24); }
.akun-avatar { background: #fff; color: #008c91; box-shadow: 0 0 0 2px rgba(255, 255, 255, .35); }
.akun-avatar::after { box-shadow: 0 0 0 2px #0a8d92; }

/* Logout & Login: tombol putih berteks teal */
.tb-tombol, #btnLogout {
    color: #006f77 !important; background: #fff;
    box-shadow: 0 5px 14px rgba(0, 40, 46, .25);
}
.tb-tombol:hover, #btnLogout:hover {
    color: #005a60 !important; background: #e3f7f6;
    box-shadow: 0 8px 18px rgba(0, 40, 46, .30);
}

/* =========================================================
   FOTO GEDUNG MENYATU DENGAN LATAR PUTIH
   (fade pendek dari kiri supaya foto tetap jelas)
========================================================= */
@media (min-width: 721px) {
    .hero::before {
        -webkit-mask-image:
            linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 9%, rgba(0, 0, 0, .92) 19%, #000 29%),
            linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, rgba(0, 0, 0, .6) 100%);
        -webkit-mask-composite: source-in;
                mask-image:
            linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 9%, rgba(0, 0, 0, .92) 19%, #000 29%),
            linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, rgba(0, 0, 0, .6) 100%);
                mask-composite: intersect;
        opacity: 1;
    }
    .hero::after {
        background: linear-gradient(90deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .32) 20%, rgba(255, 255, 255, 0) 36%);
    }
}

/* =========================================================
   FOTO HERO: zoom mulus
   Foto dipisah dari mask-nya. .hero-foto (statis) memegang posisi + mask,
   .hero-foto-img (anaknya) satu-satunya yang beranimasi lewat transform,
   jadi browser tidak perlu menghitung ulang mask / raster ulang tiap frame.
========================================================= */
.hero::before { content: none; animation: none; }
.hero-foto {
    position: absolute; right: 0; top: -17%;
    height: 150%; aspect-ratio: 1152 / 941;
    overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 18%, #000 42%);
            mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 18%, #000 42%);
}
.hero-foto-img {
    position: absolute; inset: 0;
    background: url("assets/gedung-hero.jpg") no-repeat center / cover;
    transform-origin: 85% 50%;
    transform: translate3d(0, 0, 0) scale(1);
    will-change: transform;
    backface-visibility: hidden;
    animation: heroZoom 32s infinite;
}
@media (min-width: 721px) {
    .hero-foto {
        -webkit-mask-image:
            linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 9%, rgba(0, 0, 0, .92) 19%, #000 29%),
            linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, rgba(0, 0, 0, .6) 100%);
        -webkit-mask-composite: source-in;
                mask-image:
            linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .55) 9%, rgba(0, 0, 0, .92) 19%, #000 29%),
            linear-gradient(180deg, transparent 0%, #000 10%, #000 88%, rgba(0, 0, 0, .6) 100%);
                mask-composite: intersect;
    }
}
@media (max-width: 720px) {
    .hero-foto { top: 0; height: 100%; width: 100%; aspect-ratio: auto; opacity: .28; -webkit-mask-image: none; mask-image: none; }
    .hero-foto-img { background-position: 70% 30%; }
}
@keyframes heroZoom {
    0%   { transform: translate3d(0, 0, 0) scale(1);    animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
    50%  { transform: translate3d(0, 0, 0) scale(1.06); animation-timing-function: cubic-bezier(.37, 0, .63, 1); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hero-foto-img { animation: none; } }

/* =========================================================
   FOTO HERO v2: ringan di laptop biasa
   - Tanpa mask pada foto yang bergerak (mask dihitung ulang tiap frame = penyebab tersendat).
     Fade ke putih sekarang pakai lapisan gradasi statis di atas foto (tampilan sama).
   - Teks hero dipisah ke layer sendiri, jadi tidak ikut digambar ulang saat foto zoom.
   - Zoom jauh lebih pelan: 1.00 -> 1.045 selama 45 dtk, lalu kembali 45 dtk (siklus 90 dtk).
========================================================= */
.hero { isolation: isolate; }
.hero-isi { transform: translateZ(0); }
.hero-foto { -webkit-mask-image: none; mask-image: none; contain: layout paint; }
.hero-foto::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(90deg, rgb(247, 252, 252) 0%, rgba(247, 252, 252, .45) 9%, rgba(247, 252, 252, .08) 19%, rgba(247, 252, 252, 0) 29%),
        linear-gradient(180deg, rgb(247, 252, 252) 0%, rgba(247, 252, 252, 0) 10%, rgba(247, 252, 252, 0) 88%, rgba(247, 252, 252, .4) 100%);
}
.hero-foto-img { animation: heroZoom 90s infinite; }
@keyframes heroZoom {
    0%   { transform: translate3d(0, 0, 0) scale(1);     animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
    50%  { transform: translate3d(0, 0, 0) scale(1.045); animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}
@media (max-width: 720px) {
    .hero-foto::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero-foto-img { animation: none; } }