
        :root {
            --primary: #0d47a1;
            --primary-light: #1565c0;
            --primary-light2: #1584c0;
            --primary-dark: #082577;
            --secondary: #00897b;
            --accent: #ff6f00;
            --success: #2e7d32;
            --warning: #f57c00;
            --danger: #c62828;
            --info: #0277bd;
            
            --bg-primary: #f5f7fa;
            --bg-secondary: #ffffff;
            --text-primary: #1a1a1a;
            --text-secondary: #666666;
            --border-color: #e8ecf1;
            
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
            --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.16);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(180deg, #0d47a1 0%, #1565c0 50%);
            background-attachment: fixed;
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
        }

        /* ========== HEADER ========== */
        .main-header {
            height: 90px;
            padding: 0 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
            color: white;
            position: sticky;
            top: 0;
            z-index: 9999;
            box-shadow: var(--shadow-md);
            animation: slideDown 0.4s ease-out;
        }
.leaflet-control-container {
    position: static !important;
}
        @keyframes slideDown {
            from {
                opacity: 0;
                transform: translateY(-20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 20px;
            animation: fadeInLeft 0.6s ease-out;
        }

        @keyframes fadeInLeft {
            from {
                opacity: 0;
                transform: translateX(-30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .logo-box {
            width: 60px;
            height: 60px;
            background: transparent;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: none;
            transition: transform 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .logo-box:hover {
            transform: translateY(-4px);
        }

        .logo-box img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: center;
        }

        .logo-shape {
            display: none;
        }

        .title {
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .main-title {
            font-size: 24px;
            font-weight: 700;
            letter-spacing: -0.5px;
            line-height: 1;
        }

        .sub-title {
            font-size: 12px;
            font-weight: 400;
            opacity: 0.9;
            letter-spacing: 0.8px;
            text-transform: uppercase;
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 15px;
            animation: fadeInRight 0.6s ease-out;
        }

        @keyframes fadeInRight {
            from {
                opacity: 0;
                transform: translateX(30px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .time-box {
            background: rgba(255, 255, 255, 0.12);
            padding: 12px 18px;
            border-radius: 12px;
            text-align: right;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        .time-box:hover {
            background: rgba(255, 255, 255, 0.18);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .time {
            font-weight: 600;
            font-size: 14px;
            font-family: 'DM Mono', monospace;
            letter-spacing: 0.5px;
        }

        .date {
            font-size: 11px;
            opacity: 0.85;
            margin-top: 4px;
            font-weight: 500;
        }

        .home-btn {
            width: 44px;
            height: 44px;
            background: rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
            font-size: 20px;
        }

        .home-btn:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }

        /* Hide header-right on mobile */
        .header-right-desktop {
            display: flex;
        }

        .header-right-mobile {
            display: none;
        }

        

        /* ========== MAP CONTAINER ========== */
        .map-container {
            height: 85vh;
            padding: 20px;
            animation: fadeIn 0.8s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        #map {
            width: 100%;
            height: 100%;
            border-radius: 20px;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border-color);
            overflow: hidden;
        }

        .leaflet-control-attribution {
    font-size: 10px;
    opacity: 0.7;
}

        /* ========== TABLE CONTAINER ========== */
        .table-container {
            padding: 20px;
            animation: slideUp 0.6s ease-out;
            max-width: 1450px;  /* atur sesuai kebutuhan */
            margin: 0px auto;  /* atas bawah tetap, kiri kanan auto */
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .table-card {
            background: var(--bg-secondary);
            border-radius: 16px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-md);
            transition: all 0.3s ease;
            animation: fadeInUp 0.6s ease-out backwards;
        }

        .table-card:hover {
            box-shadow: var(--shadow-lg);
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .table-card:nth-child(1) { animation-delay: 0.1s; }
        .table-card:nth-child(2) { animation-delay: 0.2s; }
        .table-card:nth-child(3) { animation-delay: 0.3s; }

        /* ========== TABLE HEADER ========== */
        .table-header {
            background: linear-gradient(135deg, var(--primary-light2) 0%, var(--primary-light) 100%);
            color: white;
            padding: 16px 20px;
            font-weight: 600;
            font-size: 14px;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
        }

        .table-header-green {
            background: linear-gradient(135deg, var(--secondary) 0%, #00695c 100%);
            color: white;
            padding: 16px 20px;
            font-weight: 600;
            font-size: 14px;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
        }

        .table-header-orange {
            background: linear-gradient(135deg, var(--warning) 0%, #e65100 100%);
            color: white;
            padding: 16px 20px;
            font-weight: 600;
            font-size: 14px;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            gap: 10px;
            text-transform: uppercase;
        }

        .table-header::before,
        .table-header-green::before,
        .table-header-orange::before {
            content: '';
            display: inline-block;
            width: 4px;
            height: 4px;
            background: currentColor;
            border-radius: 50%;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        /* ========== TABLE ========== */
        .table-responsive {
            overflow: hidden;
        }

        .table-responsive-scroll {
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .table-responsive-scroll::-webkit-scrollbar {
            height: 6px;
        }

        .table-responsive-scroll::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 10px;
        }

        .table-responsive-scroll::-webkit-scrollbar-thumb {
            background: #d0d9e6;
            border-radius: 10px;
        }

        .table-responsive-scroll::-webkit-scrollbar-thumb:hover {
            background: #888;
        }

        .custom-table {
            margin-bottom: 0;
            
        }

        .custom-table thead {
            background: #f8fafb;
            border-bottom: 2px solid var(--border-color);
        }

        .custom-table thead th {
            padding: 14px 12px;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-secondary);
            text-transform: uppercase;
            letter-spacing: 0.4px;
            white-space: nowrap;
            border: none;
            vertical-align: middle;
        }

        .custom-table tbody td {
            padding: 14px 12px;
            font-size: 13px;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-color);
            vertical-align: middle;
        }

        .custom-table tbody tr {
            transition: all 0.2s ease;
        }

        .custom-table tbody tr:hover {
            background: #f8fafb;
        }

        .custom-table tbody tr:last-child td {
            border-bottom: none;
        }

        /* ========== TABLE DATA ========== */
        .link-pos {
            color: var(--primary);
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
            position: relative;
        }

        .link-pos::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .link-pos:hover::after {
            width: 100%;
        }

        .badge-logger {
            display: inline-block;
            padding: 5px 10px;
            border: 1.5px solid var(--primary);
            color: var(--primary);
            font-size: 11px;
            font-weight: 600;
            border-radius: 8px;
            font-family: 'DM Mono', monospace;
            letter-spacing: 0.3px;
            background: rgba(13, 71, 161, 0.05);
            transition: all 0.2s ease;
        }

        .badge-logger:hover {
            background: var(--primary);
            color: white;
        }

        /* ========== INTENSITAS WARNA ========== */
        .intensitas-none {
            color: #999;
            font-style: italic;
            font-size: 12px;
        }

        .bg-biru {
            background: linear-gradient(135deg, #64b5f6 0%, #42a5f5 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
        }

        .bg-green {
            background: linear-gradient(135deg, #3bae5e 0%, #44b98e 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(66, 165, 245, 0.3);
        }

        .bg-yellow {
            background: linear-gradient(135deg, #ffb74d 0%, #ffa726 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(255, 167, 38, 0.3);
        }

        .bg-orange {
            background: linear-gradient(135deg, #ff7043 0%, #ff5722 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
        }

        .bg-red {
            background: linear-gradient(135deg, #ff4343 0%, #b94444 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(255, 87, 34, 0.3);
        }


        .bg-merah {
            background: linear-gradient(135deg, #ef5350 0%, #e53935 100%);
            color: white;
            font-weight: 600;
            border-radius: 8px;
            padding: 6px 10px;
            display: inline-block;
            box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
        }

        /* ========== TABLE FOOTER ========== */
        .table-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 20px;
            background: #f8fafb;
            border-top: 1px solid var(--border-color);
            flex-wrap: wrap;
            gap: 15px;
            font-size: 12px;
        }

        .legend-left {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        .trend-up {
            color: var(--danger);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .trend-down {
            color: var(--success);
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .legend-right {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }

        .legend-box {
            display: inline-block;
            width: 14px;
            height: 14px;
            border-radius: 4px;
            transition: transform 0.2s ease;
        }

        .legend-box:hover {
            transform: scale(1.3);
        }

        .gray { background: #ccc; }
        .green { background: var(--success); }
        .yellow { background: #ffc107; }
        .orange { background: var(--warning); }
        .red { background: var(--danger); }
        .biru { background: #42a5f5; }
        .kuning { background: #ffa726; }
        .merah { background: #ef5350; }

        /* ========== TABLE NOTE ========== */
        .table-note {
            font-size: 11px;
            color: #999;
            padding: 12px 20px;
            background: white;
            border-top: 1px solid var(--border-color);
            text-align: right;
            font-style: italic;
        }

        /* ========== RESPONSIVE ========== */
        @media (max-width: 1024px) {
            .map-container {
                height: 55vh;
            }

            .header-right {
                gap: 10px;
            }

            .time-box {
                padding: 10px 14px;
            }

            .time {
                font-size: 12px;
            }

            .date {
                font-size: 10px;
            }
        }

        @media (max-width: 768px) {
            .main-header {
                height: auto;
                padding: 15px;
                flex-direction: row;
                gap: 15px;
                justify-content: space-between;
            }

            .header-left {
                width: auto;
                justify-content: flex-start;
                gap: 12px;
            }

            .header-right-desktop {
                display: none !important;
            }

            .header-right-mobile {
                display: flex !important;
            }

            .logo-box {
                width: 50px;
                height: 50px;
            }

            .title {
                gap: 2px;
            }

            .main-title {
                font-size: 18px;
            }

            .sub-title {
                font-size: 10px;
            }

            .map-container {
                height: 50vh;
                padding: 12px;
                margin-bottom: 0;
            }

            #map {
                border-radius: 12px;
            }

            .table-container {
                padding: 12px;
            }

            .table-card {
                border-radius: 12px;
            }

            .table-header,
            .table-header-green,
            .table-header-orange {
                padding: 14px 12px;
                font-size: 13px;
                gap: 8px;
            }

            .table-responsive,
            .table-responsive-scroll {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .custom-table {
                min-width: 900px;
            }

            .custom-table thead th {
                font-size: 11px;
                padding: 10px 8px;
            }

            .custom-table tbody td {
                font-size: 12px;
                padding: 10px 8px;
            }

            .table-footer {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
                padding: 14px 12px;
                font-size: 11px;
            }

            .legend-left {
                flex-direction: column;
                gap: 8px;
                width: 100%;
            }

            .trend-up,
            .trend-down {
                font-size: 11px;
            }

            .legend-right {
                width: 100%;
                flex-wrap: wrap;
                gap: 10px;
            }

            .legend-box {
                width: 12px;
                height: 12px;
            }

            .table-note {
                font-size: 10px;
                padding: 10px 12px;
            }

            .badge-logger {
                padding: 4px 8px;
                font-size: 10px;
            }

            .link-pos {
                font-size: 12px;
            }

            .spacer-lg { height: 15px; }
            .spacer-md { height: 10px; }
        }

        @media (max-width: 480px) {
            .main-header {
                padding: 12px;
                gap: 10px;
            }

            .header-right-desktop {
                display: none !important;
            }

            .header-right-mobile {
                display: flex !important;
            }

            .logo-box {
                width: 45px;
                height: 45px;
            }

            .main-title {
                font-size: 16px;
            }

            .sub-title {
                font-size: 9px;
            }

            .map-container {
                height: 45vh;
                padding: 10px;
            }

            #map {
                border-radius: 10px;
            }

            .table-container {
                padding: 10px;
            }

            .table-card {
                border-radius: 10px;
                border: none;
                box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
            }

            .table-header,
            .table-header-green,
            .table-header-orange {
                padding: 12px 10px;
                font-size: 12px;
            }

            .table-responsive,
            .table-responsive-scroll {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .custom-table {
                min-width: 900px;
            }

            .custom-table thead th {
                font-size: 10px;
                padding: 8px 6px;
            }

            .custom-table tbody td {
                font-size: 11px;
                padding: 8px 6px;
            }

            .table-footer {
                padding: 12px 10px;
                gap: 8px;
            }

            .table-note {
                font-size: 9px;
                padding: 8px 10px;
            }

            .badge-logger {
                padding: 3px 6px;
                font-size: 9px;
            }

            .link-pos {
                font-size: 11px;
            }

            .legend-box {
                width: 10px;
                height: 10px;
            }

            .spacer-lg { height: 12px; }
            .spacer-md { height: 8px; }
        }

        /* ========== SCROLLBAR ========== */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f1f1;
        }

        ::-webkit-scrollbar-thumb {
            background: #888;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

        /* ========== SPACING ========== */
        .spacer-lg { height: 12px; }
        .spacer-md { height: 8px; }

        /* ========== FOOTER ========== */
        .main-footer {
            background: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);
            color: white;
            padding: 20px;
            margin-top: 20px;
            text-align: center;
            box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
        }

        .footer-text {
            font-size: 13px;
            color: rgba(255, 255, 255, 0.9);
            font-weight: 500;
            letter-spacing: 0.3px;
        }

        /* ========== RESPONSIVE FOOTER ========== */
        @media (max-width: 768px) {
            .main-footer {
                padding: 15px;
            }

            .footer-text {
                font-size: 12px;
            }
        }

        @media (max-width: 480px) {
            .main-footer {
                padding: 12px;
            }

            .footer-text {
                font-size: 11px;
            }
        }

          .value-center {
            text-align: center;
        }
        
        .value-bold {
            font-weight: 600;
        }
    
.popup-card {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    min-width: 180px;
}

.popup-header {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2c3e50;
}

.popup-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.popup-row {
    display: flex;
    justify-content: space-between;
}

.label {
    color: #7f8c8d;
}

.value {
    font-weight: 500;
    color: #2c3e50;
}

/* RESET popup leaflet */
.leaflet-popup-content {
    margin: 8px 12px !important;
    line-height: 1.4;
}

/* container */
.popup-clean {
    font-family: 'Segoe UI', sans-serif;
    font-size: 13px;
    min-width: 200px;
}

/* judul */
.popup-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
    color: #2c3e50;
}

/* tabel */
.popup-table {
    width: 100%;
    border-collapse: collapse;
    align-items: center;
}

.popup-table td {
    padding: 2px 0;
    vertical-align: top;
}

/* label kiri */
.label {
    color: #7f8c8d;
    width: 80px;
}

/* value kanan */
.value {
    text-align: right;
    font-weight: 500;
    color: #2c3e50;
}

/* Center seluruh isi popup */
.leaflet-popup-content {
    text-align: center !important;
}

.legend {
    background: rgb(6, 4, 105);
    padding: 12px 14px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    font-size: 13px;
    line-height: 1.5;
}

.legend-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    color: #ffffff;
    text-align: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.legend-item i {
    width: 16px;
    text-align: center;
}

@media (max-width: 768px) {
    .legend {
        display: none;
    }
}

.home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
}

.home-btn:hover {
    background: #f4f4f4;
}