/* =========================================================================
   SI-HARBANG — Tema Tampilan
   Sistem Informasi Pelaporan Kerusakan · SMA Taruna Nusantara
   -------------------------------------------------------------------------
   Konsep  : "Bata & Biru Nusantara"
             Palet diambil dari logo sekolah (biru, kuning emas, merah) dan
             dari fasad gedung bata merah di bawah langit biru.
   Catatan : File ini HANYA mengatur tampilan. Tidak ada logika/alur yang
             diubah. Dimuat setelah Bootstrap 5.3 sehingga menimpa gayanya.
   ========================================================================= */

/* ---------- 1. Token desain ------------------------------------------------ */
:root {
    --si-navy-950: #061a36;
    --si-navy-900: #08203f;
    --si-navy: #0d3b73;
    --si-blue: #1a5fa8;
    --si-blue-500: #2f7fd0;
    --si-sky: #eaf2fb;
    --si-sky-2: #f4f8fd;

    --si-gold: #f0b429;
    --si-gold-600: #d99a0b;
    --si-gold-soft: #fff6dc;
    --si-brick: #b5472f;
    --si-brick-soft: #fbece8;

    --si-bg: #f3f6fb;
    --si-surface: #ffffff;
    --si-ink: #14233b;
    --si-ink-2: #3b4a63;
    --si-muted: #64748b;
    --si-line: #e3e9f2;
    --si-line-2: #d3dcea;

    --si-radius: 1rem;
    --si-radius-sm: .7rem;
    --si-shadow-sm: 0 1px 2px rgba(8, 32, 63, .04), 0 4px 14px rgba(8, 32, 63, .05);
    --si-shadow: 0 2px 4px rgba(8, 32, 63, .04), 0 14px 34px rgba(8, 32, 63, .09);
    --si-shadow-lg: 0 30px 80px rgba(8, 32, 63, .28);

    --si-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --si-display: 'Fraunces', 'Playfair Display', Georgia, 'Times New Roman', serif;

    --si-sidebar-w: 268px;

    /* Menimpa variabel Bootstrap agar seluruh komponen ikut berubah */
    --bs-body-font-family: var(--si-font);
    --bs-body-color: var(--si-ink);
    --bs-body-color-rgb: 20, 35, 59;
    --bs-border-color: var(--si-line);
    --bs-secondary-color: var(--si-muted);
    --bs-emphasis-color: var(--si-ink);
    --bs-link-color: var(--si-blue);
    --bs-link-color-rgb: 26, 95, 168;
    --bs-link-hover-color: var(--si-navy);
    --bs-link-hover-color-rgb: 13, 59, 115;
    --bs-border-radius: .7rem;
    --bs-border-radius-sm: .5rem;
    --bs-border-radius-lg: 1rem;
    --bs-box-shadow-sm: var(--si-shadow-sm);

    --bs-primary: #1a5fa8;   --bs-primary-rgb: 26, 95, 168;
    --bs-secondary: #64748b; --bs-secondary-rgb: 100, 116, 139;
    --bs-success: #1f9d6b;   --bs-success-rgb: 31, 157, 107;
    --bs-info: #1ea7c5;      --bs-info-rgb: 30, 167, 197;
    --bs-warning: #f0a30a;   --bs-warning-rgb: 240, 163, 10;
    --bs-danger: #d6303b;    --bs-danger-rgb: 214, 48, 59;
    --bs-dark: #1e293b;      --bs-dark-rgb: 30, 41, 59;

    --bs-primary-bg-subtle: #e4eefa;   --bs-primary-text-emphasis: #0f3a6b;   --bs-primary-border-subtle: #b9d3ef;
    --bs-secondary-bg-subtle: #eef1f6; --bs-secondary-text-emphasis: #475569; --bs-secondary-border-subtle: #d5dce8;
    --bs-success-bg-subtle: #dff5ea;   --bs-success-text-emphasis: #0e6b47;   --bs-success-border-subtle: #b6e5d0;
    --bs-info-bg-subtle: #def3f8;      --bs-info-text-emphasis: #0b6a80;      --bs-info-border-subtle: #b3e2ee;
    --bs-warning-bg-subtle: #fff3d6;   --bs-warning-text-emphasis: #8a5a00;   --bs-warning-border-subtle: #f8dc9b;
    --bs-danger-bg-subtle: #fde6e8;    --bs-danger-text-emphasis: #9c1f29;    --bs-danger-border-subtle: #f6bfc4;
    --bs-dark-bg-subtle: #e2e8f0;      --bs-dark-text-emphasis: #1e293b;      --bs-dark-border-subtle: #c3cddc;
}

/* ---------- 2. Dasar ------------------------------------------------------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--si-font);
    font-size: .94rem;
    color: var(--si-ink);
    background-color: var(--si-bg);
    background-image:
        radial-gradient(900px 420px at 100% -80px, rgba(240, 180, 41, .10), transparent 70%),
        radial-gradient(800px 480px at -10% 0, rgba(26, 95, 168, .08), transparent 70%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(240, 180, 41, .35); }

h1, h2, h3, h4, h5, h6 { color: var(--si-navy); }

a { text-underline-offset: .18em; }

.text-secondary { color: var(--si-muted) !important; }
.text-dark { color: var(--si-ink) !important; }

hr { border-color: var(--si-line-2); opacity: .7; }

code {
    color: var(--si-brick);
    background: var(--si-brick-soft);
    padding: .12rem .4rem;
    border-radius: .4rem;
    font-size: .85em;
}

/* Scrollbar halus */
* { scrollbar-width: thin; scrollbar-color: rgba(13, 59, 115, .25) transparent; }

/* ---------- 3. Sidebar ----------------------------------------------------- */
.si-sidebar {
    position: fixed; top: 0; left: 0; z-index: 1030;
    transition: margin-left .2s;
    width: var(--si-sidebar-w);
    height: 100vh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(185deg, #0c3367 0%, #0a2a55 52%, #071d3b 100%);
    box-shadow: 8px 0 30px rgba(6, 26, 54, .18);
    overflow: hidden;
    isolation: isolate;
}
.si-sidebar::before {            /* pola lengkung bata, sangat halus */
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background-image: url('../images/ornamen/pola-lengkung-putih.svg');
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.si-sidebar::after {             /* aksen emas di tepi kanan */
    content: "";
    position: absolute; top: 0; bottom: 0; right: 0; width: 3px; z-index: 1;
    background: linear-gradient(180deg, var(--si-gold), rgba(240, 180, 41, 0) 55%, var(--si-brick) 100%);
    opacity: .85;
}

.si-sidebar .brand {
    flex-shrink: 0;
    color: #fff;
    padding: 1.15rem 1.2rem 1.05rem;
    display: flex; align-items: center; gap: .8rem;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent);
}
.si-sidebar .brand img {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: #fff; padding: 2px;
    object-fit: contain; flex-shrink: 0;
    box-shadow: 0 0 0 2px var(--si-gold), 0 0 0 6px rgba(240, 180, 41, .22), 0 6px 16px rgba(0, 0, 0, .35);
}
.si-sidebar .brand-text {
    font-family: var(--si-display);
    font-weight: 700; font-size: 1.12rem; letter-spacing: .06em; line-height: 1.1;
}
.si-sidebar .brand-text small {
    display: block; margin-top: .3rem;
    font-family: var(--si-font);
    font-weight: 500 !important; font-size: .62rem !important;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--si-gold); opacity: 1 !important;
}
.si-sidebar .brand { position: relative; }
.si-sidebar .brand-text { white-space: nowrap; }
.si-sidebar .btn-close-sidebar {
    display: none; position: absolute; top: .7rem; right: .8rem;
    background: rgba(255, 255, 255, .08); border: none; border-radius: .6rem;
    color: rgba(255, 255, 255, .8); font-size: 1rem; line-height: 1; padding: .4rem .5rem;
}
.si-sidebar .btn-close-sidebar:hover { color: #fff; background: rgba(255, 255, 255, .16); }

.si-sidebar > .nav {
    flex: 1 1 auto; min-height: 0;
    overflow-y: auto; overflow-x: hidden;
    padding: .7rem 0 1rem !important;
    flex-wrap: nowrap;
    scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
.si-sidebar .nav-link {
    position: relative;
    color: rgba(255, 255, 255, .72);
    padding: .62rem .95rem;
    margin: .1rem .8rem;
    font-size: .9rem; font-weight: 500;
    border-radius: .8rem;
    transition: background .18s, color .18s, transform .18s;
}
.si-sidebar .nav-link .bi {
    display: inline-block; width: 1.35rem; text-align: center;
    font-size: 1.02rem; opacity: .85;
    transition: color .18s, opacity .18s;
}
.si-sidebar .nav-link:hover { color: #fff; background: rgba(255, 255, 255, .08); transform: translateX(2px); }
.si-sidebar .nav-link:hover .bi { opacity: 1; }
.si-sidebar .nav-link.active {
    color: #fff; font-weight: 600;
    background: linear-gradient(90deg, rgba(240, 180, 41, .22), rgba(255, 255, 255, .07));
    border-radius: .8rem;
    box-shadow: inset 0 0 0 1px rgba(240, 180, 41, .22);
}
.si-sidebar .nav-link.active::before {
    content: ""; position: absolute; left: -.8rem; top: 22%; bottom: 22%; width: 4px;
    border-radius: 0 4px 4px 0; background: var(--si-gold);
}
.si-sidebar .nav-link.active .bi { color: var(--si-gold); opacity: 1; }
.si-sidebar .nav-link.disabled { color: rgba(255, 255, 255, .32); }
.si-sidebar .nav-header {
    display: flex; align-items: center; gap: .6rem;
    color: rgba(255, 255, 255, .45);
    font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .14em;
    padding: 1.15rem 1.55rem .35rem;
}
.si-sidebar .nav-header::after {
    content: ""; flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .16), transparent);
}

.si-sidebar-foot {
    flex-shrink: 0;
    position: relative;
    padding: 1rem 1.2rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .09);
    background: linear-gradient(0deg, rgba(0, 0, 0, .22), transparent);
    overflow: hidden;
}
.si-sidebar-foot img {
    position: absolute; right: -26px; bottom: -6px; width: 210px;
    opacity: .5; pointer-events: none;
}
.si-sidebar-foot .motto {
    position: relative;
    font-size: .64rem; letter-spacing: .16em; text-transform: uppercase;
    color: rgba(255, 255, 255, .55); line-height: 1.7;
}
.si-sidebar-foot .motto b { color: var(--si-gold); font-weight: 700; }

/* ---------- 4. Konten & topbar -------------------------------------------- */
.si-content {
    margin-left: var(--si-sidebar-w);
    min-height: 100vh;
    display: flex; flex-direction: column;
}
.si-content > main { flex: 1 0 auto; width: 100%; max-width: 1520px; margin-inline: auto; }

.si-topbar {
    background: rgba(255, 255, 255, .8) !important;
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
            backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--si-line) !important;
    padding: .65rem 1.4rem !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
}
.si-topbar .btn-light {
    background: #fff; border: 1px solid var(--si-line); color: var(--si-ink-2);
    border-radius: .8rem; box-shadow: var(--si-shadow-sm);
}
.si-topbar .btn-light:hover { background: var(--si-sky-2); border-color: var(--si-line-2); color: var(--si-navy); }
.si-date {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 600; color: var(--si-ink-2);
    background: var(--si-sky-2); border: 1px solid var(--si-line);
    padding: .38rem .8rem; border-radius: 999px;
}
.si-date .bi { color: var(--si-brick); }
.si-role-chip {
    font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    color: var(--si-navy); background: var(--si-gold-soft);
    border: 1px solid rgba(240, 180, 41, .45);
    padding: .3rem .7rem; border-radius: 999px;
}
.si-userbtn { padding: .3rem .75rem .3rem .35rem !important; }
.si-userbtn::after { margin-left: .2rem; opacity: .5; }
.si-avatar {
    width: 32px; height: 32px; flex-shrink: 0;
    display: inline-grid; place-items: center;
    font-weight: 700; font-size: .85rem; color: #fff;
    background: linear-gradient(140deg, var(--si-blue), var(--si-navy));
    border-radius: 50%;
    box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--si-gold);
}
.si-userbtn .si-name { font-weight: 600; font-size: .86rem; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.si-footer {
    flex-shrink: 0;
    text-align: center; color: var(--si-muted); font-size: .75rem;
    padding: 1.4rem 1rem 1.6rem;
}
.si-footer img { display: block; margin: 0 auto .6rem; opacity: .9; }
.si-footer b { color: var(--si-navy); }

@media (max-width: 991.98px) {
    .si-sidebar { margin-left: calc(var(--si-sidebar-w) * -1 - 20px); }
    .si-sidebar.show { margin-left: 0; }
    .si-sidebar.show .btn-close-sidebar { display: inline-block; }
    .si-content { margin-left: 0; }
    .si-backdrop {
        display: none; position: fixed; inset: 0; z-index: 1025;
        background: rgba(6, 26, 54, .55);
        -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
    }
    .si-backdrop.show { display: block; }
    .si-topbar { padding: .55rem .9rem !important; }
}

/* ---------- 5. Judul halaman & breadcrumb --------------------------------- */
main h4.fw-semibold {
    font-family: var(--si-display);
    font-weight: 700 !important;
    font-size: 1.6rem;
    letter-spacing: -.012em;
    color: var(--si-navy);
}
main h4.fw-semibold::after {
    content: ""; display: block; width: 46px; height: 3px; margin-top: .5rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--si-gold) 0 60%, var(--si-brick) 60% 100%);
}
main h4.fw-semibold + p.small { margin-top: .5rem; }

.breadcrumb {
    --bs-breadcrumb-divider: '\203A';
    --bs-breadcrumb-divider-color: var(--si-line-2);
    --bs-breadcrumb-item-active-color: var(--si-muted);
    font-weight: 500;
}
.breadcrumb a { color: var(--si-blue); }
.breadcrumb a:hover { color: var(--si-navy); }
.breadcrumb .bi { margin-right: .3rem; color: var(--si-brick); }

/* ---------- 6. Hero dashboard --------------------------------------------- */
.si-hero {
    position: relative; isolation: isolate; overflow: hidden;
    border-radius: 1.35rem;
    padding: 1.9rem 2rem 1.8rem;
    margin-bottom: 1.5rem;
    color: #fff;
    background:
        radial-gradient(520px 260px at 92% -10%, rgba(240, 180, 41, .30), transparent 70%),
        radial-gradient(420px 260px at 0% 120%, rgba(181, 71, 47, .38), transparent 70%),
        linear-gradient(120deg, #08203f 0%, #0d3b73 48%, #1a5fa8 100%);
    box-shadow: 0 18px 44px rgba(13, 59, 115, .28);
}
.si-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: url('../images/ornamen/pola-lengkung-putih.svg');
    background-size: 64px 64px; opacity: .9;
    -webkit-mask-image: linear-gradient(100deg, #000 0%, transparent 62%);
            mask-image: linear-gradient(100deg, #000 0%, transparent 62%);
}
.si-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
    background: linear-gradient(90deg, var(--si-gold) 0 34%, #fff 34% 36%, var(--si-brick) 36% 70%, transparent 70%);
    opacity: .9;
}
.si-hero-body { position: relative; max-width: 640px; }
.si-hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
    color: var(--si-gold);
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(240, 180, 41, .35);
    padding: .3rem .75rem; border-radius: 999px; margin-bottom: .9rem;
}
.si-hero-title {
    font-family: var(--si-display); font-weight: 700;
    font-size: clamp(1.55rem, 2.4vw, 2.1rem); letter-spacing: -.015em; line-height: 1.15;
    color: #fff; margin: 0 0 .5rem;
}
.si-hero-sub { margin: 0; color: rgba(255, 255, 255, .78); font-size: .95rem; max-width: 52ch; }
.si-hero-art {
    position: absolute; right: -10px; bottom: 0; z-index: -1;
    height: 118%; max-height: 310px; width: auto; pointer-events: none;
    opacity: .95;
}
.si-hero-art--perkakas { right: 14px; top: 50%; bottom: auto; transform: translateY(-50%); height: 128%; max-height: 330px; opacity: .85; }
@media (max-width: 767.98px) {
    .si-hero { padding: 1.4rem 1.25rem 1.35rem; border-radius: 1.1rem; }
    .si-hero-art { opacity: .35; right: -60px; }
    .si-hero-art--perkakas { right: -70px; opacity: .3; }
}

/* ---------- 7. Kartu statistik -------------------------------------------- */
.si-stat {
    --accent: var(--si-blue); --accent-soft: #e4eefa;
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 1rem;
    padding: 1.1rem 1.2rem 1.1rem 1.35rem;
    background: var(--si-surface);
    border: 1px solid var(--si-line);
    border-radius: var(--si-radius);
    box-shadow: var(--si-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.si-stat::before {
    content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent);
}
.si-stat::after {
    content: ""; position: absolute; right: -30px; top: -34px;
    width: 110px; height: 110px; border-radius: 50%;
    background: var(--accent-soft); opacity: .75;
    transition: transform .3s ease;
}
a:hover > .si-stat, .si-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--si-shadow);
    border-color: var(--si-line-2);
}
a:hover > .si-stat::after { transform: scale(1.18); }
.si-stat-icon {
    position: relative; z-index: 1; flex-shrink: 0;
    width: 50px; height: 50px; border-radius: .95rem;
    display: grid; place-items: center;
    font-size: 1.35rem; color: var(--accent); background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}
.si-stat-body { position: relative; z-index: 1; min-width: 0; }
.si-stat-value {
    font-family: var(--si-display); font-weight: 700;
    font-size: 1.85rem; line-height: 1; color: var(--si-ink); letter-spacing: -.02em;
}
.si-stat-label { margin-top: .4rem; font-size: .8rem; font-weight: 500; color: var(--si-muted); line-height: 1.3; }
.si-stat--primary   { --accent: #1a5fa8; --accent-soft: #e4eefa; }
.si-stat--secondary { --accent: #64748b; --accent-soft: #eef1f6; }
.si-stat--success   { --accent: #1f9d6b; --accent-soft: #dff5ea; }
.si-stat--info      { --accent: #1ea7c5; --accent-soft: #def3f8; }
.si-stat--warning   { --accent: #e09100; --accent-soft: #fff3d6; }
.si-stat--danger    { --accent: #d6303b; --accent-soft: #fde6e8; }
.si-stat--dark      { --accent: #1e293b; --accent-soft: #e2e8f0; }

/* Judul kartu dengan ikon (grafik, dll.) */
.si-card-title { display: inline-flex; align-items: center; gap: .6rem; }
.si-card-title .bi {
    width: 30px; height: 30px; display: inline-grid; place-items: center;
    border-radius: .65rem; font-size: .95rem;
    color: var(--si-blue); background: var(--si-sky);
}

/* ---------- 8. Kartu ------------------------------------------------------- */
.card {
    --bs-card-border-color: var(--si-line);
    --bs-card-border-radius: var(--si-radius);
    --bs-card-inner-border-radius: calc(var(--si-radius) - 1px);
    --bs-card-cap-bg: transparent;
    border-radius: var(--si-radius);
}
.card.border-0 { border: 1px solid var(--si-line) !important; }
.card.shadow-sm { box-shadow: var(--si-shadow-sm) !important; }
.card.border-danger { border: 1px solid rgba(214, 48, 59, .35) !important; }

.card > .card-header {
    padding: .95rem 1.25rem;
    border-bottom: 1px solid var(--si-line);
    font-weight: 700 !important;
    color: var(--si-navy);
    font-size: .95rem;
    letter-spacing: .005em;
}
.card > .card-header.bg-white { background: linear-gradient(180deg, #fcfdff, #fff) !important; }
.card > .card-header.bg-danger { border-bottom-color: rgba(214, 48, 59, .2); }
.card-body { padding: 1.2rem 1.25rem; }
.card-body.p-0 { padding: 0 !important; }

/* ---------- 9. Tombol ------------------------------------------------------ */
.btn {
    --bs-btn-border-radius: .72rem;
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.05rem;
    --bs-btn-padding-y: .5rem;
    letter-spacing: .005em;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn-sm { --bs-btn-padding-y: .38rem; --bs-btn-padding-x: .8rem; --bs-btn-border-radius: .62rem; --bs-btn-font-size: .82rem; }
.btn:active { transform: translateY(1px); }

.btn-primary {
    --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff;
    --bs-btn-bg: #1a5fa8; --bs-btn-border-color: #17559a;
    --bs-btn-hover-bg: #0f4a8c; --bs-btn-hover-border-color: #0d3b73;
    --bs-btn-active-bg: #0d3b73; --bs-btn-active-border-color: #0a2f5c;
    --bs-btn-focus-shadow-rgb: 26, 95, 168;
    --bs-btn-disabled-bg: #1a5fa8; --bs-btn-disabled-border-color: #1a5fa8;
    background-image: linear-gradient(180deg, #2a72c1, #1a5fa8);
    box-shadow: 0 6px 16px rgba(26, 95, 168, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.btn-primary:hover { background-image: linear-gradient(180deg, #1c63ad, #0f4a8c); box-shadow: 0 8px 20px rgba(26, 95, 168, .36), inset 0 1px 0 rgba(255, 255, 255, .15); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-success {
    --bs-btn-bg: #1f9d6b; --bs-btn-border-color: #1c8f61;
    --bs-btn-hover-bg: #17855a; --bs-btn-hover-border-color: #147650;
    --bs-btn-active-bg: #147650; --bs-btn-active-border-color: #116443;
    background-image: linear-gradient(180deg, #27ad79, #1f9d6b);
    box-shadow: 0 6px 16px rgba(31, 157, 107, .26);
}
.btn-danger {
    --bs-btn-bg: #d6303b; --bs-btn-border-color: #c42a35;
    --bs-btn-hover-bg: #b8242e; --bs-btn-hover-border-color: #a81f29;
    --bs-btn-active-bg: #a81f29; --bs-btn-active-border-color: #961b24;
    background-image: linear-gradient(180deg, #e0414c, #d6303b);
    box-shadow: 0 6px 16px rgba(214, 48, 59, .26);
}
.btn-primary, .btn-success, .btn-danger { background-repeat: no-repeat; }

.btn-light {
    --bs-btn-bg: #fff; --bs-btn-border-color: var(--si-line-2); --bs-btn-color: var(--si-ink-2);
    --bs-btn-hover-bg: var(--si-sky-2); --bs-btn-hover-border-color: var(--si-line-2); --bs-btn-hover-color: var(--si-navy);
    --bs-btn-active-bg: var(--si-sky); --bs-btn-active-border-color: var(--si-line-2); --bs-btn-active-color: var(--si-navy);
    background-image: none;
}
.btn-link { color: var(--si-blue); font-weight: 600; text-decoration: none; }
.btn-link:hover { color: var(--si-navy); text-decoration: underline; }

.btn-outline-primary   { --bs-btn-color: #1a5fa8; --bs-btn-border-color: #b9d3ef; --bs-btn-hover-bg: #1a5fa8; --bs-btn-hover-border-color: #1a5fa8; --bs-btn-active-bg: #0f4a8c; --bs-btn-active-border-color: #0f4a8c; --bs-btn-bg: #fff; }
.btn-outline-secondary { --bs-btn-color: #475569; --bs-btn-border-color: #cfd8e5; --bs-btn-hover-bg: #475569; --bs-btn-hover-border-color: #475569; --bs-btn-active-bg: #334155; --bs-btn-active-border-color: #334155; --bs-btn-bg: #fff; }
.btn-outline-success   { --bs-btn-color: #167a53; --bs-btn-border-color: #b6e5d0; --bs-btn-hover-bg: #1f9d6b; --bs-btn-hover-border-color: #1f9d6b; --bs-btn-active-bg: #17855a; --bs-btn-active-border-color: #17855a; --bs-btn-bg: #fff; }
.btn-outline-danger    { --bs-btn-color: #c42a35; --bs-btn-border-color: #f6bfc4; --bs-btn-hover-bg: #d6303b; --bs-btn-hover-border-color: #d6303b; --bs-btn-active-bg: #b8242e; --bs-btn-active-border-color: #b8242e; --bs-btn-bg: #fff; }
.btn-outline-primary:hover, .btn-outline-secondary:hover, .btn-outline-success:hover, .btn-outline-danger:hover { transform: translateY(-1px); box-shadow: var(--si-shadow-sm); }

.btn-close:focus { box-shadow: 0 0 0 .2rem rgba(26, 95, 168, .2); }
.btn:focus-visible { box-shadow: 0 0 0 .25rem rgba(26, 95, 168, .22) !important; }

/* ---------- 10. Formulir --------------------------------------------------- */
.form-label { color: var(--si-ink-2); margin-bottom: .4rem; }
.form-label.small { font-size: .8rem !important; letter-spacing: .01em; }

.form-control, .form-select {
    --bs-border-color: var(--si-line-2);
    border-radius: .72rem;
    padding: .56rem .85rem;
    background-color: #fff;
    color: var(--si-ink);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
.form-control-sm, .form-select-sm { border-radius: .6rem; padding: .38rem .7rem; font-size: .85rem; }
.form-control::placeholder { color: #9aa8bd; }
.form-control:hover, .form-select:hover { border-color: #b8c6dc; }
.form-control:focus, .form-select:focus {
    border-color: var(--si-blue-500);
    box-shadow: 0 0 0 .24rem rgba(26, 95, 168, .15);
    background-color: #fff;
}
.form-control:disabled, .form-select:disabled { background: #f1f5fa; }
.form-control::file-selector-button {
    background: var(--si-sky); color: var(--si-navy); font-weight: 600;
    border: 0; border-right: 1px solid var(--si-line-2); border-radius: 0;
    margin: -.56rem .85rem -.56rem -.85rem; padding: .56rem .95rem;
}
.form-control:hover:not(:disabled):not([readonly])::file-selector-button { background: #dbe9f8; }
.form-text { color: var(--si-muted); font-size: .76rem; }

.input-group-text { background: var(--si-sky-2); border-color: var(--si-line-2); color: var(--si-blue); }
.input-group:focus-within .input-group-text { border-color: var(--si-blue-500); color: var(--si-navy); background: var(--si-sky); }
.input-group > .form-control:focus { position: relative; z-index: 3; }

.form-check-input { border-color: #b8c6dc; }
.form-check-input:checked { background-color: var(--si-blue); border-color: var(--si-blue); }
.form-check-input:focus { border-color: var(--si-blue-500); box-shadow: 0 0 0 .24rem rgba(26, 95, 168, .15); }
.form-switch .form-check-input { width: 2.3em; height: 1.2em; }
.form-switch .form-check-input:checked { background-color: var(--si-blue); }

.is-invalid, .form-control.is-invalid, .form-select.is-invalid { border-color: var(--bs-danger) !important; }
.invalid-feedback { font-weight: 500; }

/* Langkah bernomor pada form laporan */
.si-step {
    display: inline-grid; place-items: center;
    width: 28px; height: 28px; margin-right: .6rem;
    border-radius: 50%; font-size: .8rem; font-weight: 700;
    color: #fff; background: linear-gradient(140deg, var(--si-blue), var(--si-navy));
    box-shadow: 0 0 0 3px rgba(240, 180, 41, .35);
}

/* ---------- 11. Tabel & DataTables ---------------------------------------- */
.table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(26, 95, 168, .045);
    --bs-table-striped-bg: rgba(26, 95, 168, .025);
    --bs-table-border-color: var(--si-line);
    color: var(--si-ink);
    margin-bottom: 0;
}
.table > :not(caption) > * > * { padding: .85rem 1rem; }
.table thead.table-light, .table > thead.table-light > tr > th {
    --bs-table-bg: #f1f6fc; --bs-table-color: #3b4a63; --bs-table-border-color: var(--si-line);
}
.table thead th {
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: #4a5b78; white-space: nowrap;
    border-bottom: 2px solid #dbe6f4 !important;
}
.table tbody td { font-size: .88rem; border-color: var(--si-line); }
.table-hover > tbody > tr { transition: background .15s; }
.table-hover > tbody > tr[role="button"]:hover { background: rgba(240, 180, 41, .08); }
.table td.fw-medium { color: var(--si-navy); }

.card-body > .dataTables_wrapper { margin: 0; }
div.dataTables_wrapper > .row:first-child { margin-bottom: .9rem; row-gap: .6rem; }
div.dataTables_wrapper > .row:last-child { margin-top: 1rem; row-gap: .6rem; align-items: center; }
div.dataTables_wrapper div.dataTables_length label,
div.dataTables_wrapper div.dataTables_filter label { font-size: .82rem; font-weight: 600; color: var(--si-ink-2); display: inline-flex; align-items: center; gap: .5rem; }
div.dataTables_wrapper div.dataTables_length select { width: auto; display: inline-block; border-radius: .6rem; padding: .35rem 2rem .35rem .7rem; }
div.dataTables_wrapper div.dataTables_filter input {
    width: 240px; max-width: 100%; margin-left: 0 !important;
    border-radius: 999px; padding: .45rem 1rem .45rem 2.4rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.6'/%3E%3Cpath d='M10.5 10.5L14 14'/%3E%3C/svg%3E") no-repeat .85rem center;
}
div.dataTables_wrapper div.dataTables_info { font-size: .8rem; color: var(--si-muted); padding-top: 0; }
div.dataTables_wrapper div.dataTables_processing {
    border: 1px solid var(--si-line); border-radius: .9rem; box-shadow: var(--si-shadow);
    background: #fff; color: var(--si-navy); font-weight: 600; font-size: .85rem;
    padding: .9rem 1.2rem; z-index: 10;
}
table.dataTable { border-collapse: collapse !important; }
table.dataTable > thead > tr > th.sorting::before, table.dataTable > thead > tr > th.sorting::after,
table.dataTable > thead > tr > th.sorting_asc::before, table.dataTable > thead > tr > th.sorting_asc::after,
table.dataTable > thead > tr > th.sorting_desc::before, table.dataTable > thead > tr > th.sorting_desc::after { color: var(--si-blue); }
table.dataTable > thead > tr > th.sorting_asc::before, table.dataTable > thead > tr > th.sorting_desc::after { opacity: 1; }
table.dataTable.dtr-inline.collapsed > tbody > tr > td.dtr-control::before,
table.dataTable.dtr-inline.collapsed > tbody > tr > th.dtr-control::before {
    background-color: var(--si-blue) !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--si-blue); border: 0 !important;
}
table.dataTable.dtr-inline.collapsed > tbody > tr.parent > td.dtr-control::before { background-color: var(--si-brick) !important; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--si-brick); }
table.dataTable > tbody > tr.child ul.dtr-details { width: 100%; }
table.dataTable > tbody > tr.child span.dtr-title { color: var(--si-navy); font-weight: 700; font-size: .78rem; }
div.dataTables_wrapper div.dataTables_scrollBody, .table-responsive { border-radius: 0 0 var(--si-radius) var(--si-radius); }

/* Paginasi */
.pagination {
    --bs-pagination-border-radius: .65rem;
    --bs-pagination-color: var(--si-ink-2);
    --bs-pagination-bg: #fff;
    --bs-pagination-border-color: var(--si-line);
    --bs-pagination-hover-color: var(--si-navy);
    --bs-pagination-hover-bg: var(--si-sky);
    --bs-pagination-hover-border-color: var(--si-line-2);
    --bs-pagination-focus-color: var(--si-navy);
    --bs-pagination-focus-bg: var(--si-sky);
    --bs-pagination-focus-box-shadow: 0 0 0 .22rem rgba(26, 95, 168, .15);
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--si-navy);
    --bs-pagination-active-border-color: var(--si-navy);
    --bs-pagination-disabled-color: #a9b6c9;
    --bs-pagination-disabled-bg: #f6f8fc;
    --bs-pagination-disabled-border-color: var(--si-line);
    gap: .3rem; font-weight: 600; font-size: .84rem;
}
.pagination .page-link { border-radius: .65rem !important; margin: 0 !important; min-width: 2.1rem; text-align: center; }
.pagination .page-item.active .page-link { box-shadow: 0 6px 14px rgba(13, 59, 115, .28); }
div.dataTables_wrapper div.dataTables_paginate { margin: 0; }

/* ---------- 12. Badge ------------------------------------------------------ */
.badge {
    font-weight: 700; letter-spacing: .01em; font-size: .72rem;
    padding: .42em .8em; border-radius: 999px;
}
.badge-status { font-weight: 700; }
.badge[class*="text-bg-"] {
    --b: var(--bs-secondary-rgb);
    --bt: 71, 85, 105;
    display: inline-flex; align-items: center; gap: .42rem;
    color: rgb(var(--bt)) !important;
    background-color: rgba(var(--b), .13) !important;
    box-shadow: inset 0 0 0 1px rgba(var(--b), .22);
}
.badge[class*="text-bg-"]::before {
    content: ""; width: .44rem; height: .44rem; border-radius: 50%; flex-shrink: 0;
    background: rgb(var(--b));
}
.badge.text-bg-primary   { --b: 26, 95, 168;  --bt: 15, 74, 140; }
.badge.text-bg-secondary { --b: 100, 116, 139; --bt: 71, 85, 105; }
.badge.text-bg-success   { --b: 31, 157, 107; --bt: 14, 107, 71; }
.badge.text-bg-info      { --b: 30, 167, 197; --bt: 11, 106, 128; }
.badge.text-bg-warning   { --b: 240, 163, 10; --bt: 138, 90, 0; }
.badge.text-bg-danger    { --b: 214, 48, 59;  --bt: 156, 31, 41; }
.badge.text-bg-dark      { --b: 30, 41, 59;   --bt: 30, 41, 59; }
.badge.text-bg-light     { --b: 100, 116, 139; --bt: 71, 85, 105; }
.badge.bg-light.text-secondary.border { border: 1px solid var(--si-line) !important; background: var(--si-sky-2) !important; }

/* ---------- 13. Alert ------------------------------------------------------ */
.alert {
    --bs-alert-border-radius: .9rem;
    border-width: 0 0 0 4px; border-style: solid;
    border-radius: .9rem; padding: .95rem 1.1rem;
    box-shadow: var(--si-shadow-sm);
}
.alert-success   { border-color: #1f9d6b; }
.alert-danger    { border-color: #d6303b; }
.alert-warning   { border-color: #f0a30a; }
.alert-info      { border-color: #1ea7c5; }
.alert-primary   { border-color: #1a5fa8; }
.alert-secondary { border-color: #64748b; }
.alert-dark      { border-color: #1e293b; }

/* ---------- 14. Dropdown, modal, toast ------------------------------------ */
.dropdown-menu {
    --bs-dropdown-border-color: var(--si-line);
    --bs-dropdown-border-radius: 1rem;
    --bs-dropdown-padding-x: .4rem; --bs-dropdown-padding-y: .4rem;
    --bs-dropdown-link-active-bg: var(--si-navy);
    --bs-dropdown-link-hover-bg: var(--si-sky);
    --bs-dropdown-link-hover-color: var(--si-navy);
    box-shadow: var(--si-shadow);
    font-size: .88rem;
    animation: si-pop .16s ease-out;
}
.dropdown-menu .dropdown-item { border-radius: .6rem; padding: .5rem .75rem; font-weight: 500; }
.dropdown-menu .dropdown-item.text-danger:hover { background: #fde6e8; }
.dropdown-menu.p-0 { padding: 0 !important; overflow: hidden; }
.dropdown-menu.p-0 .dropdown-item { border-radius: 0; padding: .65rem 1rem; }
.dropdown-menu.p-0 .dropdown-item + .dropdown-item { border-top: 1px solid var(--si-line); }
@keyframes si-pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.si-bell-head {
    display: flex; align-items: center; gap: .5rem;
    padding: .8rem 1rem; font-weight: 700; font-size: .85rem; color: #fff;
    background: linear-gradient(120deg, var(--si-navy), var(--si-blue));
}
.si-bell-head .bi { color: var(--si-gold); }
.si-bell-item .si-bell-ico {
    width: 32px; height: 32px; border-radius: .7rem; flex-shrink: 0;
    display: inline-grid; place-items: center; font-size: .95rem;
    background: var(--si-sky); color: var(--si-blue);
}
.si-bell-item .si-bell-ico.is-danger { background: #fde6e8; color: #d6303b; }
.si-bell-item .si-bell-ico.is-ok { background: #dff5ea; color: #1f9d6b; }
.si-bell-item .si-bell-ico.is-muted { background: #eef1f6; color: #64748b; }
.si-bell-dot { animation: si-ping 2.2s ease-in-out infinite; }
@keyframes si-ping { 0%, 100% { box-shadow: 0 0 0 0 rgba(214, 48, 59, .5); } 50% { box-shadow: 0 0 0 5px rgba(214, 48, 59, 0); } }

.modal {
    --bs-modal-border-radius: 1.2rem;
    --bs-modal-inner-border-radius: 1.2rem;
}
.modal-backdrop { --bs-backdrop-bg: #061a36; --bs-backdrop-opacity: .6; }
.modal-content { border: 0; border-radius: 1.2rem; box-shadow: var(--si-shadow-lg); overflow: hidden; }
.modal-content:not(.bg-dark)::before {
    content: ""; display: block; height: 4px;
    background: linear-gradient(90deg, var(--si-gold) 0 34%, #fff 34% 36%, var(--si-brick) 36% 70%, var(--si-blue) 70%);
}
.modal-content:not(.bg-dark) .modal-header {
    border-bottom: 1px solid var(--si-line); padding: 1.05rem 1.4rem;
    background: linear-gradient(180deg, #f8fbff, #fff);
}
.modal-title { font-family: var(--si-display); font-weight: 700; color: var(--si-navy); font-size: 1.15rem; }
.modal-body { padding: 1.3rem 1.4rem; }
.modal-content:not(.bg-dark) .modal-footer { border-top: 1px solid var(--si-line); background: #fafcff; padding: .9rem 1.4rem; gap: .5rem; }
.modal-footer.border-0 { background: transparent !important; border-top: 0 !important; }

.toast-container { padding: 1.25rem !important; }
.si-toast {
    --accent: #1f9d6b; --accent-soft: #dff5ea;
    min-width: 290px; max-width: 380px;
    background: #fff !important; color: var(--si-ink) !important;
    border: 1px solid var(--si-line) !important; border-left: 5px solid var(--accent) !important;
    border-radius: 1rem !important; box-shadow: var(--si-shadow) !important;
}
.si-toast.si-toast--danger { --accent: #d6303b; --accent-soft: #fde6e8; }
.si-toast .toast-body { display: flex; align-items: center; gap: .75rem; font-weight: 600; font-size: .88rem; padding: .85rem 1rem; }
.si-toast .si-toast-ico {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
    display: inline-grid; place-items: center; font-size: 1rem;
    color: var(--accent); background: var(--accent-soft);
}

/* ---------- 15. Komponen kecil -------------------------------------------- */
.si-empty { text-align: center; padding: 2.6rem 1rem 2.4rem; color: var(--si-muted); }
.si-empty img { width: 190px; max-width: 70%; height: auto; }
.si-empty-icon {
    position: relative; width: 84px; height: 84px; margin: 0 auto;
    display: grid; place-items: center; font-size: 2rem; color: var(--si-blue);
    background: var(--si-sky); border-radius: 50%;
}
.si-empty-icon::before {
    content: ""; position: absolute; inset: -9px; border-radius: 50%;
    border: 1.6px dashed rgba(26, 95, 168, .25);
}
.si-empty-icon::after {
    content: ""; position: absolute; top: 4px; right: 2px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--si-gold); box-shadow: 0 0 0 3px #fff;
}
.si-empty-title { margin: 1.1rem 0 0; font-weight: 700; color: var(--si-navy); font-size: .98rem; }
.si-empty-desc { margin: .3rem auto 0; font-size: .82rem; max-width: 36ch; }
.si-empty-title.is-first { margin-top: .4rem; }

.si-sep { display: block; margin: .9rem auto 0; width: 150px; height: auto; opacity: .95; }

/* Garis waktu penanganan */
.si-timeline { position: relative; padding-left: 0; }
.si-timeline > li { position: relative; padding-left: 1.5rem; }
.si-timeline > li::before {
    content: ""; position: absolute; left: 4.5px; top: 14px; bottom: -4px; width: 2px;
    background: linear-gradient(180deg, var(--si-line-2), var(--si-line));
}
.si-timeline > li:last-child::before { display: none; }
.si-timeline .si-dot {
    position: absolute; left: 0; top: 4px; width: 11px; height: 11px; border-radius: 50%;
    background: var(--si-blue); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(26, 95, 168, .35);
}
.si-timeline > li:first-child .si-dot { background: var(--si-gold); box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px rgba(240, 180, 41, .55); }

/* Kartu info pada detail laporan */
.si-info-label {
    display: flex; align-items: center; gap: .4rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--si-muted); margin-bottom: .2rem;
}
.si-info-label .bi { color: var(--si-brick); font-size: .85rem; }
.si-nomor {
    font-family: var(--si-display); font-weight: 700; font-size: 1.35rem; color: var(--si-navy); letter-spacing: -.01em;
}
.si-report-head {
    position: relative; overflow: hidden;
    margin: -1.2rem -1.25rem 1.2rem; padding: 1.15rem 1.25rem;
    background: linear-gradient(120deg, #f4f8fd, #fff 60%);
    border-bottom: 1px solid var(--si-line);
}
.si-report-head::after {
    content: ""; position: absolute; right: -14px; top: -18px; width: 110px; height: 110px;
    background: url('../images/ornamen/pola-lengkung-navy.svg'); background-size: 48px; opacity: .9;
    -webkit-mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
            mask-image: radial-gradient(circle at 70% 30%, #000, transparent 70%);
}
.si-avatar-sm {
    width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%;
    display: inline-grid; place-items: center; font-weight: 700; font-size: .82rem;
    color: var(--si-navy); background: var(--si-gold-soft); box-shadow: inset 0 0 0 1.5px rgba(240, 180, 41, .55);
}
.si-qr {
    display: inline-block; padding: .7rem; background: #fff;
    border: 1px solid var(--si-line); border-radius: 1rem; box-shadow: var(--si-shadow-sm);
    position: relative;
}
.si-qr::before, .si-qr::after {
    content: ""; position: absolute; width: 18px; height: 18px; border: 3px solid var(--si-gold);
}
.si-qr::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; border-radius: 1rem 0 0 0; }
.si-qr::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; border-radius: 0 0 1rem 0; }
.si-qr svg { display: block; }

.si-photo-grid a, .si-photo-grid video { transition: transform .2s ease, box-shadow .2s ease; display: inline-block; }
.si-photo-grid a:hover { transform: translateY(-3px) scale(1.02); }
.si-photo-grid img, .si-photo-grid video { box-shadow: var(--si-shadow-sm); }

/* Pratinjau foto di form lapor */
#fotoPreview img, #fotoPreview video { box-shadow: var(--si-shadow-sm); border-color: var(--si-line) !important; }

/* Kotak konfirmasi hapus */
#modalKonfirmasiHapus .modal-body .rounded-circle { box-shadow: 0 0 0 8px rgba(214, 48, 59, .06); }

/* ---------- 16. Halaman masuk (guest) ------------------------------------- */
.si-auth { background: #fff; background-image: none; display: block; min-height: 100vh; }
.si-auth-shell { display: flex; min-height: 100vh; }

.si-auth-hero {
    position: relative; isolation: isolate; overflow: hidden;
    flex: 1 1 54%; display: none; color: #fff;
    padding: 2.6rem 3.2rem;
    flex-direction: column; justify-content: space-between;
    background:
        linear-gradient(165deg, rgba(8, 32, 63, .60) 0%, rgba(13, 59, 115, .80) 48%, rgba(6, 26, 54, .96) 100%),
        var(--si-photo, none) center 72% / cover no-repeat,
        #0d3b73;
}
.si-auth-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: url('../images/ornamen/pola-lengkung-putih.svg'); background-size: 64px 64px; opacity: .8;
    -webkit-mask-image: linear-gradient(160deg, #000, transparent 55%);
            mask-image: linear-gradient(160deg, #000, transparent 55%);
}
.si-auth-hero::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
    background: linear-gradient(90deg, var(--si-gold) 0 34%, #fff 34% 36%, var(--si-brick) 36% 70%, var(--si-blue) 70%);
}
.si-auth-brand { display: flex; align-items: center; gap: 1rem; }
.si-auth-brand img {
    width: 74px; height: 74px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain;
    box-shadow: 0 0 0 3px var(--si-gold), 0 0 0 9px rgba(240, 180, 41, .22), 0 12px 30px rgba(0, 0, 0, .4);
}
.si-auth-brand .t1 { font-family: var(--si-display); font-weight: 700; font-size: 1.55rem; letter-spacing: .07em; line-height: 1; }
.si-auth-brand .t2 { margin-top: .4rem; font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--si-gold); }
.si-auth-copy { max-width: 520px; margin: 2rem 0; }
.si-auth-copy .kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--si-gold);
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(240, 180, 41, .35);
    padding: .32rem .8rem; border-radius: 999px;
}
.si-auth-copy h2 {
    font-family: var(--si-display); font-weight: 700; color: #fff;
    font-size: clamp(2rem, 3.2vw, 2.9rem); line-height: 1.1; letter-spacing: -.02em; margin: 1.1rem 0 .9rem;
}
.si-auth-copy h2 em { font-style: italic; font-weight: 600; color: var(--si-gold); }
.si-auth-copy p { color: rgba(255, 255, 255, .8); font-size: 1rem; line-height: 1.65; margin: 0; }
.si-auth-points { list-style: none; padding: 0; margin: 1.7rem 0 0; display: grid; gap: .8rem; }
.si-auth-points li { display: flex; align-items: center; gap: .85rem; font-weight: 500; font-size: .92rem; color: rgba(255, 255, 255, .92); }
.si-auth-points .ico {
    width: 38px; height: 38px; border-radius: .85rem; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.05rem; color: var(--si-gold);
    background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .14);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.si-auth-foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.si-auth-motto { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); line-height: 2; }
.si-auth-motto b { color: var(--si-gold); font-weight: 700; }
.si-auth-art { width: 250px; max-width: 42%; opacity: .75; margin-bottom: -4px; }

.si-auth-main {
    position: relative; isolation: isolate;
    flex: 1 1 46%; min-width: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 2rem 1.25rem;
    background:
        radial-gradient(600px 380px at 100% 0, rgba(240, 180, 41, .12), transparent 70%),
        radial-gradient(520px 380px at 0 100%, rgba(26, 95, 168, .09), transparent 70%),
        var(--si-bg);
}
.si-auth-main::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background-image: url('../images/ornamen/pola-lengkung-navy.svg'); background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(200deg, #000, transparent 55%);
            mask-image: linear-gradient(200deg, #000, transparent 55%);
}
.si-auth-card {
    width: 100%; max-width: 440px;
    background: #fff; border: 1px solid var(--si-line); border-radius: 1.5rem;
    padding: 2.4rem 2.2rem 2.1rem;
    box-shadow: var(--si-shadow-lg);
    position: relative;
}
.si-auth-card::before {
    content: ""; position: absolute; left: 2.2rem; right: 2.2rem; top: 0; height: 4px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--si-gold) 0 34%, var(--si-brick) 34% 68%, var(--si-blue) 68%);
}
.si-auth-mobile { text-align: center; margin-bottom: 1.5rem; }
.si-auth-mobile img { width: 76px; height: 76px; border-radius: 50%; background: #fff; padding: 3px; object-fit: contain; box-shadow: 0 0 0 2px var(--si-gold), 0 0 0 6px rgba(240, 180, 41, .2), var(--si-shadow); }
.si-auth-mobile .t1 { margin-top: .8rem; font-family: var(--si-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; color: var(--si-navy); line-height: 1; }
.si-auth-mobile .t2 { margin-top: .35rem; font-size: .78rem; color: var(--si-muted); line-height: 1.5; }
.si-auth-title { font-family: var(--si-display); font-weight: 700 !important; font-size: 1.5rem; color: var(--si-navy); letter-spacing: -.015em; margin: 0 0 .35rem; }
.si-auth-sub { font-size: .86rem; color: var(--si-muted); margin: 0 0 1.6rem; }
.si-auth-card .btn-primary.w-100 { padding: .72rem 1rem; font-size: .95rem; border-radius: .85rem; }
.si-auth-copyright { margin-top: 1.4rem; text-align: center; font-size: .74rem; color: var(--si-muted); }
.si-auth-copyright b { color: var(--si-navy); }

@media (min-width: 992px) {
    .si-auth-hero { display: flex; }
    .si-auth-mobile { display: none; }
}
@media (max-width: 991.98px) {
    .si-auth-shell { background:
        linear-gradient(180deg, #08203f 0, #0d3b73 250px, var(--si-bg) 250px); }
    .si-auth-main { background: transparent; justify-content: flex-start; padding-top: 1.8rem; }
    .si-auth-main::before { display: none; }
    .si-auth-mobile .t1, .si-auth-mobile .t2 { color: #fff; }
    .si-auth-mobile .t2 { color: rgba(255, 255, 255, .75); }
    .si-auth-copyright { color: var(--si-muted); }
}
@media (max-width: 575.98px) {
    .si-auth-card { padding: 2rem 1.35rem 1.7rem; border-radius: 1.25rem; }
    .si-auth-card::before { left: 1.35rem; right: 1.35rem; }
}

/* Kartu kontak pada halaman lupa kata sandi */
.si-contact {
    position: relative; overflow: hidden;
    border: 1px solid var(--si-line); border-radius: 1.1rem; padding: 1.1rem;
    background: linear-gradient(135deg, var(--si-sky-2), #fff);
}
.si-contact .si-contact-ico {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.3rem; color: #fff;
    background: linear-gradient(140deg, var(--si-blue), var(--si-navy));
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(240, 180, 41, .6);
}

/* ---------- 17. Gerak & aksesibilitas ------------------------------------- */
@keyframes si-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.si-content > main > * { animation: si-rise .45s ease both; }
.si-content > main > *:nth-child(2) { animation-delay: .05s; }
.si-content > main > *:nth-child(3) { animation-delay: .1s; }
.si-content > main > *:nth-child(4) { animation-delay: .15s; }
.si-auth-card { animation: si-rise .5s ease both; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Cetak: sembunyikan hiasan navigasi */
@media print {
    .si-sidebar, .si-topbar, .si-footer, .si-backdrop { display: none !important; }
    .si-content { margin-left: 0 !important; }
    body { background: #fff !important; }
}

/* Gelembung komentar */
.si-bubble {
    display: inline-block; margin-top: .25rem; padding: .55rem .9rem;
    background: var(--si-sky-2); border: 1px solid var(--si-line);
    border-radius: .25rem 1rem 1rem 1rem; font-size: .9rem; color: var(--si-ink);
    word-break: break-word;
}

/* Badge solid (lonceng notifikasi): pastikan teks putih terbaca */
.badge.bg-secondary, .badge.bg-danger { color: #fff !important; }

/* Kartu statistik lebih ringkas di layar kecil */
@media (max-width: 575.98px) {
    .si-stat { gap: .7rem; padding: .9rem .8rem .9rem 1rem; }
    .si-stat-icon { width: 40px; height: 40px; font-size: 1.1rem; border-radius: .75rem; }
    .si-stat-value { font-size: 1.5rem; }
    .si-stat-label { font-size: .72rem; overflow-wrap: anywhere; }
    .si-stat::after { width: 80px; height: 80px; right: -26px; top: -30px; }
}

/* Angka ringkasan sederhana (mis. halaman Pengaturan Sistem) */
.card-body > .fs-4.fw-semibold, .card-body > .fs-5.fw-semibold { font-family: var(--si-display); color: var(--si-navy); letter-spacing: -.01em; }
