* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.weather-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    width: 100%;
    max-width: 100%;
    margin: 16px auto;
    /* नई सॉफ्ट पर्पल-ग्रे ग्रेडिएंट */
    background: linear-gradient(135deg, #e0e7ff 0%, #c3dafe 50%, #a3bffa 100%);
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.current-weather {
    background-color: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.current-heading {
    font-size: 26px;
    font-weight: 700;
    color: #4c51bf;
    margin-bottom: 12px;
    text-transform: capitalize;
}

.current-weather img {
    width: 100px;
    height: 100px;
    margin: 14px auto;
}

.current-temperature {
    font-size: 52px;
    font-weight: 800;
    color: #434190;
    margin: 10px 0;
}

.current-description {
    font-size: 18px;
    color: #5a67d8;
    margin-bottom: 14px;
    font-weight: 500;
}

.weather-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    font-size: 15px;
    color: #4c51bf;
}

/* Forecast Section */
.forecast-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.25);
    padding: 10px 0;
}

.forecast-days {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding: 18px 60px; /* बटन के लिए जगह */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: auto;
    scrollbar-color: #a3bffa #e0e7ff;
}

.forecast-days::-webkit-scrollbar {
    height: 10px;
}

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

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

.weather-item {
    flex: 0 0 150px;
    min-width: 150px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    scroll-snap-align: center;
}

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

.weather-item .date {
    font-size: 16px;
    font-weight: 600;
    color: #4c51bf;
    margin-bottom: 10px;
}

.weather-item img {
    width: 65px;
    height: 65px;
    margin: 10px auto;
}

.weather-item .temperature {
    font-size: 24px;
    font-weight: 700;
    color: #434190;
    margin: 8px 0;
}

.weather-item .description {
    font-size: 14px;
    color: #5a67d8;
    text-transform: capitalize;
    text-align: center;
}

.weather-item .wind-speed {
    font-size: 13px;
    color: #667eea;
}

/* Scroll Buttons */
.scroll-left, .scroll-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 22px;
    color: #4c51bf;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
    transition: all 0.3s ease;
}

.scroll-left:hover, .scroll-right:hover {
    background: #a3bffa;
    color: white;
}

.scroll-left { left: 10px; }
.scroll-right { right: 10px; }

/* Responsive */
@media (max-width: 767px) {
    .weather-widget { padding: 14px; }
    .current-weather { padding: 16px; }
    .current-temperature { font-size: 44px; }
    .current-weather img { width: 85px; height: 85px; }

    .forecast-days { padding: 18px 70px; gap: 14px; }
    .weather-item { flex: 0 0 135px; min-width: 135px; }

    .scroll-left, .scroll-right { display: block; }
}

@media (max-width: 480px) {
    .weather-item { flex: 0 0 125px; min-width: 125px; }
    .weather-item img { width: 55px; height: 55px; }
}

@media (min-width: 768px) {
    .weather-widget {
        flex-direction: row;
        gap: 24px;
        padding: 24px;
        max-width: 1200px;
    }
    .current-weather { flex: 0 0 360px; margin-bottom: 0; }
    .forecast-container { flex: 1; }
    .weather-item { flex: 0 0 160px; min-width: 160px; }
    .scroll-left, .scroll-right { display: none; }
}