
/* FONT - Optional: Agar tampilan lebih modern */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f7f6; /* Latar belakang body agar lebih lembut */
}

/* Custom Gradient Colors (Berdasarkan permintaan kamu, Bro) */
.hero-section {
    background: linear-gradient(135deg, #f106ed7e, #0f91b8fc);
    color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}
.sub-section {
    background: linear-gradient(135deg, #0f91b888, #b107aec7);
    color: white;
}

/* --- LAYOUT UTAMA --- */

/* SIDEBAR (Fixed & Modern) */
.w3-sidebar {
    width: 280px; /* Lebar sidebar */
    z-index: 3;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100vh; /* PENTING: Membuat sidebar setinggi viewport */
    overflow-y: auto; /* Memungkinkan scrolling jika menu banyak */
}
.w3-sidebar a {
    padding: 12px 16px;
    border-radius: 4px;
    margin: 4px 8px;
    font-weight: 500;
}
.w3-sidebar a i {
    width: 30px;
}
.w3-sidebar a:hover {
    background-color: rgba(255, 255, 255, 0.1); /* Hover transparan */
}
.sidebar-header {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* MAIN CONTENT AREA */
#main {
    transition: margin-left .5s;
    margin-left: 0; /* SET DEFAULT KE 0 */
    padding: 20px;
    min-height: 100vh;
}

/* DESKTOP VIEW (Lebar >= 993px) */
@media (min-width: 993px) {
    /* Margin hanya aktif jika sidebar terlihat */
    .sidebar-visible #main {
        margin-left: 280px; 
    }
}

@media (max-width: 992px) {
    /* Sidebar default HIDDEN di mobile */
    .w3-sidebar {
        display: none;
        transform: translateX(-100%);
    }
    
    /* Sidebar ketika aktif (dibuka) */
    .w3-sidebar.w3-show {
        display: block;
        transform: translateX(0);
    }
    
    /* Overlay */
    .w3-overlay {
        display: none;
    }
    .w3-overlay.w3-show {
        display: block;
    }
    
    /* Tambahkan padding di atas konten agar tidak tertutup top bar */
    .sidebar-visible #main {
        padding-top: 60px;
    }
}


/* CUSTOM UTILITIES untuk Konten HTML (sesuai permintaan) */
.card-content {
    background-color: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Styling Logout Button (Perbaikan posisi) */
.logout-container {
    position: sticky; /* PENTING: Membuat container logout sticky */
    bottom: 0;
    background-color: #0f91b8fc; /* Warna latar belakang sama dengan sub-section */
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    z-index: 10;
}
.logout-button {
    margin-bottom: 10px;
    padding: 12px 16px !important;
    color: #ffcdd2; /* Warna teks yang lebih lembut agar kontras dengan latar belakang */
}
.logout-button:hover {
    background-color: rgba(255, 82, 82, 0.1);
    color: #ff5252;
}
