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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

.banner {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
    margin: 20px 0 30px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}



.banner h1 {
    color: white;
    font-size: 2.5em;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.banner span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2em;
    font-weight: 400;
    display: block;
    margin-top: 5px;
}

.data-source {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.data-source a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.data-source a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.data-icon {
    font-style: normal;
    font-size: 1.1em;
}

/* Navigation bar styles */
.navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.nav-item {
    padding: 12px 24px;
    margin: 0 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #666;
    background: transparent;
}

.nav-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: translateY(-2px);
}

.nav-item.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Scene container styles */
.scene-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: 600px;
}

.scene {
    width: 100%;
}

.scene h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 2.2em;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Chart container styles */
.chart-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    min-height: 400px;
}

#chart1,
#chart2,
#chart3 {
    width: 100%;
    height: 400px;
}

/* Control panel styles */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.date-range,
.month-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.date-range label,
.month-selector label {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

#date-range-text {
    font-weight: 600;
    color: #667eea;
}

#month-select {
    padding: 8px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#month-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Scene description styles */
.scene-description {
    text-align: left;
    margin-top: 30px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.scene-description p {
    color: #666;
    line-height: 1.6;
    font-size: 16px;
}

/* Tooltip styles */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.9) transparent transparent transparent;
}

/* Slider styles */
#date-slider {
    width: 300px;
    height: 40px;
    background: #f0f0f0;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    .banner {
        padding: 30px 20px;
        margin: 15px 0 20px 0;
    }

    .banner h1 {
        font-size: 2em;
    }

    .banner span {
        font-size: 1em;
    }

    .data-source {
        margin-top: 12px;
        padding-top: 12px;
    }

    .data-source a {
        font-size: 0.85em;
        padding: 6px 12px;
        gap: 6px;
    }

    .navigation {
        flex-direction: column;
        gap: 10px;
    }

    .nav-item {
        margin: 0;
        text-align: center;
    }

    .scene-container {
        padding: 20px;
    }

    .scene h2 {
        font-size: 1.8em;
    }

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

    .date-range,
    .month-selector {
        flex-direction: column;
        align-items: center;
    }

    #date-slider {
        width: 250px;
    }
}

/* Chart-specific styles */
.axis path,
.axis line {
    stroke: #ccc;
    stroke-width: 1;
}

.axis text {
    font-size: 12px;
    fill: #666;
}

.axis-label {
    font-size: 14px;
    font-weight: 500;
    fill: #333;
}

.grid line {
    stroke: #e0e0e0;
    stroke-opacity: 0.7;
}

.grid path {
    stroke-width: 0;
}

/* Bar chart styles */
.bar {
    transition: all 0.3s ease;
}

.bar:hover {
    opacity: 0.9;
}

/* Line chart styles */
.line {
    fill: none;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.area {
    opacity: 0.3;
}

/* Annotation styles */
.annotation {
    font-size: 12px;
    font-weight: 500;
}

.annotation-note-bg {
    fill: rgba(255, 255, 255, 0.9);
    stroke: #667eea;
    stroke-width: 1;
}

.annotation-note-label {
    fill: #333;
    font-size: 11px;
}

.annotation-connector {
    stroke: #667eea;
    stroke-width: 1;
}

.annotation-subject {
    stroke: #667eea;
    stroke-width: 2;
    fill: none;
}