:root {
    --bgn-blue-dark: #0d47a1;
    --bgn-green: #92d05d;
    --bgn-blue-light: #b5e0ea;
    --bgn-gold: #d1b06c;
}

body {
    background-color: #f4f7f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* SIDEBAR DESKTOP */
.sidebar {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--bgn-blue-dark);
    color: white;
    padding: 20px;
    overflow-y: auto;
    transition: all 0.3s ease;
    z-index: 1050;
}

.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.sidebar .brand img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 3px;
}

.sidebar .brand-title {
    font-weight: bold;
    font-size: 1rem;
    color: #ffffff;
    line-height: 1.2;
}

.sidebar .brand-sub {
    font-size: 0.75rem;
    color: #90caf9;
}

.sidebar .menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #90caf9;
    margin-bottom: 10px;
    margin-top: 20px;
}

.sidebar .nav-link {
    color: #e3f2fd;
    padding: 10px 15px;
    border-radius: 12px;
    margin-bottom: 5px;
    transition: all 0.2s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.sidebar .nav-link.active {
    background-color: #ffffff;
    color: var(--bgn-blue-dark);
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.main-content {
    margin-left: 260px;
    padding: 30px;
    transition: all 0.3s ease;
}

/* NAVBAR MOBILE KHUSUS (DISEMBUNYIKAN DI DESKTOP) */
.mobile-header {
    display: none;
}

/* RESPONSIF UNTUK HP / MOBILE */
@media (max-width: 768px) {
    .sidebar {
        left: -260px; /* Sembunyikan sidebar di luar layar kiri */
    }
    .sidebar.show {
        left: 0; /* Munculkan saat tombol hamburger diklik */
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
        margin-top: 60px; /* Beri jarak untuk navbar atas */
    }
    .mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background-color: var(--bgn-blue-dark);
        color: white;
        align-items: center;
        justify-content: space-between;
        padding: 0 20px;
        z-index: 1040;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
}

/* --- CSS HALAMAN LOGIN (INDEX.PHP) --- */
.login-body, html {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.login-container {
    min-height: 100vh;
    display: flex;
}

.login-banner {
    background-color: var(--bgn-blue-dark);
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}
.login-banner > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.login-banner img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-banner h1 {
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.login-banner p {
    color: #bbdefb;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    display: inline-block;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #e3f2fd;
    font-size: 0.95rem;
}

.feature-list i {
    color: #69f0ae;
    font-size: 1.2rem;
}

/* Kolom Kanan (Form Login) */
.login-form-section {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-form-wrapper img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: white;
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.login-form-section .form-control {
    padding: 12px 15px 12px 40px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    font-size: 0.95rem;
}

.login-form-section .form-control:focus {
    box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.15);
    border-color: var(--bgn-blue-dark);
}

.input-group-icon {
    position: relative;
}

.input-group-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    z-index: 10;
}

.btn-primary-custom {
    background-color: var(--bgn-blue-dark);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
    transition: background-color 0.2s;
}

.btn-primary-custom:hover {
    background-color: #0b3c91;
}

/* Responsif untuk HP */
@media (max-width: 992px) {
    .login-banner {
        display: none;
    }
    .login-form-section {
        padding: 20px;
    }
}