/* assets/css/style.css */
:root {
    --bg-dark: #0f172a;
    --bg-panel: rgba(30, 41, 59, 0.7);
    --text-ghost: #f8f8ff; /* Ghostwhite */
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-ghost);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    padding: 20px;
}

/* Map Container */
#map {
    height: 100vh;
    width: 100%;
    z-index: 1;
}

/* Custom Marker Popup */
.leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-ghost);
    border: 1px solid var(--accent-cyan);
    border-radius: 8px;
}

.leaflet-popup-tip {
    background: var(--accent-cyan);
}

/* Buttons Futuristic */
.btn-cyber {
    background: linear-gradient(45deg, var(--accent-cyan), var(--accent-purple));
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-cyber:hover {
    box-shadow: 0 0 15px var(--accent-cyan);
    transform: translateY(-2px);
}

/* Login Form */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
}

.login-box {
    width: 100%;
    max-width: 400px;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-cyan);
    color: var(--text-ghost);
    border-radius: 8px;
    box-sizing: border-box;
}

input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--accent-cyan);
}

        /* --- CSS MARKER ANTI-HILANG --- */
        
        /* Container Utama Marker */
        .custom-div-icon {
            background: transparent;
            border: none;
        }

        /* Titik Tengah (Inti Marker) */
        .marker-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid white;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 10; /* Pastikan di atas tile peta */
        }

        /* Warna Normal (Cyan) */
        .color-normal {
            background-color: #06b6d4;
            box-shadow: 0 0 8px #06b6d4;
        }

        /* Warna Panic (Merah) */
        .color-panic {
            background-color: #ef4444;
            box-shadow: 0 0 8px #ef4444;
            width: 14px; /* Sedikit lebih besar saat panic */
            height: 14px;
        }

        /* Efek Gelombang (Radar) */
        .marker-ring {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
            border-radius: 50%;
            border: 2px solid;
            opacity: 0;
            z-index: 5;
        }

        /* Animasi Normal (Lambat) */
        .ring-normal {
            border-color: #06b6d4;
            animation: pulse-slow 2s infinite;
        }

        /* Animasi Panic (Cepat & Agresif) */
        .ring-panic {
            border-color: #ef4444;
            animation: pulse-fast 1s infinite;
        }

        @keyframes pulse-slow {
            0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
            100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
        }

        @keyframes pulse-fast {
            0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
            50% { transform: translate(-50%, -50%) scale(1.5); opacity: 0.5; }
            100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
        }