/* numerical-forecast.css */
.numerical-forecast-container {
    margin: 0;
    padding: 20px 10px;
    width: 100vw;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.control-panel {
    margin-bottom: 20px;
}

.time-control-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.unified-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.control-block {
    display: flex;
    align-items: center;
    padding: 0 15px;
    min-height: 80px;
}

.start-time-block, .update-time-block {
    flex: 0 0 15%;
}

.timeline-block {
    flex: 0 0 70%;
}

.vertical-divider {
    width: 1px;
    height: 60px;
    background-color: #e0e0e0;
    flex-shrink: 0;
}

.vertical-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.vertical-group label {
    font-size: 14px;
    color: #666;
    font-weight: 600;
    white-space: nowrap;
}

.timeline-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.update-times-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.update-time-item {
    font-size: 12px;
    color: #2c3e50;
    white-space: nowrap;
}

.time-display {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-bottom: 10px;
}

#current-time {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    white-space: nowrap;
}

.btn-control {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #3498db;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-control:hover {
    background: #2980b9;
}

.slider-container {
    position: relative;
    width: 100%;
    padding: 20px 0 25px 0;
}

#time-slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #ddd;
    border-radius: 5px;
    outline: none;
    margin: 5px 0;
}

#time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #3498db;
    border-radius: 50%;
    cursor: pointer;
}

.time-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 18px;
}

.date-labels {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18px;
}

.date-label, .time-label {
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 11px;
}

.time-label {
    font-weight: bold;
    color: #2c3e50;
}

.date-label {
    color: #7f8c8d;
}

.image-blocks-container {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.image-block {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.inline-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

label {
    font-weight: 600;
    white-space: nowrap;
    font-size: 14px;
}

.form-control {
    min-width: 120px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.image-container {
    position: relative;
    flex-grow: 1;
    min-height: 300px;
}

.image-wrapper {
    width: 100%;
    height: 600px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.image-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    color: #999;
    font-size: 16px;
}

.image-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255,255,255,0.8);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error {
    padding: 10px;
    background: #ffecec;
    color: #e74c3c;
    text-align: center;
    border-top: 1px solid #ffd6d6;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .unified-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .control-block {
        padding: 10px 0;
        min-height: auto;
        width: 100%;
    }
    
    .vertical-divider {
        width: 100%;
        height: 1px;
        margin: 10px 0;
    }
    
    .start-time-block, .update-time-block, .timeline-block {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .numerical-forecast-container {
        padding: 10px;
    }
    
    .time-control-section {
        padding: 15px;
    }
    
    .image-blocks-container {
        flex-direction: column;
    }
    
    .image-block {
        height: 50vh;
    }
    
    .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .time-display {
        flex-wrap: wrap;
        justify-content: center;
    }
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}