@import url('https://fonts.googleapis.com/css2?family=Handjet:wght@400;900&family=Ubuntu&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    transition: all 0.3s ease;
}

body {
    background: linear-gradient(to bottom right, #e0f7fa, #edf2f7);
}

body.dark-theme {
    background: linear-gradient(to bottom right, #1a202c, #2d3748);
}

.weather-input {
    border-radius: 15px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.weather-input input:focus {
    box-shadow: 0 0 10px rgba(75, 85, 99, 0.5);
}

.current-weather {
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.weather-cards .card {
    border-radius: 15px;
    background: #6b46c1; /* Purple base color for 5-day forecast */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background 0.3s;
    color: white;
}

.weather-cards .card.shower {
    background: #48bb78; /* Vibrant green for showers */
}

.weather-cards .card.rain {
    background: #3182ce; /* Deep blue for rain */
}

.weather-cards .card.wind {
    background: #ed8936; /* Warm orange for wind */
}

.weather-cards .card:hover {
    transform: translateY(-5px);
    background: #9f7aea; /* Lighter purple on hover */
    color: black;
}

.search-btn, .location-btn {
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background 0.3s, color 0.3s;
}

.search-btn:hover, .location-btn:hover {
    transform: translateY(-2px);
    background: #9f7aea;
    color: black;
}

.current-weather:hover {
    transform: translateY(-5px);
    background: #9f7aea;
    color: black;
}

#tempChart {
    border-radius: 15px;
    padding: 10px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .weather-input, .weather-data {
        width: 100%;
    }
    .current-weather {
        flex-direction: column;
        text-align: center;
    }
    .icon {
        margin-top: 15px;
    }
    .weather-cards {
        grid-template-columns: 1fr;
    }
}