@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 350px;
    max-width: 90%;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

h1 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

.input-group {
    display: flex;
    margin-bottom: 20px;
}

input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 25px 0 0 25px;
    outline: none;
    font-size: 16px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

input:focus {
    background: #fff;
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

#backBtn {
    margin-bottom: 20px;
    border-radius: 25px;
    padding: 10px 20px;
}

.loading {
    display: none;
    color: #667eea;
    font-size: 18px;
    margin-top: 20px;
}

.weather-info {
    margin-top: 20px;
    animation: slideUp 0.5s ease-in-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.weather-info h2 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.weather-info .weather-main {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.weather-info .weather-main img {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}

.weather-info .weather-main .temp {
    font-size: 48px;
    font-weight: 300;
    color: #333;
}

.weather-info p {
    margin: 8px 0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.weather-info i {
    color: #667eea;
}

@media (max-width: 480px) {
    .container {
        width: 90%;
        padding: 20px;
    }
    .input-group {
        flex-direction: column;
    }
    input {
        border-radius: 25px;
        margin-bottom: 10px;
    }
    button {
        border-radius: 25px;
    }
}