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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#map {
    flex: 1;
    width: 100%;
}

.controls {
    background: white;
    padding: 15px;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.timeline-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    background: #007cba;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.btn:hover {
    background: #005a87;
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.speed-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

.speed-control label {
    font-weight: 500;
    color: #333;
}

.speed-control select {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.progress-container {
    margin-bottom: 10px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

#progress {
    height: 100%;
    background: linear-gradient(90deg, #007cba, #00a8e8);
    width: 0%;
    transition: width 0.1s linear;
}

.stats {
    text-align: center;
    font-size: 14px;
    color: #666;
}

.stats span {
    font-weight: 500;
}

@media (max-width: 768px) {
    .timeline-controls {
        justify-content: center;
    }
    
    .controls {
        padding: 10px;
    }
    
    .time-display {
        font-size: 12px;
    }
}