/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #141e30, #243b55);
   /*ackground: linear-gradient(135deg, #232526, #414345);*/
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* MAIN CONTAINER */
.weather-app {
    background:#ECE2D0;
    padding: 25px;
    border-radius: 15px;
    width: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* TITLE */
.weather-app h1 {
    text-align: center;
    margin-bottom: 15px;
}

/* FORM */
form {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

input {
    flex: 1;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

button {
    padding: 10px 15px;
    border: none;
    background: #4facfe;
    color: white;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background: #3a8ee6;
}

/* LOADING + ERROR */
#loading {
    text-align: center;
    margin: 10px 0;
}

#error {
    color: red;
    text-align: center;
    margin: 10px 0;
}

/* WEATHER DISPLAY */
.weather-main {
    text-align: center;
}

.weather-main img {
    width: 80px;
}

#temperature {
    font-size: 2rem;
    font-weight: bold;
}

/* DETAILS GRID */
.weather-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.detail {
    background: #f1f1f1;
    padding: 10px;
    border-radius: 8px;
    text-align: center;
}

/* FORECAST */
#forecast {
    margin-top: 20px;
}

#forecast div {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
    text-align: center;
}

/* HISTORY */
#recent-searches {
    margin-top: 20px;
}

#search-history {
    list-style: none;
}

#search-history li {
    margin: 5px 0;
}

#search-history button {
    width: 100%;
    background: #eee;
    color: black;
}

#search-history button:hover {
    background: #ddd;
}

/* HIDDEN CLASS */
.hidden {
    display: none;
}