* {
    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;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    border-radius: 15px;
    color: white;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(79, 172, 254, 0.4);
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.9;
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.chart-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.chart-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
    font-weight: 600;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.control-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

select, input[type="range"] {
    padding: 10px;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    min-width: 150px;
}

select:focus, input[type="range"]:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.3);
}

.insights-panel {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 30px;
    border-radius: 15px;
    margin-top: 30px;
}

.insights-panel h2 {
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.insight-card h3 {
    margin-bottom: 10px;
    color: #ffeaa7;
}

.loading {
    display: none;
    text-align: center;
    padding: 40px;
    font-size: 1.2rem;
    color: #7f8c8d;
}

.footer-banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #00b4db 100%);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-radius: 0 0 20px 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-banner a {
    color: #ffeaa7;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-banner a:hover {
    color: #fd79a8;
    text-decoration: underline;
}

.footer-banner strong {
    color: #74b9ff;
}

.footer-banner em {
    color: #fd79a8;
    font-style: italic;
}

@media (max-width: 768px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .controls {
        flex-direction: column;
        align-items: center;
    }
    
    .header h1 {
        font-size: 2rem;
    }
}