/* NDFD Forecast Styles */

/* Forecast Timeline Slider Bar */
#forecastTimelineBar {
    position: relative;
    z-index: 100;
    background: linear-gradient(to bottom, #f8f9fa, #e9ecef);
    border-top: 1px solid #dee2e6;
    padding: 12px 15px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

/* Custom Slider Styling */
#forecastTimeSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
    opacity: 1;
    transition: opacity 0.2s;
    cursor: pointer;
}

#forecastTimeSlider:hover {
    opacity: 0.9;
}

/* Slider Thumb */
#forecastTimeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

#forecastTimeSlider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

#forecastTimeSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #2563eb;
}

#forecastTimeSlider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #2563eb;
}

/* Time Markers */
.time-marker {
    font-size: 10px;
    color: #6c757d;
    text-align: center;
    line-height: 1.2;
    user-select: none;
}

/* Play Button States */
#forecastPlayBtn.playing {
    background: #ef4444;
}

#forecastPlayBtn.playing i::before {
    content: "\f04c"; /* Font Awesome pause icon */
}

/* Global Forecast Time Filter in Filter Bar */
#globalForecastTimeFilter {
    display: flex;
    align-items: center;
    gap: 8px;
}

#globalForecastTime {
    min-width: 100px;
    font-size: 12px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}

#globalForecastTime:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

#forecastPlayBtn {
    padding: 4px 10px;
    font-size: 11px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#forecastPlayBtn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

#forecastPlayBtn.playing {
    background: #ef4444;
}

#forecastTimeDisplay {
    margin-left: 10px;
    font-size: 11px;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
}

/* NDFD Controls */
#ndfdControls {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 8px;
}

.filter-group-title {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#ndfdCategorySelect,
#ndfdParameterSelect {
    width: 100%;
    padding: 6px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 12px;
    background: white;
}

#ndfdCategorySelect:focus,
#ndfdParameterSelect:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Time Period Buttons */
.ndfd-time-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.ndfd-time-btn {
    padding: 4px 8px;
    font-size: 11px;
    border: 1px solid #ddd;
    background: #e5e7eb;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
    color: black;
}

.ndfd-time-btn:hover {
    background: #d1d5db;
    transform: translateY(-1px);
}

.ndfd-time-btn.active {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6;
}

/* Action Buttons */
.ndfd-actions {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

#ndfdAnimateBtn,
#ndfdClearBtn {
    flex: 1;
    padding: 5px;
    font-size: 11px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

#ndfdAnimateBtn {
    background: #10b981;
    color: white;
}

#ndfdAnimateBtn:hover {
    background: #0ea271;
}

#ndfdAnimateBtn.animating {
    background: #ef4444;
}

#ndfdClearBtn {
    background: #6b7280;
    color: white;
}

#ndfdClearBtn:hover {
    background: #4b5563;
}

/* Time Display */
#ndfd-time-display {
    padding: 5px;
    background: #f3f4f6;
    border-radius: 3px;
    text-align: center;
    font-size: 11px;
    color: #4b5563;
    margin-top: 5px;
}

/* Loading Indicator */
#ndfd-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10000;
    display: none;
}

/* Compact Sidebar Styles */
#ndfdCompactControls {
    padding: 8px;
    background: #2d2d2d;
    border-radius: 4px;
    margin-top: 5px;
}

#ndfdCategoryCompact,
#ndfdParameterCompact {
    width: 100%;
    padding: 4px;
    margin-bottom: 5px;
    background: #444;
    color: #fff;
    border: 1px solid #555;
    border-radius: 3px;
    font-size: 11px;
}

.ndfd-time-compact {
    padding: 2px 6px;
    font-size: 10px;
    background: #444;
    color: #999;
    border: 1px solid #555;
    border-radius: 2px;
    cursor: pointer;
    margin: 2px;
}

.ndfd-time-compact:hover {
    background: #555;
    color: #fff;
}

.ndfd-time-compact.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Compact Sidebar Slider Styles */
#compactForecastSlider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: #444;
    outline: none;
    opacity: 1;
    transition: opacity 0.2s;
    cursor: pointer;
}

#compactForecastSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

#compactForecastSlider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

#compactForecastSlider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: #2563eb;
}

#compactForecastSlider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: #2563eb;
}

#compactPlayBtn.playing {
    background: #ef4444;
}

#compactPlayBtn.playing i::before {
    content: "\f04c"; /* Font Awesome pause icon */
}