@import url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');

body {
    background: linear-gradient(rgba(37, 47, 59, 1), rgba(89, 100, 117, 1));
    color: #E0E1DD;
    font-family: "Kanit", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    transition: background 1s ease-in-out, color 1s ease-in-out;
}

/*WeatherColorThemes Day*/

body.theme-day-hot .app-container {
    background: linear-gradient(to top, rgba(255, 237, 191, 0.8), rgba(255, 114, 81, 0.8));
    color: #333;
}

body.theme-day-clear .app-container {
    background: linear-gradient(180deg, rgba(135, 206, 235, 0.7) 0%, rgba(70, 130, 180, 0.8) 100%);
    color: #2c3e50;
}

body.theme-day-cloudy .app-container {
    background: linear-gradient(180deg, rgba(211, 211, 211, 0.7) 0%, rgba(169, 169, 169, 0.8) 100%);
    color: #34495e;
}

body.theme-day-rain .app-container {
    background: linear-gradient(180deg, rgba(176, 196, 222, 0.7) 0%, rgba(119, 136, 153, 0.8) 100%);
    color: #2c3e50;
}

/*WeaterColorThemes Night*/
body.theme-night-clear .app-container {
    background: linear-gradient(180deg, rgba(137, 137, 208, 0.8) 0%, rgba(15, 15, 54, 0.9) 100%);
    color: #ecf0f1;
}

body.theme-night-cloudy .app-container {
    background: linear-gradient(180deg, rgba(52, 73, 94, 0.8) 0%, rgba(44, 62, 80, 0.9) 100%);
    color: #ecf0f1;
}

body.theme-night-rain .app-container {
    background: linear-gradient(180deg, rgba(44, 62, 80, 0.85) 0%, rgba(10, 10, 10, 0.95) 100%);
    color: #ecf0f1;
}

.forecast-container {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    overflow-x: auto;
}

.forecast-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    flex-shrink: 0;
    width: 90px;
    transition: all 0.3s ease-in-out;
}

.forecast-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.forecast-card p {
    margin: 0;
    font-size: 0.9rem;
}

.forecast-card .temp {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.app-container {
    background: linear-gradient(
      135deg, 
      rgba(255, 255, 255, 0.15), 
      rgba(255, 255, 255, 0.05)
    );
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    width: 60%;
    max-width: 700px;
    text-align: center;
    transition: all 0.5s ease-in-out;
}
#search-form { display: flex; gap: 0.5rem; margin: 1.5rem 0; }
#city-input {
    flex-grow: 1; 
    padding: 0.75rem;
    border: none; 
    border-radius: 0.5rem; 
    background: rgba(0, 0, 0, 0.2);
    color: #E0E1DD;
    font-size: 1rem;
}

#search-form button {
    padding: 0.75rem 1rem; background-color: #00A6FB; color: #051923;
    border: none; border-radius: 0.5rem; font-size: 1rem; font-weight: bold;
    cursor: pointer; transition: background-color 0.2s;
}

#search-form button:hover { 
    background-color: #0582CA; 
    transform: translateY(-2px);  }

#search-form button:active {
    transform: translateY(0);
}
.weather-info { 
    margin-top: 1.5rem; 
    min-height: 150px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);}
.weather-info .temp { 
    font-size: 3rem; 
    font-weight: bold; 
    margin: 0.5rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);}
.error { color: #ff4d4d; font-weight: bold; }