/* admin/assets/css/admin-layout.css */
/* TEMA: MODERN TEAL & GOLD */
/*
:root {
    
    --primary: #334155;   
    --secondary: #64748b; 
    --accent: #f97316;    
    --dark: #0f172a;      
    --sidebar-width: 260px;
    --topbar-height: 70px;
}

body {
    background-color: #fff7ed; 
    color: #1e293b; 
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}
*/


:root {
    --primary: #3497bf;
    --secondary: #c8d8de;
    --accent: #f97316; /*#5c0833; terong ungu*/
    --dark: #063f59;
    --sidebar-width: 260px;
    --topbar-height: 70px;
}

body {
    background-color: #e6f1fa;
    color: #333;
    overflow-x: hidden;
}



#wrapper {
    display: flex;
    transition: all 0.3s ease-in-out;
}

/* --- Stats Cards --- */
.stats-card {
    background: white;
    border-radius: 16px; /* Radius sedikit diperbesar */
    padding: 1.8rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Shadow modern tipis */
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.02); /* Border tipis halus */
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-5px);
    /* Shadow glow warna teal saat dihover */
    box-shadow: 0 10px 25px -5px rgba(15, 118, 110, 0.15), 0 8px 10px -6px #f97316;
}

.stats-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    /* Memberikan latar belakang tipis pada icon agar kontras */
    background: rgba(15, 118, 110, 0.1); 
    color: var(--primary);
}

.stats-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
    color: var(--dark);
}

.stats-info p {
    margin: 0.5rem 0 0;
    color: #64748b; /* Slate color */
    font-size: 0.9rem;
    font-weight: 500;
}

/* --- General Content Card --- */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    height: 100%;
    border: 1px solid rgba(0,0,0,0.02);
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e2e8f0; /* Garis putus-putus lebih stylish */
}

.card-header-custom h5 {
    margin: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

/* --- Sidebar --- */
#sidebar-wrapper {
    width: var(--sidebar-width);
    min-height: 100vh;
    /* Gradien Teal Mewah */
    background: linear-gradient(160deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    transition: margin-left 0.3s ease-in-out;
    margin-left: 0;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.05);
}

#sidebar-wrapper::-webkit-scrollbar { 
    display: none; 
}

.sidebar-heading {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0,0,0,0.1);
}

.sidebar-heading h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.list-group-flush .list-group-item {
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    border-left: 4px solid transparent;
    margin: 0.25rem 0.5rem; /* Memberi sedikit jarak kiri kanan */
    background-color: transparent;
    border-radius: 8px; /* Membuat item menu sedikit melengkung */
    border: none;
    font-size: 0.95rem;
}

.list-group-flush .list-group-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    /* Menghilangkan border kiri lama, ganti dengan background hover */
    transform: translateX(3px); 
}

.list-group-flush .list-group-item.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-weight: 600;
    /* Menambahkan indikator aksen kuning emas */
    border-left: 4px solid var(--accent);
    border-radius: 4px 8px 8px 4px; /* Radius unik */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.list-group-flush .list-group-item i {
    width: 25px;
    margin-right: 1rem;
    text-align: center;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Tombol Logout Merah */
.list-group-flush .list-group-item.text-danger {
    color: #fca5a5 !important; /* Merah muda terang agar terbaca di background gelap */
}

.list-group-flush .list-group-item.text-danger:hover {
    background: rgba(220, 38, 38, 0.2);
    color: #fff !important;
}

.menu-section-title {
    padding: 1.2rem 1.5rem 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* --- Page Content --- */
#page-content-wrapper {
    flex: 1;
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
}

.topbar {
    height: var(--topbar-height);
    background-color: rgba(255, 255, 255, 1.0); /* Glassmorphism effect tipis */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e2e8f0;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 99;
}

.topbar-left h4 {
    margin: 0;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.user-avatar {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--primary), var(--secondary)); /* Avatar gradient */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(15, 118, 110, 0.3);
    font-size: 1rem;
    border: 2px solid white;
}

/* --- Toggled State (Sidebar Hidden) --- */
#wrapper.toggled #sidebar-wrapper {
    margin-left: calc(-1 * var(--sidebar-width));
}

#wrapper.toggled #page-content-wrapper {
    width: 100%;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    #sidebar-wrapper {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    #page-content-wrapper {
        width: 100%;
    }
    #wrapper.toggled #sidebar-wrapper {
        margin-left: 0;
    }
}

