.area {
    opacity: 0.85;
    transition: opacity 0.3s;
    cursor: pointer;
}

.area:hover {
    opacity: 1;
}

.tooltip {
    position: absolute;
    padding: 15px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid #ddd;
    border-radius: 4px;
    pointer-events: none;
    font-size: 14px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    z-index: 1000;
    max-width: 300px;
}

.tooltip-content {
    margin: 0;
    padding: 0;
}

.tooltip-title {
    font-weight: bold;
    margin-bottom: 5px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

#chart {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    height: 600px;
}

.time-controls {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.legend-item {
    cursor: pointer;
    transition: opacity 0.3s;
}

.legend-item:hover {
    opacity: 0.7;
}

.year-display {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
}

#slider-range {
    height: 10px;
    margin: 30px 0;
}

.noUi-connect {
    background: #0d6efd;
}

.noUi-handle {
    background: #0d6efd;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
}

.noUi-handle:after, 
.noUi-handle:before {
    display: none;
}