body {
    margin: 0;
    height: 100vh;
    background: linear-gradient(135deg, #56ccf2, #2f80ed);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: "Segoe UI", sans-serif;
}

.weather-card {
    background: white;
    padding: 30px;
    width: 320px;
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.weather-card h2 {
    margin-bottom: 15px;
}

input {
  height: 50px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #ccc;
  margin-bottom: 12px;
  font-size: 16px;
  box-sizing: border-box;
}

button {
  height: 50px;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: #2f80ed;
  color: white;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
  box-sizing: border-box;
}


button:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.result {
    margin-top: 20px;
    font-size: 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.loader {
    width: 40px;
    height: 40px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #3b82f6;
    border-radius: 50%;
    margin: 15px auto;
    animation: spin 1s linear infinite;
}

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

.hidden {
    display: none;
}
body.sunny {
    background: linear-gradient(to right, #fbbf24, #f59e0b);
}

body.cloudy {
    background: linear-gradient(to right, #94a3b8, #64748b);
}

body.rainy {
    background: linear-gradient(to right, #60a5fa, #2563eb);
}

body.hazy {
    background: linear-gradient(to right, #cbd5e1, #94a3b8);
}
