/* 
 * MODERN THEME V2 - Biru Teknologi
 * Fresh & Clean Design
 */

:root {
    --primary: #0077B6;
    --primary-dark: #023E8A;
    --primary-light: #0096C7;
    --dark-blue: #03045E;
    --bg-body: #F8FAFC;
    --card-bg: #ffffff;
    --text-muted: #64748B;
    --text-color: #0F172A;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-color);
}

.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
}

/* SIDEBAR STYLES */
#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--primary-dark) 100%);
    color: #fff;
    transition: all 0.3s;
    min-height: 100vh;
    box-shadow: 4px 0 15px rgba(3, 4, 94, 0.15);
}

#sidebar.active {
    margin-left: -260px;
}

#sidebar .sidebar-header {
    padding: 30px 20px;
    background: rgba(0,0,0,0.15);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#sidebar .sidebar-header h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul li a {
    padding: 14px 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.25s ease;
    margin: 0 10px;
    border-radius: 12px;
}

#sidebar ul li a i {
    width: 26px;
    text-align: center;
    font-size: 1.1rem;
    margin-right: 12px;
}

#sidebar ul li a:hover, #sidebar ul li.active > a {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

/* MAIN CONTENT AREA */
#content {
    width: 100%;
    padding: 24px;
    min-height: 100vh;
    transition: all 0.3s;
}

/* NAVBAR STYLES */
#content .navbar {
    background: var(--card-bg) !important;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    padding: 14px 24px;
    margin-bottom: 24px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 119, 182, 0.35);
    padding: 8px 20px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 119, 182, 0.45);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* CARDS STYLES */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    background: var(--card-bg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 1.25rem 1.5rem;
}

/* TABLES */
.table {
    color: var(--text-color);
}
.table thead th {
    border-bottom: 2px solid #f1f5f9;
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* KPI/STATISTICS CARDS */
.stat-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    color: white;
    transition: all 0.3s;
}
.stat-card h6 {
    font-size: 0.85rem;
    font-weight: 500;
    opacity: 0.9;
}
.stat-card h2 {
    font-size: 2.25rem;
    font-weight: 800;
}

/* BADGES */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
        position: fixed; /* Jadikan melayang/ngambang di HP */
        z-index: 9999;
    }
    #sidebar.active {
        margin-left: 0;
    }
    
    #content {
        width: 100%;
        padding: 15px; /* Kurangi jarak aman di HP */
    }
    
    /* Tabel scroll menyamping di HP */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Penyesuaian besar kartu statistik di hp */
    .stat-card {
        padding: 15px;
    }
    .stat-card h2 {
        font-size: 1.8rem;
    }
}