/* =============================================================================
   SITALUS — style.css
   Gaya tampilan seluruh aplikasi (halaman login, sidebar, tabel, modal, animasi).
   Catatan: gaya khusus tiap elemen yang masih berupa atribut style="..." berada di index.html.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background diset via JS */
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    box-sizing: border-box;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    z-index: -1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    70% {
        transform: scale(0.9);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes shimmerMove {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes floatText {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glowPulseBlue {
    0%,
    100% {
        box-shadow: 0 8px 32px rgba(0, 20, 137, 0.4), 0 0 30px rgba(0, 71, 187, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 12px 40px rgba(0, 20, 137, 0.6), 0 0 50px rgba(0, 71, 187, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes glowPulseOrange {
    0%,
    100% {
        box-shadow: 0 8px 32px rgba(194, 65, 12, 0.4), 0 0 30px rgba(249, 115, 22, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 12px 40px rgba(194, 65, 12, 0.6), 0 0 50px rgba(249, 115, 22, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes glowPulseGreen {
    0%,
    100% {
        box-shadow: 0 8px 32px rgba(0, 71, 187, 0.4), 0 0 30px rgba(203, 160, 82, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 12px 40px rgba(0, 71, 187, 0.6), 0 0 50px rgba(203, 160, 82, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
}

@keyframes lightSweep {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hidden {
    display: none !important;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 71, 187, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-hover {
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 20, 137, 0.28), 0 4px 10px rgba(0, 0, 0, 0.12);
    filter: brightness(1.06);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 20, 137, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #0047BB 0%, #001489 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 71, 187, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 71, 187, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #ffffff 0%, #EAF2FB 100%);
    color: #001489;
    border: 2px solid #9CC3E8;
}

.btn-success:hover {
    background: linear-gradient(135deg, #EAF2FB 0%, #D6E7F7 100%);
    transform: translateY(-2px);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #001489;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #9CC3E8;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #001489;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #0047BB;
    box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.1);
}

.text-center {
    text-align: center;
}

.text-white {
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-6 {
    margin-bottom: 2rem;
}

.mb-8 {
    margin-bottom: 2.5rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.rounded-xl {
    border-radius: 12px;
}

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.back-btn {
    background: rgba(203, 160, 82, 0.1);
    color: #001489;
    border: 1px solid rgba(203, 160, 82, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(203, 160, 82, 0.2);
    transform: translateX(-3px);
}

.letter-content {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: 'TeX Gyre Bonum', serif;
    line-height: 1.2;
    color: #000;
    margin-bottom: 2rem;
    width: 210mm;
    height: 297mm;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-size: 15px;
    box-sizing: border-box;
    text-align: justify;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #4CAF50;
}

.notification.error {
    background: #f44336;
}

.notification.info {
    background: #2196F3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.flex {
    display: flex;
}

.justify-center {
    justify-content: center;
}

.gap-4 {
    gap: 1rem;
}

.flex-wrap {
    flex-wrap: wrap;
}

.mr-2 {
    margin-right: 0.5rem;
}

.mr-3 {
    margin-right: 0.75rem;
}

.text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-6xl {
    font-size: 3.75rem;
    line-height: 1;
}

.font-bold {
    font-weight: 700;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

/* ── Autocomplete Search Dosen ── */
.dist-search-wrapper {
    position: relative;
}

.dist-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: 2px solid #0047BB;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2310b981' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.099zm-5.242 1.156a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.dist-search-input:focus {
    border-color: #0047BB;
    box-shadow: 0 0 0 3px rgba(0,71,187,0.15);
}

.dist-autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #0047BB;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    display: none;
}

.dist-autocomplete-list.show {
    display: block;
}

.dist-autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    font-size: 0.88rem;
    border-bottom: 1px solid #EAF2FB;
    transition: background 0.15s;
}

.dist-autocomplete-item:hover,
.dist-autocomplete-item.active {
    background: #EAF2FB;
    color: #001489;
    font-weight: 600;
}

.dist-autocomplete-item mark {
    background: #ECD898;
    color: #001489;
    border-radius: 2px;
    padding: 0 2px;
    font-weight: 700;
    font-style: normal;
}

.dist-autocomplete-empty {
    padding: 12px 14px;
    color: #9ca3af;
    font-size: 0.85rem;
    font-style: italic;
}

/* Searchable select — Semester & Tanggal */
.dist-sel-wrap {
    position: relative;
}

.dist-sel-input {
    width: 100%;
    padding: 9px 32px 9px 12px;
    border: 2px solid #9CC3E8;
    border-radius: 8px;
    font-size: 0.88rem;
    outline: none;
    background: white;
    cursor: pointer;
    box-sizing: border-box;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2310b981' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    transition: border-color .2s;
}

.dist-sel-input:focus,
.dist-sel-input.open {
    border-color: #0047BB;
    box-shadow: 0 0 0 3px rgba(0,71,187,.12);
}

.dist-sel-input[readonly] {
    cursor: pointer;
}

.dist-sel-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #0047BB;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    display: none;
}

.dist-sel-dropdown.show {
    display: block;
}

.dist-sel-search {
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #9CC3E8;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
    background: #EAF2FB;
    border-radius: 6px 6px 0 0;
}

.dist-sel-opt {
    padding: 9px 12px;
    cursor: pointer;
    font-size: 0.86rem;
    border-bottom: 1px solid #EAF2FB;
    transition: background .12s;
}

.dist-sel-opt:hover,
.dist-sel-opt.active {
    background: #EAF2FB;
    color: #001489;
    font-weight: 600;
}

.dist-sel-opt mark {
    background: #ECD898;
    border-radius: 2px;
    padding: 0 2px;
    font-weight:700;
    font-style:normal;
}

.dist-sel-empty {
    padding:10px 12px;
    color:#9ca3af;
    font-size:.83rem;
    font-style:italic;
}

/* ── LOGIN PAGE ── */
#loginPage {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: linear-gradient(rgba(0,20,137,0.55), rgba(0,20,137,0.55)), url('https://fdllbkpjvffivwxjscro.supabase.co/storage/v1/object/public/dokumen/sampul.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

#loginPage.hidden {
    display: none;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 400px;
    margin: 1rem;
    box-shadow: 0 24px 64px rgba(0,0,0,0.3);
}

.login-input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.login-input:focus {
    border-color: #0047BB;
}

.login-btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0047BB, #001489);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}

.login-btn:hover {
    opacity: 0.9;
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── USER BADGE (sidebar) ── */
#userBadge {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 10px 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(212,175,55,0.25);
}

#userBadge.show {
    display: flex;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.35);
}

/* ══════════════════════════════════════════════
  SIDEBAR — Admin, elegan & modern
  ══════════════════════════════════════════════ */
:root {
    --sb-width: 278px;
    --sb-gold: #001489;
}

body.has-sidebar {
    min-height: 100vh;
}

.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sb-width);
    background: white;
    box-shadow: 4px 0 30px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    z-index: 900;
    transition: transform 0.3s ease;
    border-right: 1px solid rgba(212,175,55,0.15);
}

.app-sidebar,
.app-sidebar * {
    font-weight: 700 !important;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    border-bottom: 1px solid rgba(2, 62, 138,0.20);
    cursor: pointer;
}

.sidebar-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.sidebar-brand-text {
    line-height: 1.25;
}

.sidebar-brand-text .t1 {
    color: #CBA052;
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.2px;
}

.sidebar-brand-text .t2 {
    color: var(--sb-gold);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px 10px;
}

.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(212,175,55,0.3);
    border-radius: 10px;
}

.nav-section-label {
    color: rgba(33, 37, 41);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 14px 12px 6px;
}

.nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    color: #CBA052;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.18s, color 0.18s;
}

.nav-group-toggle:hover {
    background: rgba(212,175,55,0.12);
    color: #001489;
}

.nav-group-toggle i.ico {
    width: 18px;
    text-align: center;
    font-size: 0.95rem;
}

.nav-group-toggle i.chev {
    margin-left: auto;
    font-size: 0.72rem;
    transition: transform 0.25s;
    opacity: 0.7;
}

.nav-group.open > .nav-group-toggle i.chev {
    transform: rotate(180deg);
}

.nav-group-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.28s ease;
    padding-left: 10px;
    border-left: 1px solid rgba(203,160,82);
    margin-left: 20px;
}

.nav-group.open > .nav-group-items {
    max-height: 800px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin: 2px 0;
    border-radius: 9px;
    color: rgba(33, 37, 41);
    font-size: 0.84rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
    text-decoration: none;
    white-space: nowrap;
}

.nav-item i {
    width: 15px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.85;
}

.nav-item:hover {
    background: rgba(2, 62, 138,0.18);
    color: #00B4D8;
    box-shadow: 0 4px 14px rgba(0, 180, 216,0.18);
    transform: translateX(2px);
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(0, 180, 216,0.30), rgba(0, 180, 216,0.18));
    color: #0096C7;
    box-shadow: #ADE8F4;
}

.nav-subgroup-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin: 2px 0;
    border-radius: 9px;
    cursor: pointer;
    color: rgba(33, 37, 41);
    font-size: 0.84rem;
    font-weight: 500;
}

.nav-subgroup-toggle:hover {
    background: rgba(2, 62, 138,0.18);
    color: #00B4D8;
}

.nav-subgroup-toggle i.chev {
    margin-left: auto;
    font-size: 0.68rem;
    transition: transform 0.25s;
    opacity: 0.7;
}

.nav-subgroup.open > .nav-subgroup-toggle i.chev {
    transform: rotate(180deg);
}

.nav-subgroup-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    padding-left: 8px;
    margin-left: 12px;
    border-left: 1px dashed rgba(255,255,255,0.12);
}

.nav-subgroup.open > .nav-subgroup-items {
    max-height: 1200px;
}

.nav-badge {
    margin-left: auto;
    background: #EF4444;
    color: #fff;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1;
    padding: 3px 7px;
    min-width: 18px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(239,68,68,0.45);
}

.nav-badge + i.chev {
    margin-left: 8px;
}

/* ── Menu Tugas Akhir: bertingkat 3 level, ukuran font & indentasi diperkecil per level agar teks muat ── */
.nav-subgroup[data-subgroup="tugas-akhir"] > .nav-subgroup-toggle {
    font-size: 0.84rem;
}

.nav-subgroup[data-subgroup="tugas-akhir"] > .nav-subgroup-items {
    margin-left: 8px;
    padding-left: 6px;
}

.nav-subgroup[data-subgroup="tugas-akhir"] .nav-subgroup-items .nav-subgroup-items {
    margin-left: 6px;
    padding-left: 6px;
}

.nav-subgroup[data-subgroup="tugas-akhir"] .nav-item,
.nav-subgroup[data-subgroup="tugas-akhir"] .nav-subgroup-toggle {
    font-size: 0.8rem;
    gap: 8px;
    padding: 8px 10px;
    white-space: normal;
    line-height: 1.25;
}

.nav-subgroup[data-subgroup="tugas-akhir"] > .nav-subgroup-toggle {
    font-size: 0.84rem;
}

.nav-subgroup[data-subgroup="berita-acara"] .nav-item,
.nav-subgroup[data-subgroup="berita-acara"] .nav-subgroup-toggle,
.nav-subgroup[data-subgroup="surat-tugas-penguji"] .nav-item,
.nav-subgroup[data-subgroup="surat-tugas-penguji"] .nav-subgroup-toggle {
    font-size: 0.78rem;
}

.nav-subgroup[data-subgroup="tugas-akhir"] .nav-item i,
.nav-subgroup[data-subgroup="tugas-akhir"] .nav-subgroup-toggle > i:first-child {
    width: 14px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.76rem;
}

.sidebar-footer {
    padding: 14px;
    border-top: 1px solid rgba(2, 62, 138,0.20);
}

.sidebar-footer #userBadge {
    width: 100%;
}

.sidebar-footer .ub-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--sb-gold), #001489);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffF;
    font-weight: 800;
    font-size: 0.9rem;
}

.sidebar-footer .ub-info {
    line-height: 1.2;
    overflow: hidden;
}

.sidebar-footer #userDisplayName {
    color: #0047BB;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sidebar-footer #userDisplayRole {
    color: rgba(0,20,137,0.55);
    font-size: 0.7rem;
}

.sidebar-footer .logout-btn {
    width: 100%;
    margin-top: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg,#8d0801, #a10502, #bf0603, #dd0703, #f10804);
    color: #fff;
    padding: 9px 0;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    /* Tambahkan transition & box-shadow default tipis */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Keadaan Saat Di-hover (Efek Timbul) */
.sidebar-footer .logout-btn:hover {
    /* Mengangkat tombol ke atas 2px-3px */
    transform: translateY(-3px);

    /* Memberikan bayangan tebal di bawah agar terkesan melayang/timbul */
    box-shadow: 0 8px 20px rgba(220, 47, 2, 0.4), 0 4px 8px rgba(0, 0, 0, 0.3);

    /* Pilihan A: Tetap pakai gradient terang agar efek timbul lebih mencolok */
    background: linear-gradient(90deg,#8d0801, #a10502, #bf0603, #dd0703, #f10804);
    color: #fff;

    /* Pilihan B: Jika TETAP ingin background putih/terang saat hover (hapus pilihan A jika pakai ini) */
    /* background: #ffffff; color: #d00000; */
}

/* Efek saat tombol diklik (Efek Tertekan) */
.sidebar-footer .logout-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.admin-content {
    margin-left: var(--sb-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    background-image: linear-gradient(rgba(255,255,255,0.35), rgba(255,255,255,0.35)), url('https://fdllbkpjvffivwxjscro.supabase.co/storage/v1/object/public/dokumen/background_menu.png');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.sidebar-toggle-btn {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 950;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #001489, #CBA052);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    cursor: pointer;
    font-size: 1.05rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 890;
}

@media (max-width: 900px) {
    .app-sidebar {
        transform: translateX(-100%);
    }
    .app-sidebar.open {
        transform: translateX(0);
    }
    .admin-content {
        margin-left: 0;
    }
    .sidebar-toggle-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar-overlay.show {
        display: block;
    }
}

/* Kartu placeholder "Segera Hadir" untuk fitur Sitalus */
.coming-soon-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.88), rgba(247,250,249,0.88));
    border: 1px solid rgba(203,160,82,0.18);
    border-radius: 20px;
    padding: 3.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,20,137,0.08);
}

.coming-soon-card .icon-wrap {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #001489, #CBA052);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(203,160,82,0.35);
}

.coming-soon-card .icon-wrap i {
    font-size: 2.1rem;
    color: #fff;
}
