body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #4facfe, #00f2fe);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    transition: 0.5s;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 320px;
}

button {
    margin-top: 10px;
    padding: 8px;
    cursor: pointer;
    border: none;
    border-radius: 5px;
    background: #4facfe;
    color: white;
}

.weather-box {
    margin-top: 15px;
    display: none;
}

.error {
    color: red;
}

.loader {
    border: 5px solid #eee;
    border-top: 5px solid #4facfe;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    margin: 10px auto;
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.dark {
    background: #1e1e1e;
    color: white;
}

.forecast {
    margin-top: 15px;
    display: flex;
    overflow-x: auto;
    gap: 10px;
}

.forecast div {
    background: #eee;
    padding: 10px;
    border-radius: 8px;
    min-width: 80px;
}