* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    overflow: hidden;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.header {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #ffffff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.header-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 120px;
}

.header-item .label {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.header-item .value {
    font-size: 1.1rem;
    color: #000;
    font-weight: 600;
}

.chart-container {
    flex: 1;
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.chart-wrapper {
    position: relative;
    height: 100%;
    min-height: 300px;
}

canvas {
    max-height: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .header-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
    }
    
    .header-item:last-child {
        border-bottom: none;
    }
    
    .container {
        padding: 0.5rem;
    }
    
    .chart-container {
        padding: 1rem;
    }
    
    /* Make chart wider on small screens to enable scrolling */
    .chart-wrapper {
        width: 200%;
        min-width: 600px;
    }
}

/* Loading state */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 1.2rem;
    color: #666;
}
