* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #0f172a;
    color: #f1f5f9;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 40px 0;
}

.card {
    background: #1e293b;
    padding: 30px;
    border-radius: 14px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    margin-bottom: 30px;
}

h1, h2 {
    margin-bottom: 20px;
}

input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: none;
    background: #334155;
    color: white;
}

button {
    background: #2563eb;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #1d4ed8;
}

.navbar {
    background: #1e293b;
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
}

.weather-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.weather-box {
    background: #334155;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
    }
}

.center-box {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.error {
    background: #7f1d1d;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}

.success {
    background: #14532d;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
}