*{
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #eef2ff;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
}
body{
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0f1724 0%, #071029 100%);
    color: #eef2ff;
    padding: 40px;
} 
.card{
    width: 100%;
    max-width: 420px;
    padding: 28px;
    border-radius: 16px;
    background-color: #667eea;
    background: linear-gradient(135deg, #667eea 20%, #764ba2 100%);
    box-shadow: 0 10px 30px rgba(36, 30, 60, 0.45);
    margin: 0 auto;
    color: #fff;
    position: relative;
    overflow: hidden;
} 
.search{
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}
.search input{
    border: 0;
    color: #fff;
    background: rgba(255,255,255,0.08);
    font-size: 16px;
    border-radius: 30px;
    height: 50px;
    padding: 0 20px;
    width: calc(100% - 60px);
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.25);
}
.search input::placeholder{ color: rgba(255,255,255,0.7); }
.search button{
    border: 0;
    outline: 0;
    background: linear-gradient(90deg,#ffcc66,#ff9a66);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor: pointer;
    transition: transform 150ms ease, box-shadow 150ms ease;
    box-shadow: 0 6px 18px rgba(255,138,66,0.12);
}
.search button:hover{ transform: translateY(-3px); box-shadow: 0 12px 24px rgba(255,138,66,0.18); }
.search button img{ width: 20px; filter: none; } 
.weather{
    display: none;
    text-align: center;
    margin-top: 18px;
}
.weather-img{
    width: 140px;
    margin: 0 auto 8px;
    display:block;
    filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}
.temp{
    font-size: 64px;
    font-weight: 700;
    margin: 6px 0;
    color: #fff;
}
.city{
    font-size: 20px;
    font-weight: 500;
    margin: 0 0 12px 0;
    color: rgba(255,255,255,0.95);
}
.details{
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255,255,255,0.95);
    padding: 12px 6px;
    margin-top: 20px;
}
.col{
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:12px;
}
.col img{ width: 34px; opacity: 0.95; flex-shrink:0; }
.col .metric{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    gap:2px;
}
.col .humidity, .col .wind{ font-size: 18px; margin:0; font-weight:600; text-align:left; }
.col p{ margin:0; font-size:13px; opacity:0.9; text-align:left; } 
@media (max-width: 480px){
  .card{ padding: 20px; border-radius: 14px; max-width: 360px; }
  .temp{ font-size: 48px; }
  .weather-img{ width: 120px; }
  .details{ flex-direction: column; gap: 12px; align-items: stretch; }
  .search input{ width: calc(100% - 56px); }
  .col{ flex-direction: column; align-items: center; gap:6px; }
}

.error{
    display: none;
    text-align: left;
    font-size: 14px;
    margin-top: 12px;
    color: #ffd2d2;
}

