:root {
            --primary-bg: #f0f2f5; /* Latar belakang utama (lebih terang) */
            --secondary-bg: #ffffff; /* Latar belakang elemen (putih) */
            --sidebar-bg: #1e3a8a; /* Warna sidebar (biru tua) */
            --card-bg: #ffffff; /* Warna card (putih) */
            --text-color: #333333; /* Warna teks gelap */
            --light-text-color: #667085; /* Warna teks lebih terang */
            --accent-blue: #2563eb; /* Warna aksen biru */
            --accent-green: #00b965; /* Warna aksen hijau */
            --accent-orange: #f59e0b; /* Warna aksen oranye */
        }

        body {
            font-family: 'Inter', sans-serif;
            background-color: var(--primary-bg);
            color: var(--text-color);
            margin: 0;
            display: flex;
            flex-direction: column; /* Mengubah body menjadi flex column */
            min-height: 100vh;
        }

        /* Sidebar */
        .sidebar {
            width: 260px;
            background-color: var(--sidebar-bg);
            flex-shrink: 0;
            padding: 24px 16px;
            box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease-in-out;
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            z-index: 1050;
            transform: translateX(0);
        }
        
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
            }
            .sidebar.show {
                transform: translateX(0);
            }
        }

        .sidebar .logo-container { /* Kontainer baru untuk logo */
            text-align: center;
            padding: 10px 0;
            margin-bottom: 20px;
            background-color: transparent;
        }

        .sidebar .logo-container img {
            max-width: 100px;
            margin-bottom: 8px;
            filter: invert(0);
        }
        
        .sidebar .logo-text {
            color: white;
            font-weight: 600;
            font-size: 1.1rem;
        }

        .sidebar .nav-link {
            padding: 14px 16px;
            display: flex;
            align-items: center;
            font-size: 15px;
            color: #d1d5db;
            border-radius: 12px;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .sidebar .nav-link:hover, .sidebar .nav-link.active {
            background-color: #2e59a8;
            color: #ffffff;
            transform: translateX(5px);
            box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
        }

        .sidebar .nav-link i {
            font-size: 1.25rem;
            margin-right: 12px;
        }

        .sidebar .accordion-button {
            background-color: var(--sidebar-bg);
            color: #d1d5db;
            border-radius: 12px;
            transition: all 0.3s ease;
            box-shadow: none;
            text-decoration: none;
        }
        
        .sidebar .accordion-button:not(.collapsed) {
            color: #ffffff;
            background-color: #2e59a8;
        }

        .sidebar .accordion-button:hover {
            background-color: #2e59a8;
            color: #ffffff;
        }

        .sidebar .accordion-item {
            background-color: transparent;
            border: none;
        }

        .sidebar .accordion-collapse {
            background-color: transparent !important;
            border: none !important;
        }

        .sidebar .accordion-body {
            padding: 0 0 0 20px;
        }
        
        .sidebar .accordion-body .nav-link {
            padding: 10px 16px;
            background-color: #3b5078;
            border-radius: 10px;
            margin-bottom: 8px;
        }
        
        /* Main Content Wrapper */
        .content-wrapper {
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            margin-left: 260px;
            transition: margin-left 0.3s ease-in-out;
        }

        @media (max-width: 768px) {
            .content-wrapper {
                margin-left: 0;
            }
        }
        
        #overlay {
            position: fixed;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 1040;
            display: none;
        }

        .navbar-top {
            background-color: var(--secondary-bg);
            color: var(--text-color);
            padding: 16px 30px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .navbar-top .btn-outline-secondary {
            border-color: #d1d5db;
            color: #6b7280;
        }

        .navbar-top .btn-outline-secondary:hover {
            background-color: var(--accent-blue);
            color: #fff;
            border-color: var(--accent-blue);
        }

        .user-info .dropdown-toggle {
            color: var(--text-color) !important;
        }
        
        .user-info .dropdown-menu {
            background-color: var(--secondary-bg);
            border: 1px solid #e5e7eb;
        }
        
        .user-info .dropdown-item {
            color: var(--text-color);
            background-color: transparent;
        }
        
        .user-info .dropdown-item:hover {
            background-color: var(--primary-bg);
        }

        .container-fluid.main-content-body {
            padding: 30px;
            flex-grow: 1;
        }

        .card {
            background-color: var(--card-bg);
            border: none;
            border-radius: 1.25rem;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
            padding: 24px;
        }
        
        /* CSS Kustom untuk Efek Gradasi (tetap dipertahankan) */
        .summary-card {
            background: linear-gradient(135deg, var(--start-color), var(--end-color));
            color: #fff;
            padding: 24px;
            border-radius: 1rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        .summary-card::before {
            content: '';
            position: absolute;
            top: -50px;
            right: -50px;
            width: 120px;
            height: 120px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
        }

        .summary-card h4 {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.8);
            margin-bottom: 8px;
        }

        .summary-card .value {
            font-size: 2.5rem;
            font-weight: 600;
            line-height: 1.2;
            color: #fff;
        }

        .summary-card .details {
            font-size: 14px;
            color: rgba(255, 255, 255, 0.9);
            margin-top: 4px;
        }

        .badge-realization {
            background-color: rgba(255, 255, 255, 0.2);
            color: #fff;
            padding: 4px 10px;
            border-radius: 20px;
            font-weight: 500;
        }

        footer {
            background: var(--secondary-bg);
            color: var(--light-text-color);
            padding: 16px 30px;
            text-align: center;
            font-size: 14px;
            width: 100%;
            margin-top: auto;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.03);
        }

        /* Chart & Map CSS (tetap dipertahankan) */
        #map-container { height: 500px; }
        .legend { background: white; padding: 8px; font-size: 13px; line-height: 18px; border-radius: 5px; box-shadow: 0 0 5px rgba(0,0,0,0.3); }
        .legend i { width: 18px; height: 18px; float: left; margin-right: 8px; opacity: 0.7; }
        .cctv-wrapper {
        position: relative;
        }

        .cctv-label {
        position: absolute;
        top: -30px;
        right: 0px;
        background: var(--accent-blue); 
        color: #f7f3f3;
        font-size: 1 rem;
        font-weight: 600;
        text-transform: lowercase;
        padding: 2px 8px;
        border-radius: 6px;
        z-index: 10; /* penting supaya muncul di atas video */
        }

        .cctv-thumbnail {
        width: 100%;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        }

        .cctv-thumbnail i {
        font-size: 3rem;
        color: rgba(0,0,0,0.5);
        transition: 0.3s;
        }

        .cctv-thumbnail:hover i {
        color: rgba(0,0,0,0.8);
        }

        .gallery-grid {
        display: grid;
        grid-template-areas: 
            "g1 g2 g3 v1"
            "g4 g5 g5 v1";
        grid-template-columns: 1fr 1fr 1fr 1.2fr;
        grid-template-rows: 180px 180px;
        gap: 10px;
        }
        .gallery-item {
        object-fit: cover;
        width: 100%;
        height: 100%;
        cursor: pointer;
        }
        .video-wrapper {
        position: relative;
        background: #000;
        }
        .video-wrapper video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        }
        .play-overlay {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 48px;
        color: white;
        opacity: 0.8;
        }


        /* Kolom aksi */
#schoolsTable td .btn {
    padding: 4px 6px;       /* perkecil tombol */
    font-size: 0.75rem;     /* perkecil icon/text */
    line-height: 1;
    border-radius: 6px;     /* lebih modern */
    margin: 0 2px;          /* kasih jarak antar tombol */
    width: 28px;            /* tombol bulat kecil */
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Supaya kolom aksi tidak terlalu sempit */
#schoolsTable th:last-child,
#schoolsTable td:last-child {
    min-width: 110px;
    text-align: center;
}

        /* Datatables Custom Styling */
.dataTables_wrapper .dataTables_filter input {
    border-radius: 20px;
    padding: 8px 15px;
    border: 1px solid #ddd;
    margin-left: 10px;
    box-shadow: none;
}
.dataTables_wrapper .dataTables_length select {
    border-radius: 10px;
    padding: 5px 20px;
}
.table thead {
    background: linear-gradient(45deg, #3b82f6, #2563eb);
    color: #fff;
}
.table-hover tbody tr:hover {
    background-color: #f0f7ff;
}
/* Responsif untuk layar HP */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_length,
    .dataTables_wrapper .dataTables_filter {
        flex-direction: column;  /* jadi vertikal */
        align-items: flex-start; /* rata kiri */
        width: 100%;
    }

    .dataTables_wrapper .dataTables_filter input {
        width: 100%;   /* full width di HP */
        margin-left: 0;
        margin-top: 5px;
    }

    .dataTables_wrapper .dataTables_length select {
        width: 100%;   /* dropdown ikut full */
        margin-bottom: 5px;
    }
}   
