/* admin/assets/css/admin-layout.css */
:root {
    --primary: #4A8BDF; /* <- Biru tua */
    --secondary: #7aa9e9; /* <- Turunan biru (lebih terang) */
    --accent: #A0006D; /* <- Terong */
    --dark: #2c5b9c; /* <- Turunan biru (lebih gelap untuk gradien) */
    --sidebar-width: 260px;
    --topbar-height: 70px;
}

body {
    background-color: #EFFAFD; /* <- Biru pucat */
    color: #333;
    overflow-x: hidden;
}

#wrapper {
    display: flex;
    transition: all 0.3s ease-in-out;
}


/* Stats Cards */
/* Biarkan warna-warni agar statistik menonjol */
.stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    transition: all 0.3s;
    border: none;
    position: relative;
    overflow: hidden;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(74, 139, 223, 0.12); /* Bayangan disesuaikan */
}

.stats-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-icon {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.stats-info h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.stats-info p {
    margin: 0.5rem 0 0;
    color: #6c757d;
    font-size: 0.9rem;
}

/* General Content Card */
.content-card {
    background: white;
    border-radius: 15px;
    padding: 1.8rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.06);
    margin-bottom: 2rem;
    height: 100%;
}

.card-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.card-header-custom h5 {
    margin: 0;
    color: var(--primary); /* <- Terapkan warna primer */
    font-weight: 700;
    font-size: 1.2rem;
}


/* --- Sidebar --- */
#sidebar-wrapper {
    width: var(--sidebar-width);
    min-height: 100vh;
    /* Gradien baru dari Biru tua ke Biru lebih gelap */
    background: linear-gradient(180deg, var(--primary) 0%, var(--dark) 100%);
    color: white;
    transition: margin-left 0.3s ease-in-out;
    margin-left: 0;
    overflow-y: auto;
}

#sidebar-wrapper::-webkit-scrollbar { 
    display: none; 
}

.sidebar-heading {
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0,0,0,0.2);
}

.sidebar-heading h5 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.list-group-flush .list-group-item {
    padding: 0.6rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
    border-left: 4px solid transparent;
    margin: 0.2rem 0;
    background-color: transparent;
    border-radius: 0;
    border: none;
}

.list-group-flush .list-group-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left-color: var(--accent); /* <- Terapkan warna aksen */
}

.list-group-flush .list-group-item.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-left-color: var(--accent); /* <- Terapkan warna aksen */
    font-weight: 600;
}

.list-group-flush .list-group-item i {
    width: 25px;
    margin-right: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.list-group-flush .list-group-item.text-danger:hover {
    background: rgba(231,76,60,0.2);
    border-left-color: #e74c3c;
}

.menu-section-title {
    padding: 1rem 1.5rem 0.5rem;
    color: rgba(255,255,255,0.5);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    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: white;
    border-bottom: 1px solid #dee2e6;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-left h4 {
    margin: 0;
    color: var(--primary); /* <- Terapkan warna primer */
    font-weight: 700;
    font-size: 1.5rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary); /* <- Terapkan warna primer */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
}

/* --- 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;
    }
}