/* Landing Overlay */
#welcomeLanding {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background-color: #020617;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#welcomeLanding.hidden,
html.skip-landing #welcomeLanding {
    display: none !important;
}

/* Sidebar Drawer & Backdrop */
#sidebarBackdrop {
    z-index: 9990 !important;
}

#slideSidebar {
    z-index: 9995 !important;
}

/* Modal Profil Petugas & Overlays (Harus di atas Welcome Landing z-index 9999) */
#profileModal {
    z-index: 10000 !important;
}

#profileModal:not(.hidden) {
    display: flex !important;
}

#profileModal.hidden {
    display: none !important;
}

/* Toast Notification (Harus paling atas) */
#toast {
    z-index: 10050 !important;
}

.landing-bg {
    background-color: #020617;
    background-image: linear-gradient(to bottom, rgba(2, 6, 23, 0.82), rgba(2, 6, 23, 0.94)), url('https://i.imgur.com/OkJqcqJ.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overscroll-behavior: contain;
}

/* Mobile Viewport Safeguards */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

/* Forum Box */
.forum-box {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #1a202c;
}

.forum-header-maroon {
    background-color: #800000;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 8px 12px;
    font-size: 15px;
    letter-spacing: 0.5px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.forum-header-indigo {
    background-color: #312e81;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    padding: 8px 12px;
    font-size: 15px;
    letter-spacing: 0.5px;
    margin-top: 12px;
    margin-bottom: 12px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Effects */
.glass-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-card:hover {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 20px 35px -10px rgba(220, 38, 38, 0.25);
}

.view-pane {
    transition: opacity 280ms cubic-bezier(0.16, 1, 0.3, 1), transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
