/* Стилове за секцията с прогнози - Табличен дизайн с легенда */
.updated-time {
    text-align: center;
    margin-bottom: 15px;
    color: #777;
    font-size: 13px;
}

.loading {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin: 30px 0;
}

.error {
    background-color: #fff0f0;
    border-left: 3px solid #dc3545;
    padding: 15px;
    margin: 20px 0;
    color: #dc3545;
    display: none;
}

/* Контейнер за прогнозната таблица */
#forecast-container {
    display: block;
    margin-top: 20px;
}

.forecast-table-container {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 0px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
    position: relative;
}

/* Fixed legend column */
.forecast-fixed-column {
    width: 180px;
    background-color: #f8f9fa;
    border-right: 2px solid #e0e0e0;
    z-index: 10;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
}

.forecast-legend-header {
    padding: 15px 20px;
    text-align: left;
    font-size: 16px;
    background-color: #2487ce;
    color: white;
    font-weight: 600;
    border-bottom: 1px solid #e0e0e0;
    height: 50px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Content wrapper */
.forecast-content-wrapper {
    margin-left: 180px;
    position: relative;
}

/* Scrollable container */
.forecast-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.forecast-scroll-content {
    display: inline-block;
    min-width: fit-content;
}

/* Time header row */
.forecast-time-row {
    display: flex;
    background-color: #2487ce;
    color: white;
    font-weight: 600;
    height: 50px;
    position: sticky;
    top: 0;
    z-index: 5;
    box-sizing: border-box;
}

.forecast-time-header {
    flex-shrink: 0;
    width: 120px;
    padding: 15px 8px;
    text-align: center;
    font-size: 13px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.forecast-time-header.current {
    width: 140px;
    background-color: #1565c0;
    font-size: 14px;
}


/* Data rows */
.forecast-data-row {
    display: flex;
    height: 45px;
    box-sizing: border-box;
}

.forecast-data-row:nth-child(even) {
    background-color: #f8f9fa;
}

.forecast-data-row:hover {
    background-color: #f0f7fc;
}

/* Legend cells in fixed column */
.forecast-legend-cell {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #4e4e4e;
    border-bottom: 1px solid #eaeaea;
    height: 45px;
    background-color: white;
    box-sizing: border-box;
}

.forecast-legend-cell:nth-child(even) {
    background-color: #f8f9fa;
}

.forecast-legend-cell i {
    color: #2487ce;
    font-size: 16px;
    width: 18px;
    text-align: center;
}

/* Data cells */
.forecast-data-cell {
    flex-shrink: 0;
    width: 120px;
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #c5d9e8;
    border-bottom: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    height: 45px;
    box-sizing: border-box;
}

.forecast-data-cell.current {
    width: 140px;
    background-color: #e8f4fd;
    border-left: 2px solid #2487ce;
    border-right: 2px solid #2487ce;
    border-bottom: 1px solid #c5d9e8;
}


.forecast-data-cell i {
    font-size: 18px;
}

/* Scrollbar styling */
.forecast-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.forecast-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.forecast-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.forecast-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* All time headers have same styling */
.forecast-time-header {
    background-color: #2487ce;
}

/* Visual separators every 12 hours (new day markers) */
.forecast-time-header:nth-child(25) {
    border-left: 3px solid #1976d2;
}

.forecast-data-cell:nth-child(25) {
    border-left: 3px solid #e0e0e0;
}

/* Responsive дизайн */
@media (max-width: 992px) {
    .forecast-fixed-column {
        width: 150px;
    }
    
    .forecast-content-wrapper {
        margin-left: 150px;
    }
    
    .forecast-legend-header {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .forecast-time-header {
        width: 100px;
        padding: 12px 5px;
        font-size: 12px;
    }
    
    .forecast-time-header.current {
        width: 120px;
    }
    
    
    .forecast-legend-cell {
        padding: 10px 15px;
        gap: 10px;
    }
    
    .forecast-legend-cell i {
        font-size: 15px;
        width: 16px;
    }
    
    .forecast-data-cell {
        width: 100px;
        padding: 10px 5px;
        font-size: 13px;
    }
    
    .forecast-data-cell.current {
        width: 120px;
    }
    
    
    .forecast-data-cell i {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .forecast-fixed-column {
        width: 130px;
    }
    
    .forecast-content-wrapper {
        margin-left: 130px;
    }
    
    .forecast-legend-header {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .forecast-time-header {
        width: 70px;
        padding: 10px 2px;
        font-size: 11px;
    }
    
    .forecast-time-header.current {
        width: 85px;
        font-size: 12px;
    }
    
    
    .forecast-legend-cell {
        padding: 8px 12px;
        gap: 8px;
        font-size: 13px;
    }
    
    .forecast-legend-cell i {
        font-size: 14px;
        width: 15px;
    }
    
    .forecast-data-cell {
        width: 70px;
        padding: 8px 2px;
        font-size: 12px;
    }
    
    .forecast-data-cell.current {
        width: 85px;
    }
    
    
    .forecast-data-cell i {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .forecast-fixed-column {
        width: 110px;
    }
    
    .forecast-content-wrapper {
        margin-left: 110px;
    }
    
    .forecast-table-container {
        font-size: 12px;
    }
    
    .forecast-legend-header {
        padding: 8px 10px;
        font-size: 13px;
        min-height: 45px;
    }
    
    .forecast-time-row {
        min-height: 45px;
    }
    
    .forecast-time-header {
        width: 60px;
        padding: 8px 2px;
        font-size: 10px;
    }
    
    .forecast-time-header.current {
        width: 70px;
        font-size: 11px;
    }
    
    
    .forecast-legend-cell {
        padding: 6px 10px;
        gap: 6px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .forecast-legend-cell i {
        font-size: 13px;
        width: 14px;
    }
    
    .forecast-data-cell {
        width: 60px;
        padding: 6px 2px;
        font-size: 11px;
        min-height: 40px;
    }
    
    .forecast-data-cell.current {
        width: 70px;
    }
    
    
    .forecast-data-cell i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .forecast-legend-header {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .forecast-time-header {
        padding: 6px 3px;
        font-size: 10px;
    }
    
    .forecast-legend-cell {
        padding: 5px 8px;
        gap: 5px;
        font-size: 11px;
    }
    
    .forecast-legend-cell i {
        font-size: 12px;
        width: 13px;
    }
    
    .forecast-data-cell {
        padding: 5px 3px;
        font-size: 11px;
    }
    
    .forecast-data-cell i {
        font-size: 13px;
    }
}

/* Dark Theme стилове */
[data-theme="dark"] .forecast-table-container {
    background-color: #252525;
    border-color: #3a3a3a;
}

[data-theme="dark"] .forecast-row:nth-child(odd) {
    background-color: #2a2a2a;
}

[data-theme="dark"] .forecast-row:hover {
    background-color: #333333;
}

[data-theme="dark"] .forecast-legend-cell {
    color: #e0e0e0;
    border-color: #3a3a3a;
}

[data-theme="dark"] .forecast-data-cell {
    color: #2487ce;
    border-color: #3a3a3a;
}