.weather-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.weather-header {
    text-align: center;
    margin-bottom: 2rem;
}

.weather-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
}

.station-id {
    font-size: 1rem;
    font-weight: normal;
    color: #7f8c8d;
}

.current-weather {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e7f0 50%, #b8d9e8 100%);
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    color: #2c3e50;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.weather-icon-wrapper {
    flex-shrink: 0;
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Create oval container with smooth edges */
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    overflow: hidden;
    background: transparent;
    /* Add subtle shadow to the container */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.weather-icon-large {
    width: 300px;
    height: 300px;
    max-width: 300px;
    max-height: 300px;
    object-fit: cover;
    /* Make white backgrounds transparent - multiply works well on light backgrounds */
    mix-blend-mode: multiply;
    /* Enhance the effect and add shadow */
    filter: 
        drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15))
        brightness(1.05)
        contrast(1.05)
        saturate(1.05);
    /* Smooth scaling for large images */
    image-rendering: auto;
    /* Ensure the image fills the oval */
    object-position: center;
}

.weather-temp-section {
    text-align: center;
}

.temperature {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
    color: #1a1a1a;
}

.temp-value {
    display: inline-block;
}

.temp-unit {
    font-size: 3rem;
    font-weight: 400;
    vertical-align: top;
    margin-left: 0.25rem;
}

.temperature-celsius {
    font-size: 1.5rem;
    color: #4a5568;
    margin-top: 0.5rem;
}

.weather-condition {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #2d3748;
    text-transform: capitalize;
}

.weather-details {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.detail-row {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.detail-row:last-child {
    margin-bottom: 0;
}

.detail-row.primary {
    grid-template-columns: repeat(2, 1fr);
}

.detail-row.secondary {
    grid-template-columns: repeat(4, 1fr);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.85rem;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.detail-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a202c;
}

.detail-row.secondary .detail-value {
    font-size: 1rem;
}

.wind-gust {
    font-size: 0.9em;
    opacity: 0.9;
    font-weight: 400;
}

@media (max-width: 768px) {
    .weather-main {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .weather-icon-wrapper {
        width: 250px;
        height: 250px;
    }
    
    .weather-icon-large {
        width: 250px;
        height: 250px;
        max-width: 250px;
        max-height: 250px;
    }
    
    .temperature {
        font-size: 4rem;
    }
    
    .temp-unit {
        font-size: 2.5rem;
    }
    
    .weather-condition {
        font-size: 1.5rem;
    }
    
    .detail-row.primary {
        grid-template-columns: 1fr;
    }
    
    .detail-row.secondary {
        grid-template-columns: repeat(2, 1fr);
    }
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    color: #721c24;
}

.error-message h3 {
    margin-top: 0;
    color: #721c24;
}

.error-text {
    color: #dc3545;
    font-weight: 500;
}

.refresh-info {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 0.9rem;
}

.refresh-time {
    font-weight: 600;
    color: #495057;
}

/* Forecast Section */
.forecast-section {
    margin-top: 3rem;
}

.forecast-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.forecast-header h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.forecast-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.forecast-table thead {
    background: #f8f9fa;
}

.forecast-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.forecast-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
    color: #2d3748;
}

.forecast-table tr:last-child td {
    border-bottom: none;
}

/* Column specific styles */
.col-day {
    width: 15%;
    font-weight: 700;
    color: #2c3e50;
}

.col-condition {
    width: 35%;
}

.condition-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.forecast-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%; /* Make icons circular if they have backgrounds */
}

.condition-text {
    font-weight: 500;
}

.col-temp {
    width: 20%;
    text-align: center;
}

.temp-high {
    font-weight: 700;
    font-size: 1.1rem;
    color: #e53e3e;
    margin-right: 0.5rem;
}

.temp-low {
    font-weight: 600;
    font-size: 1.1rem;
    color: #3182ce;
}

.temp-sep {
    color: #cbd5e0;
    margin: 0 0.25rem;
}

.col-precip {
    width: 15%;
    text-align: center;
}

.precip-chance {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    font-weight: 500;
}

.precip-icon {
    color: #3182ce;
    font-size: 0.9rem;
}

.has-precip {
    color: #2b6cb0;
    font-weight: 700;
    background: #ebf8ff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.col-wind {
    width: 15%;
    font-size: 0.9rem;
    color: #4a5568;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .forecast-table thead {
        display: none; /* Hide header on mobile */
    }

    .forecast-table, .forecast-table tbody, .forecast-table tr, .forecast-table td {
        display: block;
        width: 100%;
    }

    .forecast-table tr {
        margin-bottom: 1rem;
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        padding: 0.5rem;
    }

    .forecast-table td {
        padding: 0.5rem 1rem;
        border: none;
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }

    /* Add labels for mobile */
    .col-day {
        background: #f8f9fa;
        font-size: 1.1rem;
        border-bottom: 1px solid #e2e8f0 !important;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem !important;
        color: #2d3748;
    }
    
    .col-condition {
        justify-content: flex-start;
    }

    .col-temp::before { content: "Temp:"; color: #718096; font-size: 0.85rem; }
    .col-precip::before { content: "Precipitation:"; color: #718096; font-size: 0.85rem; }
    .col-wind::before { content: "Wind:"; color: #718096; font-size: 0.85rem; }

    .condition-wrapper {
        width: 100%;
    }
}
