* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #74ebd5 0%, #9face6 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.weather-container {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 350px;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    color: #333;
}

.search-box {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#cityInput {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s;
}

#cityInput:focus {
    border-color: #74ebd5;
}

#searchBtn {
    background-color: #9face6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#searchBtn:hover {
    background-color: #74ebd5;
}

.hidden {
    display: none !important;
}

.error {
    color: #e74c3c;
    margin-top: 15px;
    font-size: 14px;
}

#weatherResult {
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

#cityName {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.weather-icon {
    font-size: 64px;
    margin: 15px 0;
}

#temperature {
    font-size: 36px;
    font-weight: bold;
    color: #34495e;
}

#weatherDesc {
    font-size: 18px;
    color: #7f8c8d;
    text-transform: capitalize;
    margin-top: 5px;
}

#loading {
    color: #7f8c8d;
    margin-top: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
