.weather-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    background: linear-gradient(135deg, #e0f7fa 0%, #80deea 100%);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.current-weather {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    transition: transform 0.2s ease;
}

.current-weather:hover {
    transform: translateY(-5px);
}

.current-heading {
    font-size: 24px;
    font-weight: 600;
    color: #1a3c6d;
    margin: 0 0 8px;
    text-align: center;
}

.current-weather img {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
    display: block;
}

.current-temperature {
    font-size: 40px;
    font-weight: 700;
    color: #0288d1;
    margin: 0 0 5px;
    text-align: center;
}

.current-description {
    font-size: 16px;
    color: #455a64;
    margin: 0 0 8px;
    text-align: center;
}

.weather-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #546e7a;
}

.info-item p {
    margin: 0;
    font-weight: 500;
    text-align: center;
}

.forecast-days {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    justify-content: flex-start;
    width: 100%;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.weather-item {
    flex: 0 0 120px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    transition: transform 0.2s ease;
}

.weather-item:hover {
    transform: translateY(-5px);
}

.weather-item .date {
    font-size: 16px;
    font-weight: 600;
    color: #1a3c6d;
    margin: 0 0 8px;
    text-align: center;
}

.weather-item img {
    width: 50px;
    height: 50px;
    margin: 0 auto 8px;
    display: block;
}

.weather-item .temperature {
    font-size: 20px;
    font-weight: 700;
    color: #0288d1;
    margin: 0 0 5px;
    text-align: center;
}

.weather-item .description {
    font-size: 12px;
    color: #455a64;
    margin: 0 0 5px;
    text-align: center;
}

.weather-item .wind-speed {
    font-size: 12px;
    color: #546e7a;
    margin: 0;
    text-align: center;
}

/* Mobile/Small Screens (below 768px) */
@media (max-width: 767px) {
    .weather-widget {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .current-weather {
        max-width: 100%;
        padding: 12px;
    }

    .forecast-days {
        flex-direction: row;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 8px 0;
    }

    .weather-item {
        flex: 0 0 120px;
        min-width: 120px;
    }
}

/* Desktop (768px and above) */
@media (min-width: 768px) {
    .weather-widget {
        flex-direction: row;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }

    .current-weather {
        flex: 0 0 280px;
        max-width: 280px;
        padding: 20px;
    }

    .forecast-days {
        flex: 1;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
    }
}

/* Scrollbar styling */
.forecast-days::-webkit-scrollbar {
    height: 6px;
}

.forecast-days::-webkit-scrollbar-track {
    background: #e0f7fa;
    border-radius: 4px;
}

.forecast-days::-webkit-scrollbar-thumb {
    background: #4fc3f7;
    border-radius: 4px;
}

.forecast-days::-webkit-scrollbar-thumb:hover {
    background: #0288d1;
}