:root {
    --primary-color: #3a7dca;
    --secondary-color: #5c9ce5;
    --background-color: #f4f7f9;
    --text-color: #333;
    --card-bg-color: #ffffff;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
   background-image: url('images/default.jpg');
   background-size: cover;
   background-position: center;
   background-repeat: no-repeat;
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 900px;
    background-color: rgba(244, 247, 249, 0.25); 
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 30px;
    box-sizing: border-box;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--text-color); 
    text-shadow: none; 
}

.tagline {
    font-size: 1.1rem;
    font-weight: 500;
    color: #000000; 
    text-shadow: none;
}
.city-input-area {
    display: flex;
    justify-content: center;
}

.city-input-area input {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.city-input-area input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.map-tab-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.tab-link {
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    background-color: var(--primary-color);
    color: white;
}

.tab-link:hover {
    opacity: 0.85;
}

.tab-link.active {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background-color: var(--secondary-color);
}
.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
#map {
    height: 450px;
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

/* Weather Display Styles */
.weather-info-container, .forecast-container, #clothing-content, #aqi-content {
    text-align: center;
}

.current-weather-card, .aqi-card, .forecast-card {
    /* --- The Glassmorphism Effect --- */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    box-shadow: var(--shadow);
}
.current-weather-card, .aqi-card {
    padding: 25px;
    margin-bottom: 25px;
}

.current-weather-card h2 {
    margin-top: 0;
    font-size: clamp(1.4rem, 6vw, 2.2rem);
    word-break: break-all; 
}
.current-weather-card .temp {
    font-size: 3.5rem;
    font-weight: 600;
}

.weather-details {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.forecast-card {
   padding: 15px; 
}

.forecast-card img {
    width: 50px;
    height: 50px;
}

#clothing-content h2, #aqi-content h2 {
    color: var(--text-color); 
}
#clothing-content p {
    font-weight: 500;   
    color: #000000;      
}
.aqi-level {
    font-size: 2.5rem;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
    color: white;
    margin-bottom: 15px;
}
.advice-text {
    color: #000000; 
    font-weight: 500;
}
.error-message {
    background: rgba(255, 235, 238, 0.3); 
    color: #000000; 
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #c62828;
    text-align: center;
}
.station-info {
    font-size: 0.8rem;
    color: #666; 
    margin-top: -15px; 
    margin-bottom: 10px;
}