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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.dashboard-header h1 {
    color: #2c5530;
    margin-bottom: 15px;
}

.stats-panel {
    display: flex;
    gap: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c5530;
}

.main-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 20px;
}

.map-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

#map {
    height: 600px;
    width: 100%;
}

.controls-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.time-slider-container {
    margin-bottom: 30px;
}

.time-slider-container label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

#time-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2c5530;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2c5530;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.date-display {
    text-align: center;
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #2c5530;
}

.layer-controls {
    margin-bottom: 30px;
}

.layer-controls h3,
.processing-status h3 {
    margin-bottom: 15px;
    color: #2c5530;
}

.layer-controls label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
}

.layer-controls input[type="checkbox"] {
    margin-right: 10px;
}

.processing-status {
    font-size: 14px;
    color: #666;
}

.legend {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.legend h3 {
    margin-bottom: 15px;
    color: #2c5530;
}

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

.legend-color {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 2px;
}

.legend-color.water {
    background: #0066cc;
}

.legend-color.land {
    background: #8B4513;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto;
    }

    .stats-panel {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        padding: 10px;
    }

    .dashboard-header {
        padding: 15px;
    }

    .dashboard-header h1 {
        font-size: 24px;
    }

    .controls-panel {
        padding: 15px;
    }

    #map {
        height: 400px;
    }
}
