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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

header {
    text-align: center;
    margin-bottom: 30px;
}

header h1 {
    color: #2d3436;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

header p {
    color: #636e72;
    font-size: 1.1rem;
}

.city-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.city-selector label {
    font-weight: bold;
    color: #2d3436;
}

#citySelect {
    padding: 10px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    min-width: 200px;
}

#getWeather {
    background: #00b894;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

#getWeather:hover {
    background: #00a085;
}

.loading, .error {
    text-align: center;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
}

.loading {
    background: #e3f2fd;
    color: #1976d2;
}

.error {
    background: #ffebee;
    color: #d32f2f;
}

.hidden {
    display: none;
}

.weather-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.weather-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.weather-card h3 {
    color: #2d3436;
    margin-bottom: 15px;
    font-size: 1.3rem;
    text-align: center;
}

.weather-info {
    display: grid;
    gap: 10px;
}

.weather-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f4;
}

.weather-item:last-child {
    border-bottom: none;
}

.weather-label {
    font-weight: bold;
    color: #636e72;
}

.weather-value {
    color: #2d3436;
    font-weight: 500;
}

.temp-high {
    color: #e17055;
}

.temp-low {
    color: #74b9ff;
}

.rainfall {
    color: #0984e3;
}

.sun-time {
    color: #fdcb6e;
}

@media (max-width: 768px) {
    .city-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    #citySelect {
        min-width: 100%;
    }
    
    .weather-container {
        grid-template-columns: 1fr;
    }
}