:root {
    --neon-cyan: #00f3ff;
    --neon-magenta: #ff00f3;
    --neon-amber: #ffcc00;
    --neon-red: #ff3333;
    --dark: #0a0a0c;
    --dark-lighter: #121216;
}

body {
    background-color: var(--dark);
    -webkit-font-smoothing: antialiased;
}

/* Glassmorphism Effect */
.glassmorphism {
    background: rgba(18, 18, 22, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

/* Sidebar Custom Scrollbar */
aside::-webkit-scrollbar {
    width: 4px;
}

aside::-webkit-scrollbar-track {
    background: transparent;
}

aside::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

aside::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Leaflet Custom Styles */
#map {
    height: 100%;
    width: 100%;
    min-height: 300px;
}

.leaflet-container {
    background: var(--dark) !important;
}

.leaflet-popup-content-wrapper {
    background: var(--dark-lighter) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

.leaflet-popup-tip {
    background: var(--dark-lighter) !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.leaflet-control-zoom a {
    background-color: var(--dark-lighter) !important;
    color: var(--neon-cyan) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.leaflet-control-zoom a:hover {
    background-color: var(--dark) !important;
    color: white !important;
}

/* Earthquake Card Animations */
.quake-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.quake-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.quake-card.new-quake {
    animation: slide-in 0.5s ease-out;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Navigation Active State */
.active-link {
    color: var(--neon-cyan) !important;
    position: relative;
}

.active-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    box-shadow: 0 0 8px var(--neon-cyan);
    border-radius: 2px;
}

/* Neon Glows */
.neon-glow-cyan {
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

.neon-text-cyan {
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

/* Loading Shimmer */
.loading-shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.03) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.03) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Custom Marker Pulsing */
.pulse-marker {
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* Mobile Sidebar Overlay */
@media (max-width: 768px) {
    aside {
        position: fixed;
        bottom: 80px; /* Above bottom nav */
        left: 0;
        width: 100% !important;
        height: 60vh !important;
        z-index: 3500;
        transform: translateY(120%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 30px 30px 0 0;
        border-right: none;
        border-top: 1px solid rgba(0, 243, 255, 0.2);
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.8);
    }
    
    aside.mobile-open {
        transform: translateY(0);
    }

    #map {
        height: 100% !important;
    }

    main {
        height: calc(100vh - 4rem) !important;
    }
}

.mob-nav-active {
    color: var(--neon-cyan) !important;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}
