* {
    margin: 0;
    padding: 0;
    box-sizing:border-box;
    font-family: 'Segoe UI' , sans-serif;
}

body{
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.container{
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

/*SEARCH BAR*/
.search-bar{
    display:flex;
    gap: 10px;
    margin-bottom: 24px;
}

.search-bar input{
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    outline: none;
}

.search-bar input::placeholder{
    color: rgba(255, 255, 255, 0.5);
}

.search-bar button{
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #e94560;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.search-bar button:hover{
    background: #c73652;
}

/*WEATHER CARD*/
.weather-card{
    background: rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

weather-card h2{
    font-size: 28px;
    margin-bottom: 8px;
}

.weather-card img{
    width: 80px;
    height: 80px;
}

.weather-card p{
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
    text-transform: capitalize;
}

.weather-card h1{
    font-size: 64px;
    font-weight: 700;
    margin-bottom:  16px;
}

.details{
    display: flex;
    justify-content: space-around;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

/*ERROR*/
.error{
    color: #e94560;
    text-align: center;
    margin-top: 16px;
    font-size: 15px;
    min-height: 20px;
}

#locationBtn {
  width: 100%;
  padding: 12px;
  margin-bottom: 16px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#locationBtn:hover {
  background: rgba(255, 255, 255, 0.2);
}

#map {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  margin-top: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* AQI CARD */
.aqi-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.aqi-card h3 {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.aqi-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.aqi-badge {
  font-size: 48px;
  font-weight: 700;
}

.aqi-label {
  font-size: 24px;
  font-weight: 600;
}

.aqi-advice {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
  line-height: 1.5;
}

.pollutants {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* AQI COLOURS */
.aqi-good { color: #00e676; }
.aqi-fair { color: #ffee58; }
.aqi-moderate { color: #ffa726; }
.aqi-poor { color: #ef5350; }
.aqi-verypoor { color: #ab47bc; }