/* ==========================================================================
   PMB STAINU CIANJUR — Stylesheet Responsif, Kontras Tinggi, & Mobile-First
   Identitas Visual: Hijau Emerald NU (#064e3b / #047857) & Emas (#d97706)
   Sistem Tiga Tema Glassmorphism:
     1. Emerald Glass (Default) — Sidebar zamrud, latar mint, aksen emas
     2. Pearl Gloss — Latar putih mutiara, panel mint lembut, aksen hijau
     3. Midnight Glass — Latar biru gelap pekat, aksen teal & hijau zamrud
   ========================================================================== */

/* 1. TEMA EMERALD GLASS (DEFAULT) */
:root,
html[data-theme="emerald"],
.theme-emerald {
    --bg-page: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 45%, #dcf4e8 100%);
    --bg-page-attachment: fixed;
    --text-main: #0f172a;
    --text-muted: #334155;
    --text-inverse: #ffffff;
    --topbar-bg: #022c22;
    --topbar-text: #ecfdf5;
    --topbar-border: rgba(255, 255, 255, 0.12);
    --header-bg: rgba(255, 255, 255, 0.88);
    --header-border: #047857;
    --header-text: #0f172a;
    --card-bg: rgba(255, 255, 255, 0.84);
    --card-border: rgba(167, 243, 208, 0.6);
    --card-shadow: 0 10px 30px rgba(6, 78, 59, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    --card-header-border: rgba(6, 95, 70, 0.12);
    --card-title-color: #064e3b;
    --accent-primary: #047857;
    --accent-primary-hover: #065f46;
    --accent-gold: #d97706;
    --accent-gold-hover: #b45309;
    --table-header-bg: rgba(209, 250, 229, 0.65);
    --table-header-color: #064e3b;
    --table-row-bg: rgba(255, 255, 255, 0.65);
    --table-row-hover: rgba(236, 253, 245, 0.85);
    --table-border: rgba(167, 243, 208, 0.5);
    --table-text: #0f172a;
    --input-bg: #ffffff;
    --input-border: #94a3b8;
    --input-text: #0f172a;
    --input-focus-border: #047857;
    --input-focus-shadow: 0 0 0 3px rgba(4, 120, 87, 0.18);
    --glass-blur: blur(14px);
    --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 100%);
    --nav-link-color: #334155;
    --nav-link-hover: #047857;
    --nav-link-active: #047857;
    --footer-bg: #022c22;
    --footer-text: #e2e8f0;

    --emerald-950: #022c22;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-100: #d1fae5;
    --emerald-50:  #ecfdf5;
    --gold-600:    #d97706;
    --gold-500:    #f59e0b;
    --gold-100:    #fef3c7;
    --slate-900:   #0f172a;
    --slate-800:   #1e293b;
    --slate-700:   #334155;
    --slate-600:   #475569;
    --slate-500:   #64748b;
    --slate-300:   #cbd5e1;
    --slate-200:   #e2e8f0;
    --slate-100:   #f1f5f9;
    --slate-50:    #f8fafc;
    --red-700:     #b91c1c;
    --red-600:     #dc2626;
    --red-100:     #fee2e2;
    --red-50:      #fef2f2;
    --blue-700:    #1d4ed8;
    --blue-100:    #dbeafe;
    --radius-sm:   8px;
    --radius-md:   12px;
    --radius-lg:   16px;
    --shadow-sm:   0 1px 3px rgba(15, 23, 42, 0.08);
    --shadow-md:   0 4px 14px rgba(15, 23, 42, 0.08);
}

/* 2. TEMA PEARL GLOSS */
html[data-theme="pearl"],
.theme-pearl {
    --bg-page: linear-gradient(135deg, #ffffff 0%, #fafbfd 30%, #f3faf6 70%, #e9f6ef 100%);
    --bg-page-attachment: fixed;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-inverse: #ffffff;
    --topbar-bg: linear-gradient(90deg, #e6f6ee 0%, #dcf1e6 100%);
    --topbar-text: #064e3b;
    --topbar-border: rgba(5, 150, 105, 0.2);
    --header-bg: rgba(255, 255, 255, 0.94);
    --header-border: #059669;
    --header-text: #0f172a;
    --card-bg: rgba(240, 253, 244, 0.76);
    --card-border: rgba(255, 255, 255, 0.95);
    --card-shadow: 0 12px 35px rgba(16, 185, 129, 0.08), inset 0 1px 2px rgba(255, 255, 255, 1);
    --card-header-border: rgba(167, 243, 208, 0.45);
    --card-title-color: #065f46;
    --accent-primary: #059669;
    --accent-primary-hover: #047857;
    --accent-gold: #f59e0b;
    --accent-gold-hover: #d97706;
    --table-header-bg: rgba(209, 250, 229, 0.5);
    --table-header-color: #065f46;
    --table-row-bg: rgba(255, 255, 255, 0.7);
    --table-row-hover: rgba(240, 253, 244, 0.95);
    --table-border: rgba(209, 250, 229, 0.65);
    --table-text: #0f172a;
    --input-bg: rgba(255, 255, 255, 0.95);
    --input-border: #a7f3d0;
    --input-text: #0f172a;
    --input-focus-border: #059669;
    --input-focus-shadow: 0 0 0 3px rgba(5, 150, 105, 0.18);
    --glass-blur: blur(16px);
    --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.1) 100%);
    --nav-link-color: #334155;
    --nav-link-hover: #059669;
    --nav-link-active: #059669;
    --footer-bg: #064e3b;
    --footer-text: #e2e8f0;
}

/* 3. TEMA MIDNIGHT GLASS */
html[data-theme="midnight"],
.theme-midnight {
    --bg-page: linear-gradient(135deg, #070c18 0%, #0c162a 45%, #051d26 100%);
    --bg-page-attachment: fixed;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --text-inverse: #0f172a;
    --topbar-bg: #040711;
    --topbar-text: #94a3b8;
    --topbar-border: rgba(255, 255, 255, 0.08);
    --header-bg: rgba(12, 22, 42, 0.88);
    --header-border: #14b8a6;
    --header-text: #f8fafc;
    --card-bg: rgba(15, 26, 48, 0.78);
    --card-border: rgba(45, 212, 191, 0.25);
    --card-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    --card-header-border: rgba(45, 212, 191, 0.18);
    --card-title-color: #2dd4bf;
    --accent-primary: #14b8a6;
    --accent-primary-hover: #2dd4bf;
    --accent-gold: #f59e0b;
    --accent-gold-hover: #fbbf24;
    --table-header-bg: rgba(20, 36, 64, 0.85);
    --table-header-color: #2dd4bf;
    --table-row-bg: rgba(15, 26, 48, 0.65);
    --table-row-hover: rgba(20, 36, 64, 0.75);
    --table-border: rgba(51, 65, 85, 0.55);
    --table-text: #f8fafc;
    --input-bg: rgba(11, 20, 38, 0.9);
    --input-border: rgba(45, 212, 191, 0.4);
    --input-text: #f8fafc;
    --input-focus-border: #2dd4bf;
    --input-focus-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25);
    --glass-blur: blur(16px);
    --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%);
    --nav-link-color: #e2e8f0;
    --nav-link-hover: #2dd4bf;
    --nav-link-active: #14b8a6;
    --footer-bg: #040711;
    --footer-text: #94a3b8;
    --slate-900: #f8fafc;
    --slate-800: #f1f5f9;
    --slate-700: #e2e8f0;
    --slate-600: #cbd5e1;
    --slate-500: #94a3b8;
    --slate-200: rgba(51, 65, 85, 0.6);
    --slate-100: rgba(15, 23, 42, 0.8);
    --slate-50:  rgba(15, 26, 48, 0.9);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg-page);
    background-attachment: var(--bg-page-attachment, fixed);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background 0.25s ease, color 0.25s ease;
}

/* Navigasi Keyboard & Aksesibilitas */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--emerald-900);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    z-index: 9999;
    font-weight: 700;
    text-decoration: none;
}
.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--gold-500);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--gold-500);
    outline-offset: 2px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Topbar */
.topbar {
    background: var(--topbar-bg);
    color: var(--topbar-text);
    font-size: 0.825rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--topbar-border);
    transition: background 0.25s ease, color 0.25s ease;
}
.topbar-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.topbar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.topbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.topbar-badge {
    background: var(--accent-gold);
    color: #fff;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
}
.topbar-status.open {
    color: #6ee7b7;
    font-weight: 600;
}
.topbar-status.closed {
    color: #fcd34d;
    font-weight: 600;
}

/* Header & Navigasi */
.site-header {
    background: var(--header-bg);
    border-bottom: 3px solid var(--header-border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: background 0.25s ease, border-color 0.25s ease;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    color: var(--header-text);
}
.brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    flex-shrink: 0;
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-primary);
    font-weight: 700;
}
.brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--header-text);
}
.brand-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.nav-toggle {
    display: none;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: var(--radius-sm);
    padding: 0.55rem;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}
.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    margin: 4px auto;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}
.nav-list a:not(.btn) {
    display: inline-block;
    padding: 0.55rem 0.85rem;
    color: var(--nav-link-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
}
.nav-list a:not(.btn):hover,
.nav-list a:not(.btn).active {
    background: rgba(4, 120, 87, 0.12);
    color: var(--nav-link-active);
}
[data-theme="midnight"] .nav-list a:not(.btn):hover,
[data-theme="midnight"] .nav-list a:not(.btn).active {
    background: rgba(20, 184, 166, 0.2);
    color: var(--accent-primary);
}
.nav-cta-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    padding: 0.55rem 1.15rem;
    font-size: 0.925rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
    line-height: 1.3;
}
.btn-sm {
    min-height: 36px;
    padding: 0.35rem 0.8rem;
    font-size: 0.825rem;
}
.btn-lg {
    min-height: 50px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}
.btn-primary {
    background-color: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
}
.btn-primary:hover {
    background-color: var(--accent-primary-hover);
    border-color: var(--accent-primary-hover);
}
.btn-gold {
    background-color: var(--accent-gold);
    color: #ffffff;
}
.btn-gold:hover {
    background-color: var(--accent-gold-hover);
}
.btn-outline {
    background-color: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.btn-outline:hover {
    background-color: var(--accent-primary);
    color: #ffffff;
}
.btn-danger {
    background-color: var(--red-600);
    color: #ffffff;
}
.btn-danger:hover {
    background-color: var(--red-700);
}
.inline-form {
    display: inline;
    margin: 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-800) 100%);
    color: #ffffff;
    padding: 3.25rem 0;
    border-bottom: 4px solid var(--gold-500);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 2rem;
    align-items: center;
}
.hero-tag {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid var(--gold-500);
    color: #fde68a;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.825rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}
.hero h1 {
    font-size: 2.15rem;
    line-height: 1.22;
    margin: 0 0 1rem 0;
    font-weight: 800;
}
.hero p {
    font-size: 1.05rem;
    color: #e2e8f0;
    margin: 0 0 1.5rem 0;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}
.hero-card {
    background: rgba(255, 255, 255, 0.97);
    color: var(--slate-900);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-top: 5px solid var(--gold-500);
}
.hero-card h2 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--emerald-950);
}

/* Sections & Cards */
.main-content {
    flex: 1;
    padding-bottom: 3rem;
}
.section {
    padding: 2.5rem 0;
}
.section-header {
    margin-bottom: 1.5rem;
}
.section-title {
    font-size: 1.55rem;
    color: var(--card-title-color);
    margin: 0 0 0.35rem 0;
    font-weight: 800;
}
.section-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    margin-bottom: 1.25rem;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card-header {
    border-bottom: 1px solid var(--card-header-border);
    padding-bottom: 0.85rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}
.card-title {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--card-title-color);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    line-height: 1.3;
}
.badge-success {
    background: var(--emerald-100);
    color: var(--emerald-900);
    border: 1px solid #6ee7b7;
}
.badge-warning {
    background: var(--gold-100);
    color: #92400e;
    border: 1px solid #fcd34d;
}
.badge-danger {
    background: var(--red-100);
    color: var(--red-700);
    border: 1px solid #fca5a5;
}
.badge-info {
    background: var(--blue-100);
    color: var(--blue-700);
    border: 1px solid #93c5fd;
}
.badge-neutral {
    background: var(--slate-100);
    color: var(--slate-700);
    border: 1px solid var(--slate-300);
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-weight: 600;
    border-left: 5px solid transparent;
}
.alert-success {
    background: var(--emerald-50);
    color: var(--emerald-900);
    border-left-color: var(--emerald-700);
    border: 1px solid #a7f3d0;
    border-left-width: 5px;
}
.alert-error, .alert-danger {
    background: var(--red-50);
    color: var(--red-700);
    border: 1px solid #fecaca;
    border-left: 5px solid var(--red-600);
}
.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
    border-left: 5px solid var(--gold-600);
}
.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    border-left: 5px solid var(--blue-700);
}

/* Forms & Accessible Labels */
.form-group {
    margin-bottom: 1.15rem;
}
.form-label {
    display: block;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text-main);
    margin-bottom: 0.35rem;
}
.form-label .req {
    color: var(--red-600);
    margin-left: 2px;
}
.form-hint {
    display: block;
    font-size: 0.81rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}
.form-control {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--input-text);
    background-color: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.25s ease, color 0.25s ease;
}
.form-control:focus {
    border-color: var(--input-focus-border);
    box-shadow: var(--input-focus-shadow);
    outline: none;
}
.form-control[readonly],
.form-control:disabled {
    background-color: rgba(100, 116, 139, 0.12);
    color: var(--text-muted);
    cursor: not-allowed;
}
.form-control.is-invalid {
    border-color: var(--red-600);
    background-color: rgba(220, 38, 38, 0.08);
}
.field-error {
    color: var(--red-600);
    font-size: 0.83rem;
    font-weight: 600;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.field-error::before {
    content: "⚠";
}

/* Highlight untuk field yang ditandai Perlu Perbaikan */
.revision-highlight {
    border: 2px solid var(--red-600) !important;
    background-color: rgba(220, 38, 38, 0.08);
    padding: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    color: var(--table-text);
}
.table th,
.table td {
    padding: 0.75rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid var(--table-border);
    vertical-align: top;
}
.table th {
    background-color: var(--table-header-bg);
    color: var(--table-header-color);
    font-weight: 700;
    white-space: nowrap;
}
.table tr:hover td {
    background-color: var(--table-row-hover);
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 2.5rem 0 1.5rem 0;
    margin-top: auto;
    border-top: 4px solid var(--accent-gold);
    transition: background 0.25s ease;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.footer-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}
.footer-sub {
    margin: 0;
    font-size: 0.8rem;
    color: #a7f3d0;
}
.footer-address {
    font-size: 0.88rem;
    color: #cbd5e1;
}
.footer-tagline {
    font-size: 0.85rem;
    color: #fde68a;
    font-weight: 600;
}
.site-footer h4 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.45rem;
}
.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
}
.footer-links a:hover {
    color: #fde68a;
    text-decoration: underline;
}
.footer-bottom {
    padding-top: 1.15rem;
    font-size: 0.82rem;
    color: #94a3b8;
    text-align: center;
}

/* Responsive Breakpoints (Ponsel & Tablet) */
@media (max-width: 900px) {
    .hero-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 1.65rem;
    }
    .nav-toggle {
        display: inline-block;
    }
    .site-nav {
        display: none;
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid var(--slate-200);
    }
    .site-nav.open {
        display: block;
    }
    .header-inner {
        flex-wrap: wrap;
    }
    .nav-list {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-cta-group {
        margin-left: 0;
        margin-top: 0.5rem;
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==========================================================================
   KOMPONEN PEMILIH TEMA (THEME SWITCHER)
   - Menu Tampilan di Topbar Panel
   - Pemilih Ringkas di Halaman Ganti Kata Sandi
   ========================================================================== */

/* Dropdown Tampilan di Topbar */
.theme-dropdown-container {
    position: relative;
    display: inline-block;
}
.theme-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: inherit;
    font-size: 0.775rem;
    font-family: inherit;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s ease;
}
.theme-dropdown-trigger:hover,
.theme-dropdown-trigger:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
    outline: none;
}
.theme-swatch-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.theme-swatch-badge span,
.theme-swatch-pill span,
.compact-theme-swatch span {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.theme-trigger-caret {
    font-size: 0.65rem;
    opacity: 0.85;
}
.theme-dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.3);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 0.5rem;
    min-width: 275px;
    z-index: 1000;
    display: none;
}
.theme-dropdown-menu.open {
    display: block !important;
    animation: fadeInSlideDown 0.15s ease-out;
}
@keyframes fadeInSlideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.theme-dropdown-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    padding: 0.35rem 0.6rem 0.45rem 0.6rem;
    border-bottom: 1px solid var(--card-header-border);
    margin-bottom: 0.35rem;
}
.theme-item-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.theme-item-btn:hover,
.theme-item-btn:focus-visible {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-primary);
    outline: none;
}
.theme-item-btn.active {
    background: rgba(4, 120, 87, 0.14);
    border-color: var(--accent-primary);
}
[data-theme="midnight"] .theme-item-btn.active {
    background: rgba(20, 184, 166, 0.22);
    border-color: var(--accent-primary);
}
.theme-swatch-pill {
    display: inline-flex;
    gap: 3px;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 999px;
}
[data-theme="midnight"] .theme-swatch-pill {
    background: rgba(255, 255, 255, 0.1);
}
.theme-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.theme-item-info strong {
    font-size: 0.86rem;
    color: var(--text-main);
}
.theme-item-info small {
    font-size: 0.725rem;
    color: var(--text-muted);
}
.theme-item-check {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent-primary);
    opacity: 0;
}
.theme-item-btn.active .theme-item-check {
    opacity: 1;
}

/* Pemilih Ringkas di Ganti Kata Sandi */
.compact-theme-selector {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 1.25rem;
}
[data-theme="midnight"] .compact-theme-selector {
    background: rgba(15, 26, 48, 0.6);
}
.compact-theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}
.compact-theme-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.35rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}
[data-theme="midnight"] .compact-theme-btn {
    background: rgba(15, 26, 48, 0.85);
}
.compact-theme-btn:hover,
.compact-theme-btn:focus-visible {
    border-color: var(--accent-primary);
    outline: none;
    transform: translateY(-1px);
}
.compact-theme-btn.active {
    border-color: var(--accent-primary);
    background: rgba(4, 120, 87, 0.12);
    box-shadow: 0 0 0 2px var(--accent-primary);
}
[data-theme="midnight"] .compact-theme-btn.active {
    background: rgba(20, 184, 166, 0.22);
    box-shadow: 0 0 0 2px var(--accent-primary);
}
.compact-theme-swatch {
    display: inline-flex;
    gap: 3px;
}
.compact-theme-name {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

/* Override Kontras Tinggi Alert & Badges pada Tema Midnight */
[data-theme="midnight"] .alert-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #fde68a;
    border-color: rgba(245, 158, 11, 0.45);
    border-left-color: var(--accent-gold);
}
[data-theme="midnight"] .alert-error,
[data-theme="midnight"] .alert-danger {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.45);
    border-left-color: #ef4444;
}
[data-theme="midnight"] .alert-success {
    background: rgba(16, 185, 129, 0.16);
    color: #a7f3d0;
    border-color: rgba(16, 185, 129, 0.45);
    border-left-color: #10b981;
}
[data-theme="midnight"] .alert-info {
    background: rgba(20, 184, 166, 0.16);
    color: #99f6e4;
    border-color: rgba(20, 184, 166, 0.45);
    border-left-color: #14b8a6;
}
[data-theme="midnight"] .badge-success {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.5);
}
[data-theme="midnight"] .badge-warning {
    background: rgba(245, 158, 11, 0.22);
    color: #fcd34d;
    border-color: rgba(245, 158, 11, 0.5);
}
[data-theme="midnight"] .badge-danger {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.5);
}
[data-theme="midnight"] .badge-info {
    background: rgba(20, 184, 166, 0.22);
    color: #5eead4;
    border-color: rgba(20, 184, 166, 0.5);
}
[data-theme="midnight"] .badge-neutral {
    background: rgba(100, 116, 139, 0.25);
    color: #cbd5e1;
    border-color: rgba(100, 116, 139, 0.5);
}
[data-theme="midnight"] .card code {
    background: rgba(0, 0, 0, 0.35);
    color: #5eead4;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
}

/* ==========================================================================
   PANEL ADMINISTRASI PANITIA PMB — POLA TAMPILAN SIAKAD STAINU CIANJUR
   Desktop Collapsible Sidebar, Mobile Off-Canvas Drawer, Submenu Accordions
   ========================================================================== */

.has-panitia-layout {
    background: var(--bg-page);
}

.admin-header-compact .header-inner {
    min-height: 64px;
}
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.admin-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--topbar-border);
    font-size: 0.785rem;
    font-weight: 600;
    color: var(--text-main);
}
.pill-dot {
    color: #10b981;
    font-size: 0.65rem;
}
.pill-badge {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--accent-gold);
    color: #ffffff;
}
.btn-header-logout {
    min-height: 32px;
    padding: 0.25rem 0.75rem;
    font-size: 0.785rem;
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}
.btn-header-logout:hover {
    background: #ef4444;
    color: #ffffff;
}

/* 1. Layout Container Bersama */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 120px);
    width: 100%;
    position: relative;
}

/* 2. Desktop Sidebar */
.admin-sidebar {
    width: 275px;
    min-width: 275px;
    max-width: 275px;
    background: var(--card-bg);
    border-right: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 76px;
    height: calc(100vh - 76px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0.85rem;
    z-index: 95;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                min-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.25s ease;
}

/* Sidebar Custom Scrollbar */
.admin-sidebar::-webkit-scrollbar,
.admin-mobile-drawer-body::-webkit-scrollbar {
    width: 5px;
}
.admin-sidebar::-webkit-scrollbar-thumb,
.admin-mobile-drawer-body::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.3);
    border-radius: 999px;
}

/* Collapsed Desktop Sidebar */
.admin-sidebar.collapsed {
    width: 72px;
    min-width: 72px;
    max-width: 72px;
    padding: 0.85rem 0.4rem;
    overflow: visible;
}
.admin-sidebar.collapsed .sidebar-section {
    position: relative;
}
.admin-sidebar.collapsed .sidebar-user-details,
.admin-sidebar.collapsed .sidebar-action-box,
.admin-sidebar.collapsed .sidebar-section-title,
.admin-sidebar.collapsed .accordion-label,
.admin-sidebar.collapsed .accordion-right,
.admin-sidebar.collapsed .nav-item-label,
.admin-sidebar.collapsed .sidebar-badge,
.admin-sidebar.collapsed .sidebar-footer-note,
.admin-sidebar.collapsed .sidebar-logout-btn span {
    display: none !important;
}
.admin-sidebar.collapsed .sidebar-profile-card {
    padding: 0.5rem 0.2rem;
    align-items: center;
    text-align: center;
}
.admin-sidebar.collapsed .sidebar-collapse-btn {
    position: static;
    margin: 0 auto 0.5rem auto;
    transform: rotate(180deg);
}
.admin-sidebar.collapsed .sidebar-avatar {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
    margin: 0 auto;
}
.admin-sidebar.collapsed .sidebar-nav-item,
.admin-sidebar.collapsed .sidebar-accordion-btn {
    justify-content: center;
    padding: 0.65rem 0;
    border-radius: var(--radius-md);
}
/* Menu Melayang (Flyout Submenu) saat Sidebar Diminimalkan */
.admin-sidebar.collapsed .sidebar-submenu {
    display: none !important;
    position: absolute;
    left: calc(100% + 8px);
    top: 0;
    min-width: 230px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    padding: 0.6rem 0.5rem;
    z-index: 1050;
    margin: 0;
}
.admin-sidebar.collapsed .sidebar-section:hover .sidebar-submenu,
.admin-sidebar.collapsed .sidebar-section:focus-within .sidebar-submenu {
    display: block !important;
    animation: flyoutSlideIn 0.16s ease-out;
}
@keyframes flyoutSlideIn {
    from { opacity: 0; transform: translateX(-6px); }
    to { opacity: 1; transform: translateX(0); }
}
.admin-sidebar.collapsed .sidebar-submenu .nav-item-label {
    display: inline-block !important;
    font-size: 0.85rem !important;
    color: var(--text-color) !important;
    font-weight: 500;
}
.admin-sidebar.collapsed .sidebar-submenu .sidebar-badge {
    display: inline-flex !important;
}
.admin-sidebar.collapsed .sidebar-submenu .sidebar-nav-item {
    justify-content: space-between !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0.15rem 0 !important;
    border-radius: var(--radius-sm);
    text-align: left;
}
.admin-sidebar.collapsed .sidebar-logout-btn {
    justify-content: center;
    padding: 0.6rem 0;
}

/* Profil Singkat Petugas */
.sidebar-profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.85rem 0.65rem 1rem 0.65rem;
    border-bottom: 1px solid var(--card-header-border);
    margin-bottom: 0.85rem;
}
.sidebar-collapse-btn {
    position: absolute;
    right: 0;
    top: 0;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    padding: 0.3rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sidebar-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-primary);
}
.sidebar-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent-primary);
    color: #ffffff;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin-bottom: 0.5rem;
}
.sidebar-user-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.sidebar-user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
}
.sidebar-user-handle {
    font-size: 0.725rem;
    font-family: monospace;
    color: var(--text-muted);
}
.sidebar-role-badge {
    margin-top: 0.35rem;
    font-size: 0.675rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(4, 120, 87, 0.15);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}
.sidebar-role-badge.role-admin {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Pusat Tindakan Cepat (Action Center Box) */
.sidebar-action-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.65rem;
    margin-bottom: 0.85rem;
}
.sidebar-action-header {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-gold);
    margin-bottom: 0.35rem;
}
.sidebar-action-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.action-quick-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    padding: 0.25rem 0.4rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}
.action-quick-link:hover {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-gold);
}

/* Struktur Navigasi */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.sidebar-section-title {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    padding: 0.35rem 0.5rem 0.2rem 0.5rem;
}

/* Accordion Group Buttons */
.sidebar-accordion-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.795rem;
    cursor: pointer;
    transition: all 0.15s ease;
    text-align: left;
}
.sidebar-accordion-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--accent-primary);
}
.sidebar-accordion-btn.expanded {
    background: rgba(4, 120, 87, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}
.sidebar-accordion-btn.parent-active {
    font-weight: 800;
    border-color: var(--accent-primary);
    background: rgba(4, 120, 87, 0.14);
}
.accordion-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.accordion-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.chevron-icon {
    transition: transform 0.2s ease;
    opacity: 0.8;
}
.sidebar-accordion-btn.expanded .chevron-icon {
    transform: rotate(180deg);
}

/* Submenu Lists */
.sidebar-submenu {
    display: none;
    flex-direction: column;
    gap: 0.2rem;
    padding-left: 0.6rem;
    margin: 0.25rem 0 0.4rem 0.75rem;
    border-left: 2px solid var(--accent-primary);
}
.sidebar-submenu.open {
    display: flex;
    animation: fadeInSlideDown 0.15s ease-out;
}

/* Nav Item Links */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.815rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.15s ease;
}
.nav-item-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-primary);
    transform: translateX(2px);
}
.sidebar-nav-item.active {
    background: var(--accent-primary) !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.sidebar-nav-item.active .nav-icon {
    color: var(--accent-gold);
}
.sidebar-nav-item.active .sidebar-badge {
    background: rgba(0, 0, 0, 0.25);
    color: #ffffff;
}

/* Badges */
.sidebar-badge {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-main);
}
.sidebar-badge.pending {
    background: var(--accent-gold);
    color: #ffffff;
    font-weight: 800;
    animation: badgePulse 2s infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(1.05); }
}

/* Tombol Logout & Footer Sidebar */
.sidebar-logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.65rem;
    background: transparent;
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-sm);
    color: #ef4444;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.sidebar-logout-btn:hover {
    background: #ef4444;
    color: #ffffff;
}
.sidebar-footer-note {
    padding: 0.65rem 0.35rem 0.2rem 0.35rem;
    font-size: 0.675rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.35;
}

/* 3. Workspace Konten Utama */
.admin-main-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.admin-main-content {
    flex: 1;
    padding: 1.25rem 1.25rem 2.5rem 1.25rem;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
}
.admin-main-content .container {
    max-width: 100%;
    padding: 0;
}
.admin-main-content .section {
    padding: 0;
}
.admin-workspace-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--card-header-border);
    font-size: 0.775rem;
    color: var(--text-muted);
    text-align: center;
    background: rgba(0, 0, 0, 0.03);
}

/* 4. Drawer Ponsel (< 1024px) */
.admin-nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid var(--topbar-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.admin-nav-toggle-btn .hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--topbar-text);
    border-radius: 2px;
    transition: all 0.2s ease;
}
.admin-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.admin-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}
.admin-mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    z-index: 1050;
    background: var(--card-bg);
    border-right: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.admin-mobile-drawer.open {
    transform: translateX(0);
}
.admin-mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--card-header-border);
    background: var(--topbar-bg);
    color: var(--topbar-text);
    flex-shrink: 0;
}
.drawer-header-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.drawer-logo {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.drawer-header-brand strong {
    font-size: 0.95rem;
    display: block;
    line-height: 1.1;
}
.drawer-header-brand small {
    font-size: 0.7rem;
    opacity: 0.85;
}
.btn-close-drawer {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-close-drawer:hover {
    background: rgba(255, 255, 255, 0.2);
}
.admin-mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0.85rem;
}

/* Responsivitas Layar Ponsel & Tablet */
@media (max-width: 1023px) {
    .admin-sidebar {
        display: none !important;
    }
    .admin-nav-toggle-btn {
        display: flex !important;
    }
    .admin-main-content {
        padding: 1rem 0.75rem 2rem 0.75rem;
    }
}
@media (min-width: 1024px) {
    .admin-mobile-drawer,
    .admin-drawer-backdrop,
    .admin-nav-toggle-btn {
        display: none !important;
    }
}

/* Penyesuaian Tema Khusus Sidebar */
[data-theme="pearl"] .admin-sidebar,
[data-theme="pearl"] .admin-mobile-drawer {
    background: rgba(255, 255, 255, 0.92);
    border-right-color: rgba(5, 150, 105, 0.2);
}
[data-theme="pearl"] .sidebar-accordion-btn.expanded {
    background: #d1fae5;
    color: #065f46;
    border-color: #059669;
}
[data-theme="pearl"] .sidebar-action-box {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.4);
}

[data-theme="midnight"] .admin-sidebar,
[data-theme="midnight"] .admin-mobile-drawer {
    background: rgba(11, 20, 38, 0.94);
    border-right-color: rgba(45, 212, 191, 0.25);
}
[data-theme="midnight"] .sidebar-accordion-btn.expanded {
    background: rgba(20, 184, 166, 0.2);
    border-color: var(--accent-primary);
    color: #5eead4;
}
[data-theme="midnight"] .sidebar-nav-item:hover {
    background: rgba(20, 184, 166, 0.12);
}
[data-theme="midnight"] .sidebar-action-box {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.45);
}
[data-theme="midnight"] .sidebar-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}
