.page-container {
    width: 100%;
    margin: 0;
    padding: 0;
}

.spot-selector {
    margin-bottom: 20px;
    padding: 20px;
    box-sizing: border-box;
}

.spot-selector label {
    font-size: 1.1em;
    margin-right: 10px;
}

.spot-selector select {
    padding: 8px 12px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 4px;
    min-width: 200px;
    cursor: pointer;
}

.spot-selector select:hover {
    border-color: #999;
}

.loading-indicator {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    color: #666;
}

.charts-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 50px;
    padding: 0;
    box-sizing: border-box;
}

.chart-container {
    width: 100%;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.model-vars {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.chart-wrapper {
    position: relative;
    height: 125px; /* reduced to half of previous height */
    margin-bottom: 0;
    margin-left: 80px;
    width: calc(100% - 80px);
    overflow: visible;
    padding: 0;
}

.chart-wrapper canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.direction-wrapper {
    position: relative;
    height: 31px; /* adjusted proportionally to main chart height */
    margin-top: 8px;
    border-top: 1px solid #eee;
}

.wave-charts {
    display: flex;
    flex-direction: column;
}

.chart-title {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #333;
}

@media (max-width: 767px) {
    .charts-grid {
        overflow-x: auto;
        padding: 20px 0;
        gap: 0;
        -webkit-overflow-scrolling: touch;
    }
    .chart-section {
        min-width: 100vw;
        box-sizing: border-box;
        padding: 20px;
        flex-shrink: 0;
    }
    .chart-wrapper {
        height: auto;
    }
}

.chart-title {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
}

.error-message {
    color: #842029;
    background-color: #f8d7da;
    border: 1px solid #f5c2c7;
    text-align: center;
    padding: 1rem;
    border-radius: 4px;
    margin: 1rem 0;
    font-size: 0.9rem;
}