/* =====================================================
   SI BBKK BATAM - CSS UTAMA (BERSIH)
   Sidebar + Dashboard
   Ukuran dioptimalkan untuk laptop/komputer zoom 100%
===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    color: #243b46;
    background: #f1f6f9;
    overflow-x: hidden;
}

/* =====================================================
   TOMBOL MENU (hanya tampil di HP)
===================================================== */

.toggle-btn {
    display: none;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1100;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 9px;
    background: #087765;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    transition: background .2s ease;
}

.toggle-btn:hover {
    background: #055c50;
}

/* =====================================================
   SIDEBAR
===================================================== */

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    width: 260px;
    height: 100vh;
    padding: 20px 14px 14px;
    overflow-x: hidden;
    overflow-y: auto;
    background: linear-gradient(180deg, #075e53 0%, #064d47 55%, #033c3b 100%);
    color: #fff;
    box-shadow: 5px 0 20px rgba(4, 48, 46, .12);
    transition: left .3s ease;
}

/* Brand (logo + judul) */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 6px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.sidebar-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
}

.sidebar-brand-logo img {
    display: block;
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.sidebar-brand-teks h2 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.sidebar-brand-teks small {
    color: #b9e3d9;
    font-size: 12px;
}

/* Judul kelompok menu */
.sidebar-heading {
    margin: 20px 8px 8px;
    color: #9fd9ca;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* Daftar menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #eaf7f3;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.menu-item i {
    width: 20px;
    flex-shrink: 0;
    color: #c9eee4;
    font-size: 15px;
    text-align: center;
}

.menu-item:hover {
    background: rgba(255, 255, 255, .10);
    color: #fff;
}

/* Menu aktif: kotak putih */
.menu-item.active {
    background: #fff;
    color: #064b47;
    font-weight: 700;
}

.menu-item.active i {
    color: #078b70;
}

/* Footer sidebar */
.sidebar-footer {
    margin-top: auto;
    padding: 14px 8px 4px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #b9e3d9;
    font-size: 11.5px;
}

.sidebar-footer p {
    margin: 0;
}

/* =====================================================
   AREA KONTEN
===================================================== */

.content {
    min-height: 100vh;
    padding: 20px 28px;
    overflow-x: hidden;
}

/* Dashboard punya topbar sendiri, jadi tanpa padding */
.content:has(#halaman-dashboard) {
    padding: 0;
}

/* Margin hanya dipakai kalau sidebar ada di halaman */
@media (min-width: 901px) {
    .sidebar ~ .content {
        width: calc(100% - 260px);
        margin-left: 260px;
    }
}

/* =====================================================
   DASHBOARD
===================================================== */

#halaman-dashboard {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---------- Topbar ---------- */

.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 32px;
    border-bottom: 1px solid #e3ebf0;
    background: #fff;
}

.dash-topbar-kiri {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

/* Logo Kemenkes (latar putih menyatu dengan topbar) */
.dash-topbar-logo {
    display: block;
    flex: 0 0 104px;
    width: 104px;
    height: 58px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.dash-topbar-info h3 {
    margin: 0;
    color: #064b47;
    font-size: 18px;
    font-weight: 800;
}

.dash-topbar-info p {
    margin: 2px 0 0;
    color: #7a8e9b;
    font-size: 12px;
}

/* Pilih tahun */
.pilih-tahun-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    padding: 6px 12px;
    border: 1px solid #dde8ee;
    border-radius: 12px;
    background: #f7fafc;
}

.pilih-tahun-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #e0f4ef;
    color: #07836e;
    font-size: 16px;
}

.pilih-tahun-info span {
    display: block;
    color: #71868f;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.pilih-tahun-info select {
    width: 100%;
    padding: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #07584e;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

/* ---------- Isi dashboard ---------- */

.dash-isi {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 32px 0;
}

/* ---------- Banner ---------- */

.dash-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 170px;
    margin-bottom: 20px;
    padding: 26px 36px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(120deg, #064b47 0%, #075e53 55%, #087765 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(6, 75, 71, .18);
}

/* Foto pelabuhan di sisi kanan, memudar ke kiri */
.dash-banner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    background: url("assets/background-dashboard.jpg.jpeg") center / cover no-repeat;
    opacity: .6;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 65%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 65%);
    pointer-events: none;
}

.dash-banner-teks {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.dash-banner-label {
    display: block;
    margin-bottom: 6px;
    color: #bfe8dd;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

.dash-banner h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.3px;
}

.dash-banner p {
    margin: 0;
    color: #e3f4ef;
    font-size: 14px;
    line-height: 1.7;
}

/* ---------- Kartu statistik ---------- */

.dash-statistik {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.dash-stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid #e3ebf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(27, 64, 78, .05);
}

.dash-stat-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #d9f2eb;
    color: #078b70;
    font-size: 20px;
}

.dash-stat-biru {
    background: #e1efff;
    color: #2585cf;
}

.dash-stat-hijau {
    background: #e0f4e9;
    color: #15976f;
}

.dash-stat-info p {
    margin: 0;
    color: #6b7e90;
    font-size: 12px;
}

.dash-stat-info h2 {
    margin: 2px 0;
    color: #064b47;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
}

.dash-stat-info small {
    color: #8a9bab;
    font-size: 11px;
}

/* ---------- Akses sistem ---------- */

.dash-judul {
    margin-bottom: 14px;
}

.dash-judul h2 {
    margin: 0;
    color: #064b47;
    font-size: 19px;
    font-weight: 800;
}

.dash-judul p {
    margin: 3px 0 0;
    color: #7a8e9b;
    font-size: 12.5px;
}

.dash-akses {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.dash-akses-card {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    border: 1px solid #e3ebf0;
    border-radius: 14px;
    background: #fff;
    color: inherit;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(27, 64, 78, .05);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.dash-akses-card:hover {
    transform: translateY(-2px);
    border-color: #9fd6c8;
    box-shadow: 0 10px 24px rgba(7, 131, 110, .12);
}

.dash-akses-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #d9f2eb;
    color: #078b70;
    font-size: 19px;
}

.dash-akses-teks h4 {
    margin: 0 0 4px;
    color: #064b47;
    font-size: 15px;
    font-weight: 800;
}

.dash-akses-teks p {
    margin: 0;
    color: #6b7e90;
    font-size: 12.5px;
    line-height: 1.5;
}

.dash-akses-panah {
    margin-left: auto;
    color: #087765;
    font-size: 16px;
}

/* ---------- Footer ---------- */

.dash-footer {
    margin-top: auto;
    padding: 28px 0 16px;
    color: #8a9bab;
    font-size: 12px;
    text-align: center;
}

/* =====================================================
   TABEL DASAR (dipakai halaman input)
===================================================== */

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    padding: 4px 6px;
    border: 1px solid #ccc;
    text-align: center;
}

th {
    background: #087b68;
    color: #fff;
}

/* =====================================================
   LAYAR KECIL (HP & TABLET KECIL)
===================================================== */

@media (max-width: 900px) {

    /* Tombol Menu muncul */
    .toggle-btn {
        display: block;
    }

    /* Sidebar tersembunyi, geser masuk saat .show */
    .sidebar {
        left: -280px;
        width: 260px;
    }

    .sidebar.show {
        left: 0;
    }

    .content {
        padding: 56px 12px 20px;
    }

    /* Topbar HP: satu baris tipis
       [tombol Menu] [logo Kemenkes] ........ [tahun] */
    .dash-topbar {
        flex-wrap: nowrap;
        gap: 10px;
        min-height: 60px;
        padding: 6px 12px 6px 104px;
    }

    .dash-topbar-kiri {
        gap: 0;
    }

    .dash-topbar-info {
        display: none;
    }

    .dash-topbar-logo {
        flex-basis: 84px;
        width: 84px;
        height: 48px;
    }

    .pilih-tahun-card {
        min-width: 0;
        gap: 8px;
        padding: 4px 9px;
        border-radius: 10px;
    }

    .pilih-tahun-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 13px;
    }

    .pilih-tahun-info select {
        font-size: 14px;
    }

    .dash-isi {
        padding: 16px 12px 0;
    }

    /* Banner */
    .dash-banner {
        min-height: 0;
        padding: 20px 18px;
    }

    .dash-banner::before {
        width: 100%;
        opacity: .22;
    }

    .dash-banner h1 {
        font-size: 22px;
    }

    .dash-banner p {
        font-size: 13px;
    }

    /* Kartu bertumpuk */
    .dash-statistik,
    .dash-akses {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dash-statistik {
        margin-bottom: 20px;
    }

    .dash-stat {
        padding: 14px 16px;
    }

    .dash-stat-info h2 {
        font-size: 21px;
    }

    .dash-akses-card {
        padding: 16px;
    }
}

/* HP kecil */
@media (max-width: 380px) {

    .dash-topbar {
        padding-left: 98px;
    }

    .dash-topbar-logo {
        flex-basis: 72px;
        width: 72px;
        height: 42px;
    }

    .pilih-tahun-icon {
        display: none;
    }

    .dash-banner h1 {
        font-size: 20px;
    }
}
/* =====================================================
   HP: SAAT SIDEBAR TERBUKA
===================================================== */

@media (max-width: 900px) {

    /* Tombol Menu disembunyikan supaya tidak menutupi sidebar */
    body:has(.sidebar.show) .toggle-btn {
        display: none;
    }

    /* Halaman di belakang digelapkan; ketuk area gelap untuk menutup */
    body:has(.sidebar.show)::after {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 950;
        background: rgba(3, 40, 36, .55);
    }

    /* Halaman tidak ikut bergulir saat sidebar terbuka */
    body:has(.sidebar.show) {
        overflow: hidden;
    }

    /* Bayangan sidebar hanya muncul saat terbuka */
    .sidebar {
        box-shadow: none;
    }

    .sidebar.show {
        box-shadow: 8px 0 30px rgba(0, 0, 0, .35);
    }
}
/* =====================================================
   WARNA LATAR LEMBUT + KARTU TRANSPARAN (GLASS)
===================================================== */

/* Latar halaman: gradasi mint tipis dengan bercak warna halus */
body {
    background:
        radial-gradient(circle at 88% 8%, rgba(7, 141, 117, .16), transparent 38%),
        radial-gradient(circle at 12% 92%, rgba(39, 137, 197, .12), transparent 40%),
        linear-gradient(160deg, #e4f3ee 0%, #edf5f8 50%, #e2f0ec 100%);
    background-attachment: fixed;
}

/* Topbar semi-transparan */
.dash-topbar {
    background: rgba(255, 255, 255, .55);
    border-bottom: 1px solid rgba(7, 131, 110, .12);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* Logo: latar putihnya melebur ke warna topbar */
.dash-topbar-logo {
    mix-blend-mode: multiply;
}

/* Kartu statistik & akses sistem: transparan seperti kaca */
.dash-stat,
.dash-akses-card {
    border: 1px solid rgba(255, 255, 255, .9);
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 8px 24px rgba(7, 100, 85, .08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.dash-akses-card:hover {
    border-color: rgba(7, 131, 110, .35);
    background: rgba(255, 255, 255, .8);
}

/* Kartu pilih tahun */
.pilih-tahun-card {
    border: 1px solid rgba(7, 131, 110, .18);
    background: rgba(255, 255, 255, .6);
}
/* =========================================================
   MENU HP GAYA DROPDOWN (seperti MyIntress)
   Tinggi setengah layar, desain tetap hijau seperti dashboard
   Hanya aktif di layar <= 900px
========================================================= */

.toggle-btn .ikon-tutup {
    display: none;
}

@media (max-width: 900px) {

    /* ---------- Tombol bulat ---------- */
    .toggle-btn {
        top: 8px !important;
        left: 12px !important;
        z-index: 1000 !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        padding: 0 !important;
        border: 2px solid #b9ddd5 !important;
        border-radius: 50% !important;
        background: #e6f4f1 !important;
        color: #07695c !important;
        font-size: 17px;
        box-shadow: 0 4px 12px rgba(7, 100, 85, .18) !important;
    }

    /* Tombol tetap terlihat saat menu terbuka */
    body:has(.sidebar.show) .toggle-btn {
        display: flex !important;
    }

    body:has(.sidebar.show) .toggle-btn .ikon-buka {
        display: none;
    }

    body:has(.sidebar.show) .toggle-btn .ikon-tutup {
        display: inline-block;
    }

    /* Ruang topbar untuk tombol bulat */
    .dash-topbar {
        padding-left: 68px !important;
    }

    /* Latar redup lembut */
    body:has(.sidebar.show)::after {
        background: rgba(3, 40, 36, .28);
    }

    /* ---------- Menu: dropdown setengah layar ---------- */
    .sidebar {
        top: 64px !important;
        left: 12px !important;
        right: 12px;
        z-index: 990 !important;
        width: auto !important;
        height: auto !important;
        max-height: 55vh;
        overflow-y: auto;
        border-radius: 16px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, .28) !important;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .sidebar.show {
        left: 12px !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    /* Footer disembunyikan supaya tidak memanjang */
    .sidebar .sidebar-footer {
        display: none !important;
    }
}
/* =========================================================
   MENU HP: WARNA MINT SAMAR (kaca lembut)
========================================================= */

@media (max-width: 900px) {

    .sidebar {
        border: 1px solid rgba(255, 255, 255, .9);
        background: rgba(236, 248, 244, .88) !important;
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        box-shadow: 0 14px 36px rgba(7, 100, 85, .22) !important;
    }

    /* Brand */
    .sidebar .sidebar-brand {
        border-bottom-color: rgba(7, 131, 110, .15) !important;
    }

    .sidebar .sidebar-brand-teks h2 {
        color: #064b47 !important;
    }

    .sidebar .sidebar-brand-teks small {
        color: #5e8179 !important;
    }

    /* Heading */
    .sidebar .sidebar-heading {
        color: #7a958e !important;
    }

    /* Item menu */
    .sidebar .menu-item {
        background: transparent !important;
        color: #1f4a43 !important;
    }

    .sidebar .menu-item i {
        color: #078d78 !important;
    }

    .sidebar .menu-item:hover {
        background: rgba(255, 255, 255, .7) !important;
    }

    /* Menu aktif: pill hijau */
    .sidebar .menu-item.active {
        background: linear-gradient(135deg, #078d78, #087765) !important;
        color: #fff !important;
        box-shadow: 0 6px 14px rgba(7, 131, 110, .28) !important;
    }

    .sidebar .menu-item.active i {
        color: #fff !important;
    }
}
/* =========================================================
   MENU HP: TANPA LAYAR GELAP, HALAMAN TETAP BISA DI-SCROLL
========================================================= */

@media (max-width: 900px) {

    /* Hilangkan lapisan gelap */
    body:has(.sidebar.show)::after {
        content: none !important;
        display: none !important;
    }

    /* Jangan kunci scroll halaman */
    body:has(.sidebar.show) {
        overflow: auto !important;
    }

    /* Scroll di dalam menu tidak ikut menggeser halaman */
    .sidebar {
        overscroll-behavior: contain;
    }
}
/* =========================================================
   TOPBAR HP: LOGO KIRI | TAHUN | ☰ PALING KANAN
========================================================= */

@media (max-width: 900px) {

    /* Tombol ☰ paling kanan */
    .toggle-btn {
        left: auto !important;
        right: 12px !important;
    }

    /* Sisakan ruang di kanan untuk tombol ☰ */
    .dash-topbar {
        justify-content: space-between !important;
        padding-left: 14px !important;
        padding-right: 64px !important;
        gap: 8px;
    }

    .dash-topbar-kiri {
        flex: 0 0 auto;
        justify-content: flex-start;
        margin: 0;
    }

    /* Kartu Tahun dikecilkan */
    .pilih-tahun-card {
        zoom: .85;
    }
}
/* =========================================================
   SIDEBAR: LOGO DI TENGAH, TULISAN DI BAWAHNYA
========================================================= */

.sidebar .sidebar-brand {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 16px 18px;
    text-align: center;
}

.sidebar .sidebar-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.sidebar .sidebar-brand-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.sidebar .sidebar-brand-teks {
    text-align: center;
}

.sidebar .sidebar-brand-teks h2 {
    margin: 0;
    font-size: 17px;
    letter-spacing: .3px;
}


/* =========================================================
   BANNER: LABEL PENGAWASAN & PENGENDALIAN
========================================================= */

.dash-banner-chip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.dash-banner-chip span {
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #e6f6f1;
    font-size: 12.5px;
    font-weight: 600;
}
/* =========================================================
   ARTI SILAPIN DI BANNER
========================================================= */

.dash-banner-teks .dash-banner-arti {
    margin: 2px 0 10px;
    color: #a6f0d2;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .3px;
}

@media (max-width: 650px) {

    .dash-banner-teks .dash-banner-arti {
        font-size: 13.5px;
    }
}
/* =========================================================
   JUDUL TOPBAR (NAMA BALAI)
========================================================= */

.dash-topbar-info h3 {
    font-size: 16px;
    line-height: 1.3;
    white-space: nowrap;
}
/* =========================================================
   BANNER: PARAGRAF + TOMBOL AKSES
========================================================= */

/* Kunci gaya paragraf banner (tidak renggang) */
.dash-banner-teks p {
    letter-spacing: normal;
    font-weight: 400;
}

.dash-banner-aksi {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 18px 9px 10px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.dash-btn:hover {
    transform: translateY(-2px);
}

/* Lingkaran ikon di dalam tombol */
.dash-btn-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 14px;
}

.dash-btn-panah {
    margin-left: 4px;
    font-size: 12px;
    transition: transform .2s ease;
}

.dash-btn:hover .dash-btn-panah {
    transform: translateX(3px);
}

/* Tombol utama: putih */
.dash-btn-putih {
    background: #fff;
    color: #064b47;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22);
}

.dash-btn-putih .dash-btn-ikon {
    background: linear-gradient(135deg, #078d78, #087765);
    color: #fff;
}

.dash-btn-putih:hover {
    background: #effaf6;
    color: #064b47;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
}

/* Tombol kedua: kaca transparan */
.dash-btn-kaca {
    border-color: rgba(255, 255, 255, .45);
    background: rgba(255, 255, 255, .16);
    color: #fff;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.dash-btn-kaca .dash-btn-ikon {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.dash-btn-kaca:hover {
    background: rgba(255, 255, 255, .26);
    color: #fff;
}

/* HP: tombol memenuhi lebar, tersusun ke bawah */
@media (max-width: 650px) {

    .dash-banner-aksi {
        flex-direction: column;
        gap: 10px;
    }

    .dash-btn {
        justify-content: flex-start;
        width: 100%;
    }

    .dash-btn-panah {
        margin-left: auto;
    }
}
/* =========================================================
   ANIMASI ILUSTRASI LATAR DASHBOARD
   (hanya jalan kalau perangkat tidak meminta "kurangi gerakan")
========================================================= */

@media (prefers-reduced-motion: no-preference) {

    /* Batang naik satu per satu */
    .kota-batang {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        animation: kotaBatangNaik .9s cubic-bezier(.22, .8, .3, 1) both;
        animation-delay: calc(var(--i) * .08s);
    }

    /* Garis tren digambar perlahan */
    .kota-garis {
        stroke-dashoffset: 1;
        animation: kotaGarisGambar 2.2s ease-out .9s forwards;
    }

    /* Titik muncul bergantian mengikuti garis */
    .kota-titik {
        opacity: 0;
        transform-box: fill-box;
        transform-origin: center;
        animation: kotaTitikMuncul .4s ease-out forwards;
        animation-delay: calc(.9s + var(--i) * .17s);
    }

    /* Kapal berlayar pelan bolak-balik */
    .kota-kapal {
        animation: kotaKapalLayar 55s ease-in-out infinite alternate;
    }

    .kota-kapal-goyang {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        animation: kotaKapalGoyang 4.5s ease-in-out infinite;
    }

    /* Perisai dan kaca pembesar melayang */
    .kota-ikon {
        animation: kotaIkonMelayang 5.5s ease-in-out infinite;
        animation-delay: calc(var(--i) * -2.2s);
    }

    /* Gelombang naik-turun tipis */
    .kota-gelombang-1 {
        animation: kotaGelombang 7s ease-in-out infinite alternate;
    }

    .kota-gelombang-2 {
        animation: kotaGelombang 9s ease-in-out infinite alternate-reverse;
    }
}

@keyframes kotaBatangNaik {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes kotaGarisGambar {
    to { stroke-dashoffset: 0; }
}

@keyframes kotaTitikMuncul {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes kotaKapalLayar {
    from { transform: translateX(0); }
    to   { transform: translateX(320px); }
}

@keyframes kotaKapalGoyang {
    0%, 100% { transform: translateY(0) rotate(-1.2deg); }
    50%      { transform: translateY(-2px) rotate(1.2deg); }
}

@keyframes kotaIkonMelayang {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes kotaGelombang {
    from { transform: translateY(0); }
    to   { transform: translateY(-5px); }
}


/* =========================================================
   SIDEBAR: LENGKUNG KUNING TIDAK MENIMPA TULISAN
========================================================= */

.sidebar .sidebar-footer {
    padding: 28px 22px 72px;
}

.sidebar .sidebar-footer::before {
    right: -70px;
    bottom: -52px;
    left: -40px;
    height: 90px;
}
/* =========================================================
   TEMA DASHBOARD SILAPIN (GABUNGAN)
   Ilustrasi di paling bawah + animasi + sidebar rapi
   Letakkan paling bawah file
========================================================= */

/* ---------- ILUSTRASI LATAR (PALING BAWAH) ---------- */

#halaman-dashboard {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
}

.dash-latar-kota {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    display: block;
    width: 100%;
    height: 250px;
    pointer-events: none;
}


/* ---------- SIDEBAR ---------- */

/* Tanpa garis scroll (tetap bisa di-scroll di layar pendek) */
.sidebar {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar .sidebar-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .22);
}

.sidebar .sidebar-brand-logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.sidebar .sidebar-brand-teks h2 {
    font-size: 17px;
    font-weight: 800;
}

/* Item menu sedikit dirapatkan supaya muat di layar laptop */
.sidebar .menu-item {
    padding-top: 9px;
    padding-bottom: 9px;
}

/* Menu aktif: pil putih dengan garis hijau di kanan */
.sidebar .menu-item.active {
    position: relative;
}

.sidebar .menu-item.active::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    width: 4px;
    height: 22px;
    border-radius: 4px;
    background: #1fbf8f;
    transform: translateY(-50%);
}

/* Footer: tulisan + lengkung kuning di bawahnya */
.sidebar .sidebar-footer {
    position: relative;
    padding: 24px 22px 64px;
    overflow: hidden;
    border-top: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-style: italic;
    line-height: 1.4;
}

.sidebar .sidebar-footer::before {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -52px;
    left: -40px;
    height: 90px;
    border-top: 5px solid #f2cf3d;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    opacity: .9;
    transform: rotate(-5deg);
}


/* ---------- TOPBAR ---------- */

.dash-topbar {
    min-height: 78px;
    background:
        radial-gradient(ellipse at 92% -30%, rgba(39, 168, 137, .28), transparent 55%),
        rgba(255, 255, 255, .78) !important;
}

.dash-topbar-logo {
    width: 150px !important;
    height: 62px !important;
    object-fit: cover;
}

.dash-topbar-garis {
    flex-shrink: 0;
    width: 1px;
    height: 40px;
    margin: 0 18px;
    background: rgba(7, 100, 85, .25);
}

.dash-topbar-info h3 {
    font-size: 17px;
    font-weight: 800;
}

.dash-topbar-info p {
    font-size: 14px;
}

.dash-topbar-kanan {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Kolom tahun: pil putih */
.pilih-tahun-card {
    padding: 6px 18px 6px 12px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 6px 18px rgba(7, 100, 85, .12) !important;
}

.pilih-tahun-icon {
    background: transparent !important;
    color: #0b6b57 !important;
    font-size: 20px;
}

.pilih-tahun-info span {
    letter-spacing: 0 !important;
    text-transform: none !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

/* Pil status */
.dash-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(214, 240, 232, .85);
    color: #064b47;
    font-size: 14px;
    font-weight: 700;
}

.dash-status-titik {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}

/* Tombol bulat ikon grafik */
.dash-topbar-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b8a70, #075e53);
    color: #fff;
    font-size: 19px;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(7, 100, 85, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}

.dash-topbar-ikon:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(7, 100, 85, .38);
}


/* ---------- BANNER ---------- */

.dash-banner {
    position: relative;
    min-height: 250px;
    overflow: hidden;
    border-radius: 26px !important;
    background: linear-gradient(110deg, #055c4d 0%, #067a63 55%, #0a9b7a 100%) !important;
    box-shadow: 0 16px 36px rgba(6, 75, 71, .22);
}

.dash-banner::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 62%;
    background: url("assets/background-dashboard.jpg.jpeg") center / cover no-repeat;
    opacity: .95;
    -webkit-mask-image: linear-gradient(100deg, transparent 0%, #000 42%);
    mask-image: linear-gradient(100deg, transparent 0%, #000 42%);
    pointer-events: none;
}

.dash-banner::after {
    content: "";
    position: absolute;
    bottom: -80px;
    left: 30%;
    width: 46%;
    height: 150px;
    border-top: 2px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    pointer-events: none;
}

.dash-banner-teks {
    position: relative;
    z-index: 2;
    max-width: 56%;
}

.dash-banner-teks h1 {
    font-size: clamp(34px, 3.4vw, 52px);
    font-weight: 900;
    letter-spacing: 1px;
}

.dash-banner-teks .dash-banner-arti {
    color: #fff;
    font-size: 19px;
}

.dash-btn {
    border-radius: 999px !important;
    padding: 10px 22px 10px 12px;
}


/* ---------- KARTU STATISTIK ---------- */

.dash-stat {
    position: relative;
    overflow: hidden;
    gap: 20px;
    min-height: 124px;
    padding: 20px 26px;
    border-radius: 22px;
}

.dash-stat > * {
    position: relative;
    z-index: 1;
}

.dash-stat::after {
    content: "";
    position: absolute;
    right: -34px;
    bottom: -46px;
    z-index: 0;
    width: 190px;
    height: 110px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(120, 214, 186, 0), rgba(120, 214, 186, .4));
    transform: rotate(-12deg);
}

.dash-stat-ikon,
.dash-stat-biru,
.dash-stat-hijau {
    width: 72px !important;
    height: 72px !important;
    border-radius: 50% !important;
    background: #bdebdc !important;
    color: #0b6b57 !important;
    font-size: 30px !important;
}

.dash-stat-info p {
    color: #2a4a43;
    font-size: 14.5px;
    font-weight: 500;
}

.dash-stat-info h2 {
    font-size: 32px;
    font-weight: 800;
}

.dash-stat-info small {
    color: #4f6b64;
    font-size: 13.5px;
}


/* ---------- FOOTER HALAMAN ---------- */

.dash-footer {
    padding: 18px 8px;
    color: #2a4a43;
    font-size: 13px;
    text-align: left;
}

.dash-footer-pemisah {
    margin: 0 10px;
    opacity: .5;
}


/* ---------- ANIMASI ILUSTRASI ---------- */
/* Hanya jalan kalau perangkat tidak meminta "kurangi gerakan" */

@media (prefers-reduced-motion: no-preference) {

    .kota-batang {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        animation: kotaBatangNaik .9s cubic-bezier(.22, .8, .3, 1) both;
        animation-delay: calc(var(--i) * .08s);
    }

    .kota-garis {
        stroke-dashoffset: 1;
        animation: kotaGarisGambar 2.2s ease-out .9s forwards;
    }

    .kota-titik {
        opacity: 0;
        transform-box: fill-box;
        transform-origin: center;
        animation: kotaTitikMuncul .4s ease-out forwards;
        animation-delay: calc(.9s + var(--i) * .17s);
    }

    .kota-kapal {
        animation: kotaKapalLayar 55s ease-in-out infinite alternate;
    }

    .kota-kapal-goyang {
        transform-box: fill-box;
        transform-origin: 50% 100%;
        animation: kotaKapalGoyang 4.5s ease-in-out infinite;
    }

    .kota-ikon {
        animation: kotaIkonMelayang 5.5s ease-in-out infinite;
        animation-delay: calc(var(--i) * -2.2s);
    }

    .kota-gelombang-1 {
        animation: kotaGelombang 7s ease-in-out infinite alternate;
    }

    .kota-gelombang-2 {
        animation: kotaGelombang 9s ease-in-out infinite alternate-reverse;
    }
}

@keyframes kotaBatangNaik {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}

@keyframes kotaGarisGambar {
    to { stroke-dashoffset: 0; }
}

@keyframes kotaTitikMuncul {
    from { opacity: 0; transform: scale(0); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes kotaKapalLayar {
    from { transform: translateX(0); }
    to   { transform: translateX(320px); }
}

@keyframes kotaKapalGoyang {
    0%, 100% { transform: translateY(0) rotate(-1.2deg); }
    50%      { transform: translateY(-2px) rotate(1.2deg); }
}

@keyframes kotaIkonMelayang {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

@keyframes kotaGelombang {
    from { transform: translateY(0); }
    to   { transform: translateY(-5px); }
}


/* ---------- HP ---------- */

@media (max-width: 900px) {

    .dash-topbar-garis,
    .dash-status,
    .dash-topbar-ikon {
        display: none;
    }

    .dash-topbar-logo {
        width: 84px !important;
        height: 48px !important;
    }

    .dash-banner {
        min-height: 0;
        border-radius: 20px !important;
    }

    .dash-banner::before {
        width: 100%;
        opacity: .28;
    }

    .dash-banner-teks {
        max-width: none;
    }

    .dash-stat {
        min-height: 0;
        padding: 16px 18px;
    }

    .dash-stat-ikon,
    .dash-stat-biru,
    .dash-stat-hijau {
        width: 58px !important;
        height: 58px !important;
        font-size: 24px !important;
    }

    .dash-stat-info h2 {
        font-size: 26px;
    }

    .dash-latar-kota {
        height: 160px;
    }
}
/* =========================================================
   POPUP PASSWORD (Akses Input Laporan)
========================================================= */

/* Latar belakang redup kehijauan + sedikit buram */
.modal-backdrop {
    --bs-backdrop-bg: #032b27;
}

.modal-backdrop.show {
    opacity: .55;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Animasi muncul */
#modalPassword.fade .modal-dialog {
    transform: translateY(24px) scale(.96);
    transition: transform .3s cubic-bezier(.22, .8, .3, 1);
}

#modalPassword.show .modal-dialog {
    transform: none;
}

/* Kartu popup */
#modalPassword .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 60px rgba(3, 43, 39, .35);
}

/* Header hijau */
#modalPassword .modal-header {
    padding: 18px 22px;
    border-bottom: 0;
    background: linear-gradient(120deg, #064b47 0%, #075e53 55%, #087765 100%);
}

#modalPassword .modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .2px;
}

#modalPassword .btn-close {
    opacity: .9;
    filter: invert(1) grayscale(100%) brightness(200%);
}

#modalPassword .btn-close:hover {
    opacity: 1;
}

/* Isi popup */
#modalPassword .modal-body {
    padding: 26px 26px 8px;
}

/* Ikon gembok bulat di atas isi */
#modalPassword .modal-body::before {
    content: "\f023";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9f2eb, #bdebdc);
    color: #0b6b57;
    font-family: "Font Awesome 6 Free";
    font-size: 26px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(7, 131, 110, .18);
}

#modalPassword .modal-body p {
    margin-bottom: 18px;
    color: #4f6b64;
    font-size: 14px;
    line-height: 1.55;
    text-align: center;
}

#modalPassword .modal-body label {
    margin-bottom: 7px;
    color: #064b47;
    font-size: 13.5px;
    font-weight: 700;
}

/* Kolom password */
#modalPassword .form-control {
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #cfe3de;
    border-radius: 12px;
    background: #f7fbf9;
    color: #24483b;
    font-size: 15px;
}

#modalPassword .form-control::placeholder {
    color: #9bb3ac;
}

#modalPassword .form-control:focus {
    border-color: #1fa88a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(7, 141, 117, .14);
}

/* Password salah (kalau aplikasi memberi kelas ini) */
#modalPassword .form-control.is-invalid {
    border-color: #e5484d;
    box-shadow: 0 0 0 4px rgba(229, 72, 77, .12);
}

/* Footer + tombol */
#modalPassword .modal-footer {
    gap: 10px;
    padding: 16px 26px 24px;
    border-top: 0;
}

#modalPassword .modal-footer .btn {
    min-height: 44px;
    margin: 0;
    padding: 9px 24px;
    border: 0;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#modalPassword .modal-footer .btn:hover {
    transform: translateY(-1px);
}

/* Batal: abu lembut */
#modalPassword .modal-footer .btn-secondary {
    background: #eaf1ee;
    color: #4f6b64;
}

#modalPassword .modal-footer .btn-secondary:hover {
    background: #dbe7e2;
    color: #2f4a43;
}

/* Masuk: hijau gradasi */
#modalPassword .modal-footer .btn-success {
    background: linear-gradient(135deg, #078d78, #087765);
    color: #fff;
    box-shadow: 0 8px 18px rgba(7, 131, 110, .3);
}

#modalPassword .modal-footer .btn-success:hover {
    background: linear-gradient(135deg, #087765, #065f50);
    box-shadow: 0 12px 24px rgba(7, 131, 110, .38);
}

/* HP */
@media (max-width: 576px) {

    #modalPassword .modal-dialog {
        margin: 16px;
    }

    #modalPassword .modal-body {
        padding: 22px 20px 6px;
    }

    #modalPassword .modal-footer {
        padding: 14px 20px 20px;
    }

    #modalPassword .modal-footer .btn {
        flex: 1;
    }
}
/* =========================================================
   TOPBAR HP: HANYA LOGO, DIBESARKAN
========================================================= */

@media (max-width: 900px) {

    .dash-topbar {
        padding-left: 12px !important;
    }

    /* Tulisan nama balai + tanggal disembunyikan di HP */
    .dash-topbar .dash-topbar-info {
        display: none;
    }

    /* Logo besar: ruang putih gambarnya dipotong */
    .dash-topbar-logo {
        width: 140px !important;
        height: 74px !important;
        object-fit: cover;
        transform: scale(1.12);
        transform-origin: left center;
    }
}

/* HP sangat kecil */
@media (max-width: 380px) {

    .dash-topbar-logo {
        width: 118px !important;
        height: 64px !important;
    }
}
/* =========================================================
   BANNER DASHBOARD: PERKECIL JUDUL & SUB JUDUL
========================================================= */

.dash-banner h1 {
    font-size: 38px !important;
    line-height: 1.1 !important;
    letter-spacing: 1px !important;
    margin-bottom: 6px !important;
}

.dash-banner .dash-banner-arti {
    font-size: 15px !important;
    line-height: 1.5 !important;
    margin-bottom: 10px !important;
}

@media (max-width: 900px) {

    .dash-banner h1 {
        font-size: 30px !important;
    }

    .dash-banner .dash-banner-arti {
        font-size: 13.5px !important;
    }
}
/* =========================================================
   TOPBAR: PEMBATAS LENGKUNG GELOMBANG
========================================================= */

.dash-topbar {
    background-image:
        /* titik cahaya */
        radial-gradient(circle 130px at 92% 90%,
            rgba(150, 255, 225, .5),
            transparent 72%),
        /* gelombang hijau tua */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 90' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%230a6a58'/%3E%3Cstop offset='1' stop-color='%23064b47'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M270 0 C190 28 245 62 160 90 L600 90 L600 0 Z' fill='url(%23g)'/%3E%3C/svg%3E"),
        /* gelombang hijau muda (lengkung tipis) */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 90' preserveAspectRatio='none'%3E%3Cpath d='M215 0 C135 28 190 62 105 90 L600 90 L600 0 Z' fill='%2355d8c0' fill-opacity='.85'/%3E%3C/svg%3E"),
        /* dasar putih */
        linear-gradient(100deg, #ffffff 0%, #f1f8f6 100%) !important;
    background-repeat: no-repeat !important;
    background-size: 100% 100%, 50% 100%, 50% 100%, 100% 100% !important;
    background-position: 92% 90%, 100% 0, 100% 0, 0 0 !important;
    border-bottom: 1px solid rgba(7, 100, 85, .12) !important;
    box-shadow: 0 6px 20px rgba(6, 75, 71, .12) !important;
}

/* Tombol grafik: putih supaya tidak hilang di atas hijau tua */
.dash-topbar .dash-topbar-ikon {
    background: #fff !important;
    color: #087765 !important;
    box-shadow:
        0 0 0 3px rgba(150, 255, 225, .35),
        0 6px 16px rgba(0, 0, 0, .25) !important;
}

.dash-topbar .dash-topbar-ikon i {
    color: #087765 !important;
}

/* Gerak halus: lengkung hijau muda bergeser, cahaya berdenyut */
@media (prefers-reduced-motion: no-preference) {

    .dash-topbar {
        animation: topbarGelombang 6s ease-in-out infinite;
    }

    @keyframes topbarGelombang {
        0%, 100% { background-position: 84% 100%, 100% 0, 100% 0, 0 0; }
        50%      { background-position: 98% 70%, 100% 0, 93% 0, 0 0; }
    }
}

/* HP: gelombang lebih lebar supaya tombol tetap di atas hijau */
@media (max-width: 900px) {

    .dash-topbar {
        background-size: 100% 100%, 80% 100%, 80% 100%, 100% 100% !important;
    }
}
/* =========================================================
   POPUP PASSWORD: TOMBOL MATA + PESAN SALAH
========================================================= */

#modalPassword .password-bungkus {
    position: relative;
}

#modalPassword .password-bungkus input {
    padding-right: 48px !important;
}

#modalPassword .tombol-mata {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #5f8a82;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

#modalPassword .tombol-mata:hover {
    background: rgba(7, 141, 117, .12);
    color: #087765;
}

#modalPassword .pesan-password-salah {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 12px;
    border: 1px solid #f5c2c2;
    border-radius: 10px;
    background: #fdecec;
    color: #b42323;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}
/* =========================================================
   LOGO SIDEBAR: TANPA LATAR PUTIH
========================================================= */

.sidebar .sidebar-brand-logo {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.sidebar .sidebar-brand-logo img {
    background: transparent !important;
    /* Cahaya putih tipis supaya lambang gelap tetap terlihat di atas hijau */
    filter:
        drop-shadow(0 0 3px rgba(255, 255, 255, .85))
        drop-shadow(0 0 10px rgba(255, 255, 255, .35));
}
/* =========================================================
   DASHBOARD HP: KARTU STATISTIK DIPERKECIL
========================================================= */

@media (max-width: 900px) {

    .dash-statistik {
        gap: 10px !important;
    }

    .dash-stat {
        gap: 12px !important;
        min-height: 0 !important;
        padding: 10px 14px !important;
        border-radius: 16px !important;
    }

    .dash-stat-ikon {
        flex: 0 0 38px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 16px !important;
    }

    .dash-stat-info p {
        margin: 0 !important;
        font-size: 12.5px !important;
        line-height: 1.3 !important;
    }

    .dash-stat-info h2 {
        margin: 0 !important;
        font-size: 20px !important;
        line-height: 1.2 !important;
    }

    .dash-stat-info small {
        font-size: 11px !important;
        line-height: 1.3 !important;
    }
}
@media (max-width: 900px) {

    .dash-isi {
        padding-bottom: 70px !important;
    }

    .dash-latar-kota {
        height: 160px !important;
    }
}
/* Sidebar bawah: gelombang S seperti header (hanya laptop, HP tidak diubah) */
@media (min-width: 769px) {

    .sidebar {
        background: linear-gradient(180deg, #064d47 0%, #055349 70%, #06614f 100%) !important;
    }
}

/* Gelombang hanya muncul kalau layar cukup tinggi, supaya tidak menimpa menu */
@media (min-width: 769px) and (min-height: 740px) {

    .sidebar {
        background:
            url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 170' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='t' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%2372dfc9'/%3E%3Cstop offset='1' stop-color='%2340c9ac'/%3E%3C/linearGradient%3E%3ClinearGradient id='l' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fbfefd'/%3E%3Cstop offset='1' stop-color='%23e2f5ef'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 62 C85 62 140 88 190 114 S280 146 330 142 V170 H0Z' fill='url(%23t)'/%3E%3Cpath d='M0 82 C80 82 132 108 182 134 S275 166 330 162 V170 H0Z' fill='url(%23l)'/%3E%3C/svg%3E") bottom / 100% 170px no-repeat,
            linear-gradient(180deg, #064d47 0%, #055349 70%, #06614f 100%) !important;
    }
}

/* =========================================================
   LOGIN ADMIN (bagian bawah sidebar) + LABEL ADMIN DI HEADER
========================================================= */

/* Area login admin: menempel di bawah sidebar */
.sidebar .sidebar-admin {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    padding: 18px 6px 16px;
}

/* Tombol: hijau dengan garis putih, terbaca di atas hijau tua maupun gelombang terang */
.sidebar .sidebar-admin-tombol {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 14px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 999px;
    background: linear-gradient(135deg, #0a9b7a, #078d78 55%, #087765);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .22);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sidebar .sidebar-admin-tombol:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .28);
}

/* Tombol keluar: putih, tulisan merah lembut */
.sidebar .sidebar-admin-keluar {
    background: #fff;
    color: #b42323;
    border-color: rgba(255, 255, 255, .92);
}

.sidebar .sidebar-admin-keluar:hover {
    background: #fdf1f1;
    color: #a01c1c;
}

/* Kartu "Masuk sebagai ..." */
.sidebar .sidebar-admin-info {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .16);
}

.sidebar .sidebar-admin-ikon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #078d78, #087765);
    color: #fff;
    font-size: 15px;
}

.sidebar .sidebar-admin-info small {
    display: block;
    color: #5e778c;
    font-size: 11px;
    line-height: 1.2;
}

.sidebar .sidebar-admin-info strong {
    display: block;
    color: #064b47;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

/* Label Admin di header dashboard (menggantikan "Aktif") */
.dash-status.dash-status-admin i {
    color: #078d78;
    font-size: 15px;
}


/* =========================================================
   SIDEBAR BARU (lebih rapi dan cantik)
   - menu berkelompok: MENU UTAMA dan KHUSUS ADMIN
   - tiap menu punya kotak ikon sendiri
   - lambang bercahaya, garis pemisah lembut
   Letakkan paling bawah file
========================================================= */

/* ---------- Brand ---------- */

.sidebar .sidebar-brand {
    position: relative;
    padding: 26px 16px 20px;
    border-bottom: 0;
}

/* Cahaya lembut di belakang lambang */
.sidebar .sidebar-brand::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(114, 223, 201, .38) 0%, rgba(114, 223, 201, 0) 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

/* Garis pemisah yang memudar di kedua ujung */
.sidebar .sidebar-brand::after {
    content: "";
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent);
}

.sidebar .sidebar-brand-logo,
.sidebar .sidebar-brand-teks {
    position: relative;
    z-index: 1;
}

.sidebar .sidebar-brand-teks h2 {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: .4px;
}

.sidebar .sidebar-brand-teks small {
    display: block;
    margin-top: 3px;
    color: #a8e6d6;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* ---------- Judul kelompok ---------- */

.sidebar .sidebar-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 20px 10px 8px;
    color: #8fd9c6;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.sidebar .sidebar-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .22), transparent);
}

/* ---------- Item menu ---------- */

.sidebar .sidebar-menu {
    gap: 6px;
}

.sidebar .menu-item {
    position: relative;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border: 1px solid transparent;
    border-radius: 16px;
    color: #eaf7f3;
    font-size: 14px;
    font-weight: 600;
    transition: background .22s ease, border-color .22s ease,
                transform .22s ease, box-shadow .22s ease;
}

/* Ikon utama di dalam kotak kecil */
.sidebar .menu-item > i:first-child {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(255, 255, 255, .11);
    color: #c9eee4;
    font-size: 15px;
    transition: background .22s ease, color .22s ease, transform .22s ease;
}

.sidebar .menu-item:hover {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .10);
    color: #fff;
    transform: translateX(3px);
}

.sidebar .menu-item:hover > i:first-child {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

/* Menu aktif: pil putih, kotak ikon hijau */
.sidebar .menu-item.active {
    border-color: #fff;
    background: linear-gradient(135deg, #ffffff, #e9f8f3);
    color: #064b47;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .2);
}

.sidebar .menu-item.active > i:first-child {
    background: linear-gradient(135deg, #14b08f, #078d78);
    color: #fff;
    box-shadow: 0 4px 10px rgba(7, 141, 120, .4);
}

.sidebar .menu-item.active::after {
    right: 12px;
    width: 4px;
    height: 20px;
}

/* Ikon gembok: bulatan kecil di kanan */
.sidebar .menu-item .menu-kunci {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-left: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #bfeadf;
    font-size: 10px;
}

/* Gembok terbuka (admin sudah login) */
.sidebar .menu-item .menu-kunci.menu-terbuka {
    background: rgba(31, 191, 143, .28);
    color: #7cf0c8;
}

/* ---------- Judul kelompok admin ---------- */

.sidebar .sidebar-heading-admin {
    margin-top: 22px;
}

/* ---------- Bagian bawah (login admin) ---------- */

.sidebar .sidebar-admin {
    padding-top: 22px;
}

/* ---------- Tampilan HP (kaca mint) ---------- */

@media (max-width: 900px) {

    .sidebar .sidebar-brand::before {
        background: radial-gradient(circle, rgba(7, 141, 120, .18) 0%, rgba(7, 141, 120, 0) 70%);
    }

    .sidebar .sidebar-brand::after {
        background: linear-gradient(90deg, transparent, rgba(7, 131, 110, .25), transparent);
    }

    .sidebar .sidebar-brand-teks small {
        color: #5e8179 !important;
    }

    .sidebar .sidebar-heading {
        color: #7a958e !important;
    }

    .sidebar .sidebar-heading::after {
        background: linear-gradient(90deg, rgba(7, 131, 110, .25), transparent);
    }

    .sidebar .menu-item {
        border-color: transparent;
    }

    .sidebar .menu-item > i:first-child {
        background: rgba(7, 141, 120, .12) !important;
        color: #078d78 !important;
    }

    .sidebar .menu-item:hover {
        border-color: rgba(7, 141, 120, .18);
        transform: none;
    }

    .sidebar .menu-item.active {
        border-color: transparent;
    }

    .sidebar .menu-item.active > i:first-child {
        background: rgba(255, 255, 255, .25) !important;
        color: #fff !important;
        box-shadow: none;
    }

    .sidebar .menu-item.active::after {
        background: rgba(255, 255, 255, .9);
    }

    .sidebar .menu-item .menu-kunci {
        background: rgba(7, 141, 120, .1) !important;
        color: #5e8179 !important;
    }

    .sidebar .menu-item .menu-kunci.menu-terbuka {
        background: rgba(7, 141, 120, .18) !important;
        color: #078d78 !important;
    }

    .sidebar .menu-item.active .menu-kunci {
        background: rgba(255, 255, 255, .22) !important;
        color: #fff !important;
    }
}

/* Layar laptop pendek: sedikit dirapatkan supaya tetap muat */
@media (min-width: 901px) and (max-height: 700px) {

    .sidebar .sidebar-brand {
        padding: 16px 16px 14px;
    }

    .sidebar .sidebar-heading {
        margin-top: 14px;
    }

    .sidebar .menu-item {
        padding-top: 6px;
        padding-bottom: 6px;
    }
}


/* =========================================================
   POPUP SWEETALERT GAYA SILAPIN (Akses Ditolak, dll.)
========================================================= */

.swal2-popup.swal-silapin {
    position: relative;
    width: 400px;
    max-width: 92vw;
    padding: 0 26px 26px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 26px;
    background: linear-gradient(170deg, #ffffff 0%, #effaf6 100%);
    box-shadow: 0 24px 60px rgba(4, 48, 46, .35);
    font-family: inherit;
}

/* Pita hijau di bagian atas dengan gelombang tipis */
.swal-silapin::before {
    content: "";
    display: block;
    justify-self: stretch;
    height: 104px;
    margin: 0 -26px;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0 22 C80 4 150 40 230 24 S350 6 400 20 V40 H0Z' fill='%23effaf6'/%3E%3C/svg%3E") bottom / 100% 26px no-repeat,
        radial-gradient(circle at 85% 20%, rgba(114, 223, 201, .45), rgba(114, 223, 201, 0) 55%),
        linear-gradient(135deg, #064b47 0%, #087765 60%, #14b896 100%);
}

/* Ikon gembok di dalam lingkaran putih, menimpa pita */
.swal-silapin .swal-silapin-ikon {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 86px;
    height: 86px;
    margin: -58px auto 14px;
    border: 5px solid #e3f6ef;
    border-radius: 50%;
    background: #fff;
    color: #087765;
    box-shadow: 0 10px 24px rgba(7, 100, 85, .28);
}

.swal-silapin .swal-silapin-ikon .swal2-icon-content {
    font-size: 34px;
}

.swal-silapin .swal-silapin-judul {
    margin: 0;
    padding: 0;
    color: #064b47;
    font-size: 25px;
    font-weight: 800;
}

.swal-silapin .swal-silapin-isi {
    margin: 10px 0 0;
    padding: 0;
    color: #4f6d66;
    font-size: 15.5px;
    line-height: 1.55;
}

.swal-silapin .swal-silapin-isi b {
    color: #087765;
}

.swal-silapin .swal-silapin-aksi {
    gap: 10px;
    margin: 24px 0 0;
}

.swal-silapin .swal2-styled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 120px;
    margin: 0;
    padding: 11px 22px;
    border: 0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.swal-silapin .swal-silapin-ok {
    background: linear-gradient(135deg, #0a9b7a, #087765);
    color: #fff;
    box-shadow: 0 8px 18px rgba(7, 131, 110, .32);
}

.swal-silapin .swal-silapin-ok:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(7, 131, 110, .4);
}

.swal-silapin .swal-silapin-batal {
    background: #e8f0ed;
    color: #44625b;
}

.swal-silapin .swal-silapin-batal:hover {
    background: #dbe8e3;
}

.swal-silapin .swal2-styled:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(20, 184, 150, .3);
}


/* =========================================================
   BANNER DASHBOARD BARU (gaya: foto pelabuhan dengan lengkung)
   Letakkan paling bawah file
========================================================= */

.dash-banner-slogan {
    margin: 10px 0 0 !important;
    color: #d9f6ed !important;
    font-size: 14.5px !important;
    font-style: italic;
    line-height: 1.5 !important;
}

.dash-btn .dash-btn-panah {
    margin-left: 4px;
    font-size: 13px;
    transition: transform .2s ease;
}

.dash-btn:hover .dash-btn-panah {
    transform: translateX(4px);
}

@media (min-width: 901px) {

    /* Bingkai kaca tipis di luar banner */
    .dash-banner {
        min-height: 272px;
        border-radius: 28px !important;
        background:
            radial-gradient(circle at 12% 0%, rgba(20, 184, 150, .35), rgba(20, 184, 150, 0) 45%),
            linear-gradient(110deg, #044c43 0%, #066b58 55%, #087d67 100%) !important;
        box-shadow:
            0 0 0 6px rgba(255, 255, 255, .6),
            0 18px 40px rgba(6, 75, 71, .25) !important;
    }

    /* Foto: sisi kirinya melengkung seperti ombak */
    .dash-banner::before {
        width: 62%;
        opacity: 1;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M30 0 C8 30 44 58 18 100 L100 100 L100 0Z' fill='%23000'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M30 0 C8 30 44 58 18 100 L100 100 L100 0Z' fill='%23000'/%3E%3C/svg%3E");
        -webkit-mask-size: 100% 100%;
        mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
    }

    /* Garis cahaya dan pita mint mengikuti lengkung foto */
    .dash-banner::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 62%;
        height: auto;
        border: 0;
        border-radius: 0;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%2372dfc9' stop-opacity='0'/%3E%3Cstop offset='1' stop-color='%2372dfc9' stop-opacity='.55'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M20 0 C-2 30 34 58 8 100 L18 100 C44 58 8 30 30 0Z' fill='url(%23b)'/%3E%3Cpath d='M30 0 C8 30 44 58 18 100' fill='none' stroke='%23ffffff' stroke-opacity='.7' stroke-width='2.5' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
        pointer-events: none;
    }

    .dash-banner-teks {
        max-width: 52%;
    }

    .dash-banner h1 {
        font-size: 44px !important;
        letter-spacing: 1.5px !important;
        text-shadow: 0 2px 10px rgba(0, 0, 0, .18);
    }

    .dash-banner .dash-banner-arti {
        max-width: 470px;
        color: #fff !important;
        font-size: 18px !important;
        font-weight: 800;
        line-height: 1.4 !important;
    }

    .dash-banner-aksi {
        margin-top: 18px;
    }
}


/* HP: dua tombol banner sebelahan (Input kiri, Laporan kanan) */
@media (max-width: 650px) {

    .dash-banner-aksi {
        flex-direction: row !important;
        flex-wrap: nowrap;
        gap: 8px !important;
    }

    .dash-banner-aksi .dash-btn {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        justify-content: center;
        gap: 7px;
        padding: 8px 10px 8px 8px;
        font-size: 12.5px;
        line-height: 1.2;
        text-align: left;
    }

    .dash-banner-aksi .dash-btn-ikon {
        flex: 0 0 auto;
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .dash-banner-aksi .dash-btn-panah {
        display: none;
    }
}