/* Pengaturan Dasar */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: 'Poppins', sans-serif;
            background-color: #121212;
            color: #FFFFFF;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }
        a {
            text-decoration: none;
            color: inherit;
            transition: color 0.3s ease;
        }
        p {
            color:#000
        }
        ul {
            list-style: none;
        }
        img {
            max-width: 100%;
            display: block;
        }


/* Navbar */
        .main-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 5%;
            position: relative;
            top: 0;
            z-index: 1000;
            background-color: rgba(18, 18, 18, 0.6);
            backdrop-filter: blur(10px);
            height: 70px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
        }
        .logo-container {
            display: flex;
            align-items: center;
            gap: 12px; /* Jarak antara logo dan teks */
        }
        .logo-img {
            height: 40px; /* Sesuaikan tinggi logo */
            width: auto;
        }
        .logo {
            font-size: 1.5rem;
            font-weight: 300;
        }

        .logo strong {
            font-weight: 700;
        }

        .main-nav ul {
            display: flex;
            row-gap: 0.5rem;
            column-gap: 2.5rem;
        }

        .main-nav a {
            font-weight: 400;
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            padding-bottom: 5px;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .main-nav a i {
            font-size: 0.8em;
            transition: transform 0.3s ease;
        }

        .main-nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background-color: #FFFFFF;
            transition: width 0.3s ease-in-out;
        }

        .btn-dashboard {
            background-color: #282a2d; /* Warna Biru */
            color: white;
            text-decoration: none;
            padding: 8px 15px;
            border-radius: 4px;
            font-size: 14px;
            font-weight: 600;
            transition: background 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px; /* Jarak antara ikon dan teks */
        }

        .btn-dashboard:hover {
            background-color: #d8dadd; /* Warna biru lebih gelap saat di-hover */
            color: #0e0202;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
        }

/* Konten Utama */
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
            font-family: Poppins, sans-serif;
            background-color: #f4f4f4;
        }
        .container {
            display: flex;
            height: 100vh;
        }
        .form-panel {
            flex: 1;
            padding: 25px;
            background: #ffffff;
            box-shadow: 2px 0 5px rgba(0,0,0,0.1);
            overflow-y: auto;
            z-index: 1000;
        }
        .map-panel {
            flex: 3;
        }
        #map {
            width: 100%;
            height: 100%;
        }
        .form-panel h2 {
            margin-top: 0;
            margin-bottom: 20px;
            color: #333;
            border-bottom: 2px solid #2e3237;
            padding-bottom: 10px;
        }
        .form-panel h3 {
            margin-top: 0;
            margin-bottom: 10px;
            font-size: 23px;
            color: #555252;
            border-bottom: 2px solid #909499;
            padding-bottom: 5px;
        }
        .form-group {
            margin-bottom: 15px;
        }
        .form-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
            color: #555;
        }
        .form-group input, .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 5px;
            box-sizing: border-box; /* Penting */
            transition: border-color 0.3s;
        }
        .form-group input:focus, .form-group textarea:focus {
            border-color: #007bff;
            outline: none;
        }
        .form-group .coord-note {
            font-size: 0.8em;
            color: #666;
            margin-top: 5px;
        }
        button {
            width: 100%;
            padding: 12px;
            background-color: #282d32;
            color: white;
            border: none;
            border-radius: 5px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            transition: background-color 0.3s;
        }
        button:hover {
            background-color: #02101e;
        }
        /* Pop Up */
        .leaflet-popup-content-wrapper {
            border-radius: 8px;
        }
        .leaflet-popup-content {
            margin: 15px;
        }
        .popup-title {
            font-weight: bold;
            font-size: 1.1em;
            margin-bottom: 5px;
        }
        
        .popup-info {
            line-height: 1.6;
        }
    
    
       /*-- Confirmation */
        .container {
            position: relative;
        }
        
        .konfirmasi {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: none; /* Hidden by default */
            justify-content: center;
            align-items: center;
            display: flex;
        }
        
        .alert_box {
            background: white;
            padding: 20px;
            border-radius: 8px;
            width: 300px;
            text-align: center;
        }
        
        .icon {
            font-size: 50px;
            color: red;
        }
        
        .isi {
            margin: 20px 0;
            color: #000;
        }
        
        .btns button {
            background-color: #4CAF50;
            color: white;
            padding: 10px;
            margin: 5px;
            cursor: pointer;
            border-radius: 4px;
        }
        
        #cancel {
            background-color: #f44336;
        }
        
        /*Alert*/
        #check:checked + .show_button + .background {
            display: flex;
        }
        
        /* Bagian Dashboard*/
        .dashboard-container {
            display: flex;
            height: calc(100vh - 60px);
        }

        .map-section {
            flex: 3;
            position: relative;
            border-right: 2px solid #ddd;
        }
        #map { width: 100%; height: 100%; }

        /*Sidebar*/
        .sidebar-section {
            flex: 1;
            display: flex;
            flex-direction: column;
            background: #fff;
            min-width: 300px; 
        }
        .stats-panel {
            padding: 20px;
            background: #f8f9fa;
            border-bottom: 1px solid #dee2e6;
            flex-shrink: 0; 
        }
        .stats-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 15px;
        }
        .stat-card {
            background: white;
            padding: 15px;
            border-radius: 8px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            text-align: center;
            border-left: 5px solid #007bff;
        }
        .stat-card.orange { border-left-color: #fd7e14; }
        
        .stat-number { font-size: 2.5rem; font-weight: 700; color: #333; line-height: 1; display: block; margin-bottom: 5px; }
        .stat-label { font-size: 0.85rem; color: #666; text-transform: uppercase; letter-spacing: 0.5px; }

        .info-panel {
            flex-grow: 1; 
            padding: 20px;
            overflow-y: auto; 
        }
        
        .info-title { font-size: 18px; font-weight: 700; color: #343a40; margin-bottom: 15px; border-bottom: 2px solid #eee; padding-bottom: 10px; }
        
        /* Atribut */
        .attr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
        .attr-table td { padding: 8px 0; border-bottom: 1px solid #f1f1f1; vertical-align: top; }
        .attr-table td:first-child { font-weight: 600; color: #555; width: 40%; }
        .attr-table td:last-child { color: #333; }
        
        .empty-state { text-align: center; color: #999; margin-top: 50px; }
        .empty-state i { font-size: 40px; margin-bottom: 10px; color: #dee2e6; }
        
        
        /*Responsive*/
        @media screen and (max-width: 768px) {
        /*Reset Container*/
        .container {
            flex-direction: column-reverse;
            height: auto;
            overflow: visible;
        }
    
        .map-panel {
            width: 100%;
            height: 40vh;
            flex: none;
            z-index: 1;
        }
    
        .form-panel {
            width: 100%;
            height: auto;
            flex: none;
            overflow-y: visible; 
            padding-bottom: 50px;
            min-width: 0; 
        }
    
        .main-header {
            padding: 10px;
            flex-direction: column; 
            height: auto;
            gap: 10px;
            text-align: center;
        }
        
        .logo { font-size: 1rem; }
        .form-panel h2 { font-size: 1.2rem; }
        
        .dashboard-container {
                flex-direction: column; 
                height: auto;
        }
        
        .map-section {
                width: 100%;
                height: 40vh; 
                flex: none;
                order: 1; /* Pastikan urutan 1 */
        }
        .sidebar-section {
                width: 100%;
                flex: none;
                height: auto;
                box-shadow: none;
                order: 2; /* Pastikan urutan 2 */
            }

            /* 5. Panel Info tidak perlu scroll internal, ikut scroll body */
            .info-panel {
                overflow-y: visible;
                height: auto;
            }
            
            /* Penyesuaian Font di Mobile */
            .stat-number { font-size: 2rem; }
            .info-title { font-size: 1.1rem; }
    }
    
/*Lokasi Button*/
.locate-btn {
            position: absolute;
            top: 60px; 
            right: 10px; 
            z-index: 1000;
            background: white;
            color: #333;
            padding: 10px 15px;
            border: 2px solid rgba(0,0,0,0.2);
            border-radius: 4px;
            cursor: pointer;
            font-family: 'Poppins', sans-serif;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: all 0.3s;
            display: flex;
            align-items: center;
            gap: 8px;
            width: auto;
            margin-bottom: 0;
        }
        .locate-btn:hover {
            background: #f4f4f4;
            transform: translateY(-2px);
        }
        .locate-btn i {
            color: #007bff;
        }

        /* Penyesuaian Mobile */
        @media screen and (max-width: 768px) {
            .locate-btn {
                top: 60px;
                right: 10px;
                padding: 10px 15px;
                font-size: 12px;
            }
        }