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

:root {
    --body-bg: #0f1021;
    --bg-gradient: radial-gradient(circle at 10% 20%, rgba(98, 114, 244, 0.9) 0%, rgba(19, 21, 40, 1) 90%),
                   radial-gradient(circle at 90% 10%, rgba(251, 88, 142, 0.8) 0%, rgba(19, 21, 40, 1) 80%),
                   radial-gradient(circle at 50% 80%, rgba(80, 203, 255, 0.7) 0%, rgba(19, 21, 40, 1) 100%);
    --card-bg: rgba(255, 255, 255, 0.08);
    --card-bg-hover: rgba(255, 255, 255, 0.12);
    --card-border: 1px solid rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-purple: #8B5CF6;
    --accent-blue: #3B82F6;
    --accent-pink: #EC4899;
    --accent-cyan: #06B6D4;
    --btn-gradient-1: linear-gradient(135deg, #6366F1 0%, #3B82F6 100%);
    --btn-gradient-2: linear-gradient(135deg, #EC4899 0%, #8B5CF6 100%);
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --nav-bg: rgba(15, 16, 33, 0.4);
    --dropdown-bg: #15162d;
    --dropdown-hover-bg: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] {
    --body-bg: #f3f4f6;
    --bg-gradient: radial-gradient(circle at 10% 20%, rgba(220, 224, 255, 0.9) 0%, rgba(243, 244, 246, 1) 90%),
                   radial-gradient(circle at 90% 10%, rgba(255, 225, 235, 0.8) 0%, rgba(243, 244, 246, 1) 80%),
                   radial-gradient(circle at 50% 80%, rgba(215, 242, 255, 0.7) 0%, rgba(243, 244, 246, 1) 100%);
    --card-bg: rgba(255, 255, 255, 0.55);
    --card-bg-hover: rgba(255, 255, 255, 0.7);
    --card-border: 1px solid rgba(255, 255, 255, 0.6);
    --text-primary: #1e1e38;
    --text-secondary: rgba(30, 30, 56, 0.75);
    --text-muted: rgba(30, 30, 56, 0.5);
    --success: #059669;
    --warning: #D97706;
    --danger: #DC2626;
    --nav-bg: rgba(255, 255, 255, 0.4);
    --dropdown-bg: #ffffff;
    --dropdown-hover-bg: rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--body-bg);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(10px) saturate(200%);
    -webkit-backdrop-filter: blur(10px) saturate(200%);
    border: var(--card-border);
    border-radius: 16px;
    box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

:root[data-theme="light"] .glass-panel {
    box-shadow: 0 10px 30px 0 rgba(31, 38, 135, 0.05);
}

.glass-panel:hover {
    background: var(--card-bg-hover);
    box-shadow: 0 15px 45px 0 rgba(0, 0, 0, 0.2);
}

.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background 0.4s ease;
}

:root[data-theme="light"] .glass-nav {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 16, 33, 0.5);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-primary {
    background: var(--btn-gradient-1);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: var(--card-border);
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

:root[data-theme="light"] .btn-secondary {
    background: rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

:root[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.5);
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

:root[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

:root[data-theme="light"] .form-control:focus {
    background: #ffffff;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

select.form-control option {
    background: #1c1d30;
    color: #fff;
}

:root[data-theme="light"] select.form-control option {
    background: #ffffff;
    color: #1e1e38;
}

/* Dashboard Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* Metric Cards */
.metric-card {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .metric-icon {
    background: rgba(0, 0, 0, 0.04);
}

.metric-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
}

.metric-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Table styling */
.table-container {
    overflow-x: auto;
    width: 100%;
}

.table-glass {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.table-glass th, .table-glass td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

:root[data-theme="light"] .table-glass th, 
:root[data-theme="light"] .table-glass td {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.table-glass th {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.table-glass tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

:root[data-theme="light"] .table-glass tbody tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-ringan {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

:root[data-theme="light"] .badge-ringan {
    background: rgba(16, 185, 129, 0.1);
}

.badge-sedang {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

:root[data-theme="light"] .badge-sedang {
    background: rgba(245, 158, 11, 0.1);
}

.badge-berat {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

:root[data-theme="light"] .badge-berat {
    background: rgba(239, 68, 68, 0.1);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}
.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}
.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Navigation design */
.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

/* Alert notifications */
.alert-glass {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.alert-glass-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: var(--card-border);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

:root[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(20deg);
}

:root[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   Responsive & Grid Utilities (Added for Mobile Responsiveness)
   ========================================================================== */

/* Grid and Flex Layout Helpers */
.responsive-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.responsive-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.responsive-flex-row {
    display: flex;
    gap: 15px;
}

/* Page Layout Wrappers */
.responsive-two-col {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .responsive-two-col {
        grid-template-columns: 1fr;
    }
    
    .responsive-two-col > div {
        grid-column: span 1 !important;
    }
    
    .responsive-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        text-align: left;
    }
    
    .dashboard-header > div:last-child {
        align-self: flex-start;
    }
    
    .responsive-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .responsive-grid-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .container {
        padding: 20px 10px;
    }
    
    .glass-panel {
        padding: 20px !important;
    }
}

@media (max-width: 576px) {
    .responsive-flex-row {
        flex-direction: column;
    }
    
    .responsive-flex-row > * {
        width: 100% !important;
    }
    
    .modal-content-card {
        padding: 20px !important;
        border-radius: 18px;
    }
    
    .modal-close-btn {
        top: 15px;
        right: 15px;
    }
    
    .table-glass th, .table-glass td {
        padding: 12px 10px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Sidebar Navigation Styles (Left Sidebar Layout)
   ========================================================================== */

/* Sidebar Layout Wrapper */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Sidebar styling */
.glass-sidebar {
    width: 280px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100vh;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 35px 24px;
    transition: all 0.4s ease;
}

:root[data-theme="light"] .glass-sidebar {
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

/* Main Content Wrapper */
.main-content {
    flex: 1;
    margin-left: 280px;
    min-height: 100vh;
    width: calc(100% - 280px);
    transition: all 0.4s ease;
}

/* Brand Section */
.sidebar-brand {
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Sidebar Links */
.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    list-style: none;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover, .sidebar-link.active {
    color: var(--text-primary);
    background: var(--card-bg-hover);
    border: var(--card-border);
}

/* Sidebar Footer */
.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

:root[data-theme="light"] .sidebar-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-theme-btn {
    display: none !important;
}

/* Mobile Header (fixed at top on mobile) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 999;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

:root[data-theme="light"] .mobile-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.sidebar-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    transition: background 0.2s;
}

.sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

:root[data-theme="light"] .sidebar-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Sidebar Close Button (only inside mobile sidebar) */
.sidebar-close-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: background 0.2s;
}

.sidebar-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Sidebar Backdrop Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 16, 33, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Sidebar Responsive Tweaks */
@media (max-width: 992px) {
    .glass-sidebar {
        width: 240px;
        padding: 25px 16px;
    }
    .main-content {
        margin-left: 240px;
        width: calc(100% - 240px);
    }
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }

    .sidebar-close-btn {
        display: flex;
    }

    .glass-sidebar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        width: 280px !important;
        transform: translateX(-100%);
        border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: none !important;
        z-index: 1001 !important;
        padding: 30px 20px !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    .glass-sidebar.active {
        transform: translateX(0) !important;
    }
    
    .sidebar-brand {
        margin-bottom: 30px !important;
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .mobile-theme-btn {
        display: none !important;
    }
    
    .desktop-theme-btn {
        display: inline-flex !important;
    }
    
    .sidebar-links {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        margin-top: 0 !important;
        justify-content: flex-start !important;
    }
    
    .sidebar-link {
        padding: 12px 16px !important;
        font-size: 1rem !important;
        width: 100% !important;
    }
    
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        padding-top: 80px !important; /* Space for mobile header + content spacing */
    }
    
    .sidebar-footer {
        width: 100% !important;
        margin-top: auto !important;
        padding-top: 20px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* ==========================================================================
   Searchable Select Dropdown Styles
   ========================================================================== */
.searchable-select {
    position: relative;
    width: 100%;
}

.searchable-select-trigger {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.searchable-select-trigger .trigger-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.searchable-select-trigger .trigger-arrow {
    transition: transform 0.2s ease;
    opacity: 0.7;
    margin-left: 10px;
}

.searchable-select.open .searchable-select-trigger .trigger-arrow {
    transform: rotate(180deg);
}

.searchable-select-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--dropdown-bg);
    border: var(--card-border);
    border-radius: 14px;
    z-index: 1050;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    animation: searchableDropdownSlideDown 0.2s ease;
}

:root[data-theme="light"] .searchable-select-dropdown {
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.1);
}

@keyframes searchableDropdownSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-search-box {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    gap: 10px;
}

:root[data-theme="light"] .dropdown-search-box {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dropdown-search-box .search-icon {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.dropdown-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.dropdown-search-input::placeholder {
    color: var(--text-muted);
}

.dropdown-options {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
}

/* Custom Scrollbar for Dropdown Options */
.dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.dropdown-options::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

:root[data-theme="light"] .dropdown-options::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

.dropdown-option-item {
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: background 0.2s, transform 0.1s;
    border: 1px solid transparent;
}

.dropdown-option-item:hover {
    background: var(--dropdown-hover-bg);
    border: var(--card-border);
}

.dropdown-option-item.selected {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.dropdown-option-item.selected .option-title {
    color: #60a5fa;
    font-weight: 600;
}

:root[data-theme="light"] .dropdown-option-item.selected .option-title {
    color: #2563eb;
}

.dropdown-option-item.no-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    cursor: default;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.dropdown-option-item.no-results i {
    font-size: 1.5rem;
    margin-bottom: 8px;
    opacity: 0.6;
}

.option-title {
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}
.option-subtitle {
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.student-detail-link:hover {
    color: var(--accent-cyan) !important;
    border-bottom-color: var(--accent-cyan) !important;
}

/* ==========================================
   PRINT MEDIA STYLES (window.print())
   ========================================== */
@media print {
    /* Hide layout sections and chrome elements */
    .mobile-header,
    .glass-sidebar,
    .sidebar-overlay,
    .no-print,
    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-danger,
    .action-buttons,
    .actions,
    .alert-glass,
    .alert-glass-success,
    form,
    #theme-toggle,
    #theme-toggle-desktop,
    header,
    aside,
    nav {
        display: none !important;
    }

    /* Reset core elements */
    body, html {
        background: #ffffff !important;
        color: #000000 !important;
        font-size: 11pt !important;
        font-family: 'Inter', 'Segoe UI', Arial, sans-serif !important;
        margin: 0 !important;
        padding: 0 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .app-layout {
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Reset cards and glassmorphic tables to look solid and crisp on white paper */
    .glass-card, .table-container, .table-responsive {
        background: #ffffff !important;
        border: 1px solid #cbd5e1 !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        margin-bottom: 20px !important;
        padding: 0 !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        color: #000000 !important;
    }

    /* Table styles for printing */
    table {
        width: 100% !important;
        border-collapse: collapse !important;
        color: #000000 !important;
    }

    th, td {
        border: 1px solid #cbd5e1 !important;
        padding: 8px 12px !important;
        font-size: 9.5pt !important;
        color: #000000 !important;
        background: transparent !important;
    }

    th {
        background-color: #f1f5f9 !important;
        font-weight: 700 !important;
    }

    /* Custom print layout page configurations */
    .print-title {
        display: block !important;
        text-align: center;
        margin-bottom: 30px;
    }

    .print-only {
        display: block !important;
    }

    /* Letterhead & SP layouts */
    .kop-surat {
        display: flex !important;
        align-items: center;
        border-bottom: 2.5px solid #000000 !important;
        padding-bottom: 8px !important;
        margin-bottom: 25px !important;
        font-family: Arial, Helvetica, sans-serif !important;
        color: #000000 !important;
    }

    .kop-logo {
        width: 85px !important;
        height: auto !important;
        margin-right: 15px !important;
        filter: grayscale(1) contrast(1.1) !important;
    }

    .kop-text {
        flex: 1 !important;
        text-align: center !important;
        position: relative !important;
        padding-right: 85px !important;
    }

    .kop-provinsi {
        font-size: 12pt !important;
        font-weight: bold !important;
        margin: 0 !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
    }

    .kop-sekolah {
        font-size: 15pt !important;
        font-weight: bold !important;
        margin: 2px 0 !important;
        line-height: 1.2 !important;
        text-transform: uppercase !important;
    }

    .kop-detail {
        font-size: 9.5pt !important;
        margin: 1px 0 !important;
        line-height: 1.3 !important;
    }

    .kop-kota {
        font-size: 11pt !important;
        font-weight: bold !important;
        margin: 2px 0 0 0 !important;
        text-transform: uppercase !important;
    }

    .kop-kodepos {
        font-size: 9.5pt !important;
        text-align: right !important;
        margin-top: 4px !important;
        margin-right: -85px !important;
    }

    .page-break {
        page-break-before: always !important;
    }
}
