
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0A1628;
}

#map-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 64px);
    position: relative;
}

#controls {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1E293B, #334155);
    border-bottom: 2px solid #10b981;
    font-size: 0.95rem;
    color: #F9FAFB;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    position: relative;
    z-index: 1001;
}

#controls::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

#controls label {
    font-weight: 700;
    margin-right: 0.75rem;
    color: #E5E7EB;
    position: relative;
    z-index: 1;
}

#yearSlider {
    width: 240px;
    vertical-align: middle;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #334155 0%, #10b981 100%);
    outline: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 1;
}

#yearSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
    transition: all 0.2s ease;
}

#yearSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.7);
}

#yearSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.5);
    transition: all 0.2s ease;
}

#yearSlider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.7);
}

#selectedYear {
    font-weight: 800;
    margin-left: 0.75rem;
    color: #10b981;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

#map {
    flex: 1;
}

.leaflet-popup-content {
    min-width: 280px;
    max-width: 320px;
    background: #1E293B;
    color: #F9FAFB;
}

.leaflet-popup-content-wrapper {
    background: #1E293B;
    color: #F9FAFB;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.3);
    border: 2px solid #10b981;
}

.leaflet-popup-tip {
    background: #1E293B;
}

.leaflet-popup-content h3,
.leaflet-popup-content h4 {
    color: #10b981;
    margin-top: 0;
}

.leaflet-popup-content canvas {
    max-width: 100%;
    max-height: 100%;
}

.leaflet-container {
    background: #0F172A;
}

.leaflet-popup-close-button {
    color: #10b981 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
}

.leaflet-popup-close-button:hover {
    color: #059669 !important;
}

.map-info-box {
    position: absolute;
    bottom: 20px;
    right: 20px;
    max-width: 280px;
    background: #1E293B;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
    font-size: 11px;
    line-height: 1.5;
    z-index: 1000;
    border: 2px solid #10b981;
    color: #E5E7EB;
}

.map-info-box p {
    margin: 0;
    color: #D1D5DB;
}

@media (max-width: 768px) {
    .map-info-box {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
        font-size: 10px;
    }
    
    #controls {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    #yearSlider {
        width: 160px;
    }
    
    #selectedYear {
        font-size: 1rem;
    }
}
