body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: aliceblue;
}

h1 {
    text-align: center;
    color: black;
    margin-bottom: 5px;
    font-size: 1.5em;
}

.subtitle {
    text-align: center;
    color: black;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    margin-bottom: 10px;
    flex-wrap: nowrap;
    align-items: center;
}

.control-group {
    display: flex;
    gap: 10px;
    align-items: center;
    white-space: nowrap;
}

.control-group label {
    font-weight: 600;
    color: #34495e;
    font-size: 0.9em;
}

.btn-group {
    display: flex;
    gap: 5px;
}

button {
    padding: 8px 16px;
    border: 2px solid #3498db;
    background: white;
    color: #3498db;
    cursor: pointer;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85em;
}

button:hover {
    background: #ecf0f1;
    transform: translateY(-1px);
}

button.active {
    background: #3498db;
    color: white;
}

.chart-container {
    position: relative;
    height: 500px;
}

.legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85em;
    color: #555;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.info-tooltip {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 11px;
    cursor: help;
    margin-left: 4px;
}

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

    h1 {
        font-size: 1.2em;
    }

    .chart-container {
        height: 390px;
    }

    .controls {
        flex-wrap: wrap;
        gap: 15px;
    }

    button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}
