/* Main container styling */
.astro-weather-dashboard {
    background: #1a1a1a;
    color: #fff;
    border-radius: 8px;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header styles */
.astro-weather-header {
    margin-bottom: 20px;
}

.astro-weather-header h3 {
    color: #fff;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Location display */
.location-display {
    padding: 8px 12px;
    border-radius: 4px;
    margin: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.current-location {
    color: #fff;
    font-weight: 500;
}

.coordinates {
    color: #aaa;
    font-size: 0.9em;
}

/* Location controls */
.location-controls {
    margin-bottom: 20px;
}

.manual-location {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.location-input-container {
    position: relative;
    flex: 1;
}

.address-input {
    width: 100%;
    background: #333;
    border: 1px solid #444;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
}

.input-help {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    cursor: help;
}

.help-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #333;
    padding: 8px 12px;
    border-radius: 4px;
    width: 200px;
    font-size: 0.9em;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    z-index: 100;
}

.input-help:hover .help-tooltip {
    display: block;
}

/* Buttons */
.search-location,
.detect-location {
    background: #2563eb;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.search-location:hover,
.detect-location:hover {
    background: #1d4ed8;
}

.detect-location {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 10px;
}

/* Time controls */
.time-controls {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.time-controls-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.day-picker {
    background: #333;
    color: #fff;
    border: 1px solid #444;
    padding: 5px;
    border-radius: 4px;
}

.units-toggle {
    display: flex;
    gap: 10px;
    color: #aaa;
}

.time-slider-container {
    margin: 10px 0;
}

.time-display {
    text-align: center;
    color: #fff;
    font-size: 1.1em;
    margin-top: 10px;
}

/* Conditions grid */
.conditions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.condition-box {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
}

.condition-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.condition-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
}

/* Rating dials */
.rating-dial {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.rating-dial svg {
    transform: rotate(-90deg);
}

.rating-bg {
    fill: none;
    stroke: #333;
    stroke-width: 2.8;
}

.rating-fill {
    fill: none;
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease, stroke-dashoffset 0.3s ease;
}

.rating-dial .rating-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8em;
    color: #fff;
    text-align: center;
    line-height: 1.2;
    width: 100%;
}

.rating-dial .rating-value .rating-descriptor {
    display: block;
    font-size: 0.9em;
    opacity: 0.8;
    margin-top: 2px;
}

/* Rating colors */
.rating-fill.poor { stroke: #ef4444; }
.rating-fill.moderate { stroke: #eab308; }
.rating-fill.good { stroke: #84cc16; }
.rating-fill.great { stroke: #22c55e; }

/* Metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
}

.metric {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #aaa;
}

/* Info section */
.astro-weather-info {
    background: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9em;
    color: #fff;
}

.rating-legend {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    margin: 0 4px;
    font-size: 0.8em;
    color: white;
}

.rating-legend.poor { background: #ef4444; }
.rating-legend.moderate { background: #eab308; }
.rating-legend.good { background: #84cc16; }
.rating-legend.great { background: #22c55e; }

/* Timeline styles */
.astro-weather-timeline {
    margin-bottom: 20px;
    border-radius: 8px;
    background: #2a2a2a;
    padding: 16px;
}

.timeline-title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.condition-row {
    margin-bottom: 12px;
}

/* Ensure the date labels align with the timeline bars */
.condition-bar {
    height: 24px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    margin: 4px 0;
}

.hour-point {
    width: 0.595%;
    height: 100%;
    transition: opacity 0.2s ease;
}

.hour-point:hover {
    opacity: 0.8;
}

.date-scale {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #333;
}

.date-labels {
    width: 100%;
}

.date-labels-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.date-label {
    display: inline-block;
    color: #888;
    font-size: 12px;
    text-align: center;
    padding: 4px 0;
}

/* Native range slider styling */
.time-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    outline: none;
    margin: 10px 0;
    position: relative;
    background-image: linear-gradient(to right, #2563eb 0%, #2563eb 0%, #333 0%, #333 100%);
}

/* Track styling - this creates the blue fill effect 
.time-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(to right, #2563eb 0%, #2563eb 50%, #333 50%, #333 100%);
    border-radius: 4px;
}*/

.time-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #333;
    border-radius: 4px;
}

/* Progress fill for Firefox */
.time-slider::-moz-range-progress {
    background-color: #2563eb;
    height: 8px;
    border-radius: 4px;
}

/* Thumb styling */
.time-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: -2px;
    border: 2px solid #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.time-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    border: 2px solid #1a1a1a;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hover state */
.time-slider::-webkit-slider-thumb:hover {
    background: #1d4ed8;
}

.time-slider::-moz-range-thumb:hover {
    background: #1d4ed8;
}

/* Bootstrap compatibility classes */
.container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

.lc-block {
    margin-bottom: 20px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .astro-weather-dashboard {
        padding: 10px;
    }
    
    .manual-location {
        flex-direction: column;
    }
    
    .search-location {
        width: 100%;
    }
    
    .conditions-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .container {
        padding: 0;
    }
    
    .row > * {
        padding: 0;
    }
}