* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 20px;
    margin-bottom: 5px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.app-container {
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    flex: 1;
    padding: 15px 25px;
    border-radius: 15px;
    border: none;
    outline: none;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

button {
    padding: 12px 20px;
    border-radius: 15px;
    border: none;
    background: #fff;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

button:hover {
    background: #eee;
}

.weather-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px 30px;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.date {
    font-size: 0.9rem;
    opacity: 0.8;
}

#city-name {
    font-size: 2rem;
    margin: 10px 0;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.temp-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#temperature {
    font-size: 5.5rem;
    font-weight: 300;
}

#weather-icon {
    width: 100px;
}

#description {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.details {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 30px;
    gap: 10px;
}

.label {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 5px;
    font-weight: 300;
}

.details .col p:last-child {
    font-weight: 600;
}

.hidden {
    display: none;
}

.status-msg {
    margin-top: 20px;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 400px) {
    #temperature {
        font-size: 3.5rem;
    }
}
