*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
/* ===== BODY - Apni image yahan lagao ===== */
body {
    min-height: 100vh;
    font-family: 'Poppins', sans-serif;
    background: url('weather.jpg') center center / cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
 
/* ===== MAIN CONTAINER ===== */
.container {
    position: relative;
    z-index: 10;
    width: 420px;
    max-width: 94vw;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    padding: 40px 36px 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}
 
/* ===== TITLE ===== */
.title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    margin-bottom: 28px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
 
.title::before {
    content: '🌤️ ';
    font-size: 1.5rem;
}
 
/* ===== INPUT ===== */
#city {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.3);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: #fff;
    outline: none;
    transition: border 0.25s, box-shadow 0.25s, background 0.25s;
    margin-bottom: 14px;
}
 
#city::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
 
#city:focus {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}
 
/* ===== BUTTON ===== */
button {
    width: 100%;
    padding: 14px 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.55);  /* input se thoda zyada opaque */
    color: #195da0;                          /* white nahi, dark blue text */
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.18s, background 0.2s;
}

button:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: translateY(-2px);
}
 
button:active {
    transform: translateY(0px);
}
 
/* ===== RESULT CARD ===== */
#result {
    display: none;
    margin-top: 26px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 24px 22px;
    text-align: center;
    animation: slideUp 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}
 
@keyframes slideUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
 
/* City name */
#result h2 {
    font-size: 1.55rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 4px;
}
 
/* Weather icon */
#result img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    margin: 4px 0;
}
 
/* Description */
#result h3 {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-transform: capitalize;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}
 
/* Stats row */
.stats-row {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    margin-top: 4px;
}
 
.stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    padding: 12px 8px;
}
 
.stat-box .stat-icon {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 4px;
}
 
.stat-box .stat-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
 
.stat-box .stat-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}
 
/* Error message */
#result h2.error-msg {
    font-size: 1.1rem;
    color: #ffe0e0;
    font-weight: 600;
}
 
/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: 30px 20px 28px;
    }
 
    .title {
        font-size: 1.4rem;
    }
 
    .stats-row {
        flex-direction: column;
    }
 
    .stat-box {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 10px 16px;
        text-align: left;
    }
 
    .stat-box .stat-icon {
        margin-bottom: 0;
        font-size: 1.5rem;
    }
}