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

body {
    font-family: sans-serif;
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
    min-height: 100vh;
    color: #333;
    width: 100vw;
    overflow-x: hidden;
    padding-left: 50px;
    padding-right: 50px;
}

.container {
    width: 100%;
    margin: 0;
    padding: 10px 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    display: block;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.chart-container {
    background: white;
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    min-height: 150px;
    display: flex;
    flex-direction: column;
}

.chart-container:hover {
    transform: translateY(-5px);
}

.chart-container h2 {
    color: #2d3436;
    margin-bottom: 5px;
    font-size: 1.2rem;
    border-bottom: 3px solid #74b9ff;
    padding-bottom: 5px;
    text-align: center;
}

canvas {
    max-height: 230px;
    min-height: 150px;
    flex-grow: 1;
}

.vfr-container {
    min-height: 150px;
}

.vfr-container canvas {
    min-height: 150px;
    max-height: 150px;
    padding-left: 50px;
    padding-right: 80px;
}

.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.chart-legend span {
    background: white;
    padding: 5px 10px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-instructions {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 5px;
    background: rgba(255,255,255,0.9);
    border-radius: 10px;
    font-size: 0.9rem;
    color: #666;
}

.chart-instructions strong {
    color: #2d3436;
}

.loading {
    text-align: center;
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.loading p {
    font-size: 1.2rem;
    color: #2d3436;
}

.error {
    text-align: center;
    background: #ff7675;
    color: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.error button {
    background: white;
    color: #ff7675;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

.error button:hover {
    background: #f8f9fa;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .container {
        padding: 5px 15px;
    }
    
    header {
        margin-bottom: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .chart-container {
        padding: 15px;
        min-height: 350px;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        gap: 10px;
    }
    
    canvas {
        max-height: 280px;
        min-height: 220px;
    }
} 