/* Optimized by Vedant Vyawhare */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 1s ease;
    background: #2c3e50;
    overflow: hidden;
}

.glass-container {
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    color: white;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

.search-box {
    display: flex;
    background: rgba(255,255,255,0.2);
    border-radius: 50px;
    padding: 5px 15px;
    margin-bottom: 25px;
    gap: 10px;
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 10px;
    font-size: 16px;
}

.search-box button {
    background: white;
    border: none;
    width: 35px; height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button:hover { transform: scale(1.1); filter: brightness(0.9); }

.animate-float {
    animation: float 4s ease-in-out infinite;
    width: 140px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.temp { font-size: 70px; font-weight: 700; }
.city { font-size: 28px; font-weight: 300; text-transform: uppercase; letter-spacing: 2px; }

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 40px;
}

.stat-card {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stat-card img { width: 30px; }

.error-panel { display: none; color: #ff6b6b; font-weight: bold; margin-bottom: 15px; }

.dev-tag { margin-top: 30px; font-size: 10px; opacity: 0.5; }