/* Custom CSS for WeatherVista Dashboard */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #e0f2fe 0%, #ddd6fe 100%);
    min-height: 100vh;
}

.weather-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar for forecast cards */
.forecast-container::-webkit-scrollbar {
    height: 6px;
}

.forecast-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.forecast-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

.forecast-container::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Card hover effects */
.weather-card {
    transition: all 0.3s ease;
}

.weather-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Search bar styling */
.search-container {
    position: relative;
}

.search-input {
    transition: all 0.3s ease;
}

.search-input:focus {
    width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 8px;
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:hover {
    background: #f8f9fa;
}

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

/* Weather icon animations */
.weather-icon-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* UV Index colors */
.uv-low { background-color: #10b981; }
.uv-moderate { background-color: #f59e0b; }
.uv-high { background-color: #ef4444; }
.uv-very-high { background-color: #8b5cf6; }
.uv-extreme { background-color: #6b21a8; }

/* Air Quality colors */
.aqi-good { background-color: #10b981; }
.aqi-moderate { background-color: #f59e0b; }
.aqi-unhealthy-sensitive { background-color: #f97316; }
.aqi-unhealthy { background-color: #ef4444; }
.aqi-very-unhealthy { background-color: #8b5cf6; }
.aqi-hazardous { background-color: #6b21a8; }

/* Loading animation */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .search-input:focus {
        width: 250px;
    }
    
    .forecast-grid {
        grid-template-columns: 1fr;
    }
}

/* Chart container responsive */
.chart-container {
    position: relative;
    height: 200px;
    width: 100%;
}

@media (max-width: 640px) {
    .chart-container {
        height: 150px;
    }
}

/* Custom button styles */
.btn-primary {
    background: var(--primary-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Notification toast */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}