/* --- General Styling --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f7f7f7;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    padding: 20px;
}

/* --- Main Application Card --- */
.weather-app {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.weather-app:hover {
    transform: translateY(-5px);
}

h1 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 5px;
}

p.subtitle {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 25px;
}

/* --- Search Bar --- */
.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

#city-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#city-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

#search-btn {
    padding: 12px;
    border: none;
    background-color: #4a90e2;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#search-btn:hover {
    background-color: #357abd;
    transform: scale(1.1);
}

/* --- Weather Display --- */
.weather-info {
    display: none; /* Hidden by default */
}

#weather-icon {
    width: 120px;
    height: 120px;
    margin: 10px auto;
}

#temperature {
    font-size: 3.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

#temperature sup {
    font-size: 1.5rem;
    font-weight: 500;
}

#description {
    font-size: 1.2rem;
    color: #555;
    text-transform: capitalize;
    margin-bottom: 20px;
}

#city-name {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

/* --- Additional Details --- */
.details-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item .icon {
    font-size: 1.8rem;
    color: #4a90e2;
}

.detail-item .text span {
    display: block;
    text-align: left;
}

.detail-item .label {
    font-size: 0.8rem;
    color: #888;
}

.detail-item .value {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
}

/* --- Error Message --- */
.error-message {
    display: none; /* Hidden by default */
    color: #d9534f;
    margin-top: 20px;
    font-weight: 500;
}
