/* ============================================================
   1. STRUKTUR UTAMA (DESKTOP & GENERAL)
   ============================================================ */
#wrapper { display: flex; width: 100%; align-items: stretch; }

#sidebar {
    min-width: 250px;
    max-width: 250px;
    background: #4e73df;
    color: #fff;
    min-height: 100vh;
    transition: all 0.3s;
}

#sidebar.active { margin-left: -250px; }

#sidebar .sidebar-header { padding: 20px; background: #375ada; }

#sidebar ul li a {
    padding: 15px 20px;
    display: block;
    color: #fff;
    text-decoration: none;
}

#sidebar ul li a:hover { background: #375ada; }

#content { width: 100%; }

#sidebarCollapse {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}

/* ============================================================
   2. HALAMAN LOGIN (GUEST) - VERSI MODERN & CENTERED
   ============================================================ */
.login-page {
    background: linear-gradient(180deg, #4e73df 0%, #224abe 100%); /* Warna Biru Bimba */
    min-height: 100vh;
    display: flex;
    align-items: center; /* Tengah Vertikal */
    justify-content: center; /* Tengah Horizontal */
    padding: 20px;
}

.login-card {
    border: none;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    transition: transform 0.3s ease;
}

.login-input {
    border-radius: 12px !important;
    padding: 12px 18px !important;
    border: 1px solid #dbe3eb !important;
    background-color: #f8fafc !important;
}

.login-input:focus {
    box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.15) !important;
    border-color: #4e73df !important;
    background-color: #fff !important;
}

.btn-login {
    background: linear-gradient(to right, #4e73df, #224abe);
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(78, 115, 223, 0.4);
    color: white;
}

.icon-circle {
    width: 70px; height: 70px;
    background: rgba(78, 115, 223, 0.1);
    color: #4e73df;
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
}

/* ============================================================
   3. RESPONSIVE MOBILE (SMARTPHONE)
   ============================================================ */
.bottom-nav {
    display: none; position: fixed; bottom: 0; width: 100%;
    background: #fff; box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 1000; justify-content: space-around; padding: 10px 0;
}

/* Update di style.css */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -250px;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1050;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        transition: all 0.3s;
    }

    #sidebar.active {
        margin-left: 0;
    }

    /* Overlay default: sembunyi */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1040; /* Tepat di bawah sidebar */
        transition: opacity 0.3s ease;
    }

    /* Munculkan overlay jika sidebar aktif */
    #sidebar.active + #content + .overlay {
        display: block;
    }
}
