/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px 0;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Search Section */
.input-group {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

#locationInput {
    border: 2px solid transparent;
    padding: 15px;
    font-size: 1.1rem;
}

#locationInput:focus {
    border-color: #667eea;
    box-shadow: none;
}

.btn {
    padding: 15px 25px;
    font-weight: 600;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.btn-success {
    background: linear-gradient(135deg, #34b1aa 0%, #2c7a6e 100%);
}

/* Current Weather Card */
.current-weather-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px;
    padding: 30px;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.current-weather-icon {
    width: 100px;
    height: 100px;
    filter: brightness(0) invert(1);
}

.weather-details p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.weather-details i {
    width: 25px;
    margin-right: 10px;
}

/* Air Quality Card */
.air-quality-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.aqi-box {
    padding: 15px;
    border-radius: 15px;
    background: #f8f9fa;
    text-align: center;
    transition: transform 0.3s;
}

.aqi-box:hover {
    transform: translateY(-5px);
}

.aqi-good { background: #00e400; color: white; }
.aqi-moderate { background: #ffff00; color: black; }
.aqi-unhealthy-sensitive { background: #ff7e00; color: white; }
.aqi-unhealthy { background: #ff0000; color: white; }
.aqi-very-unhealthy { background: #8f3f97; color: white; }
.aqi-hazardous { background: #7e0023; color: white; }

/* Astronomy Card */
.astronomy-card {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.astronomy-card i {
    color: #f1c40f;
}

/* Forecast Cards */
.forecast-row {
    margin: 0 -10px;
}

.forecast-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s;
    height: 100%;
}

.forecast-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.forecast-temp {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
}

.forecast-temp .text-danger {
    margin-right: 10px;
}

/* Hourly Forecast */
.hourly-forecast {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.hourly-scroll {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 0;
    scrollbar-width: thin;
}

.hourly-item {
    min-width: 100px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s;
}

.hourly-item:hover {
    background: #e9ecef;
    transform: scale(1.05);
}

/* Alert Card */
.alert-card {
    background: #fff3cd;
    border-radius: 20px;
    padding: 20px;
}

.alert {
    border-radius: 15px;
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px;
    }
    
    .current-weather-card .row > div {
        margin-bottom: 20px;
    }
    
    .display-2 {
        font-size: 3rem;
    }
    
    .forecast-card {
        margin-bottom: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

#weatherInfo > div {
    animation: fadeIn 0.5s ease-out;
}