/* =================================================_
   MASTER STYLESHEET - KENDALI SPPD DPUTR LANGKAT
   ================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

body {
    background-color: #f4f6f9;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    color: #2d3748;
}

/* --- SIDEBAR FIXED STICKY --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 250px;
    background-color: #343a40;
    color: white;
    z-index: 1000;
    overflow-y: auto;
}
.sidebar a {
    color: #c2c7d0;
    text-decoration: none;
    padding: 12px 20px;
    display: block;
    transition: all 0.2s ease;
}
.sidebar a:hover, .sidebar a.active {
    background-color: #495057;
    color: white;
    border-left: 4px solid #0d6efd;
}
.brand-logo {
    font-size: 1.1rem;
    font-weight: bold;
    padding: 20px 15px;
    border-bottom: 1px solid #4b545c;
    text-align: center;
    letter-spacing: 0.5px;
}

/* --- CONTENT AREA --- */
.content-area {
    margin-left: 250px;
    padding: 30px;
    width: calc(100% - 250px);
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- MODERN CARDS & STATS --- */
.card-modern {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    background: #fff;
    overflow: hidden;
    margin-bottom: 30px;
}
.card-stat {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
}
.icon-box {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.icon-shape {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #e0f2fe;
    color: #0284c7;
}

/* --- MODERN TABLES --- */
.table-modern th {
    background-color: #f8f9fa !important;
    color: #495057 !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.8px;
    border-bottom: 2px solid #edf2f7;
    padding: 16px 20px;
}
.table-modern td {
    padding: 16px 20px;
    vertical-align: middle;
    color: #2d3748;
    border-bottom: 1px solid #edf2f7;
    font-size: 0.9rem;
}
.table-modern tbody tr:hover {
    background-color: #f8fafc;
    transition: background 0.2s ease;
}
.table-rincian th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
}
.table-rincian td {
    font-size: 0.9rem;
    vertical-align: middle;
}

/* --- MODALS & BUTTONS --- */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.btn-modern-action {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}
/* Style Tambahan Khusus Card Pagu Anggaran Agar Berkelas */
.card-pagu-modern {
    background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.2);
    color: white;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-pagu-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.3);
}
/* --- MODERN ACTION BUTTONS --- */
.btn-modern {
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 16px;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
}
.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    opacity: 0.95;
}
.btn-modern:active {
    transform: translateY(0);
}
body {
            background-color: #f0f2f5;
            min-height: 100vh;
            display: flex;
            align-items: stretch;
            margin: 0;
            padding: 0;
        }
        .login-wrapper {
            width: 100%;
            display: flex;
            flex-wrap: nowrap;
        }
        /* Sisi Kiri (Form Login Menempel Rapi) */
        .left-sidebar-login {
            width: 380px;
            background: #ffffff;
            box-shadow: 4px 0 25px rgba(0,0,0,0.05);
            padding: 30px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            min-height: 100vh;
            position: fixed;
            top: 0;
            left: 0;
            z-index: 10;
        }
        /* Sisi Kanan (Area Statistik & Grafik Luas) */
        .right-content-stats {
            margin-left: 380px;
            width: calc(100% - 380px);
            padding: 30px;
            background: #f8f9fa;
            min-height: 100vh;
        }
        .card-stat-box {
            border: none;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.03);
            background: #ffffff;
        }
        .header-banner {
            background: #ffffff;
            border-radius: 12px;
            padding: 20px 25px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.03);
            border-left: 5px solid #0d6efd;
            margin-bottom: 25px;
        }
        /* --- PENGATURAN RESPONSIVE MOBILE (SMARTPHONE) --- */

@media (max-width: 991.98px) {
    /* Buat body jadi blok biasa di layar HP */
    body.d-flex {
        flex-direction: column !important;
    }

    /* Sidebar menyesuaikan lebar layar HP (tidak fixed lagi) */
    .sidebar {
        width: 100% !important;
        min-height: auto !important;
        position: relative !important;
        box-shadow: none !important;
    }

    /* Area konten utama mengambil lebar penuh layar HP */
    .content-area {
        margin-left: 0 !important;
        width: 100% !important;
        padding: 15px !important;
    }

    /* Penyesuaian ukuran kartu statistik agar pas di layar kecil */
    .card-stat h4, .card-stat h5 {
        font-size: 1.2rem !important;
    }
}
/* --- Penyesuaian Tampilan Select2 dengan Bootstrap 5 --- */
.select2-container .select2-selection--single {
    height: 38px !important;
    padding-top: 4px;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.375rem !important;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
    top: 5px !important;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #495057 !important;
    font-size: 0.875em; /* Biar ukurannya pas sama input-sm / form-control */
}
.select2-container--default .select2-selection--single:focus {
    border-color: #86b7fe !important;
    outline: 0 !important;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25) !important;
}
        