:root {
    --primary: rgba(255, 255, 255, 0.9);
    --secondary: rgba(255, 255, 255, 0.7);
    --tertiary: rgba(255, 255, 255, 0.5);
    --bg-glass: rgba(20, 25, 45, 0.4);
    --bg-glass-hover: rgba(30, 40, 65, 0.5);
    --border-glass: rgba(255, 255, 255, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    
    --accent: #00f0ff;
    --accent-glow: 0 0 10px rgba(0, 240, 255, 0.5);
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
}

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

body {
    font-family: var(--font-main);
    color: var(--primary);
    min-height: 100vh;
    overflow-x: hidden;
    background-color: #050510;
}

.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('bg.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    /* Adding a subtle overlay for better text readability */
    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(5,5,15,0.7) 0%, rgba(20,10,40,0.5) 100%);
    }
}

.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-glass);
    padding: 1.5rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.glass-panel:hover {
    background: var(--bg-glass-hover);
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo i {
    font-size: 2.5rem;
    color: var(--accent);
    text-shadow: var(--accent-glow);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
}

.logo .subtitle {
    font-size: 0.8rem;
    color: var(--secondary);
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--secondary);
}

.icon-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-glass);
    color: var(--primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.icon-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Grid Layout */
.grid-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: auto auto;
    gap: 2rem;
}

/* Hero Section */
.hero-card {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 1rem;
}

.weather-icon-large {
    font-size: 5rem;
    color: var(--accent);
    text-shadow: var(--accent-glow);
}

.temperature-display h2 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -2px;
}

.apparent-temp {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-top: 0.5rem;
}

.hero-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    background: rgba(0,0,0,0.2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--tertiary);
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-info .label {
    font-size: 0.75rem;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-info .value {
    font-size: 1rem;
    font-weight: 600;
}

/* 3-Day Summary */
.summary-card {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.summary-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 500;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.forecast-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
}

.forecast-item:hover {
    background: rgba(255,255,255,0.1);
}

.forecast-day {
    flex: 1;
    font-weight: 500;
}

.forecast-icon {
    font-size: 1.5rem;
    margin: 0 1rem;
    color: var(--accent);
}

.forecast-temps {
    flex: 1;
    text-align: right;
    font-weight: 600;
}

.forecast-temps .min {
    color: var(--tertiary);
    margin-right: 0.5rem;
}

/* Hourly Forecast List */
.hourly-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
}

.hourly-list-container {
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    /* Custom scrollbar for horizontal scroll */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.hourly-list-container::-webkit-scrollbar {
    height: 6px;
}
.hourly-list-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

.hourly-list {
    display: flex;
    gap: 1rem;
    min-width: max-content;
}

.hourly-day-header {
    padding: 0.5rem 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    border-bottom: 2px solid var(--accent);
    margin-bottom: 0.5rem;
}

.hourly-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    min-width: 80px;
    transition: background 0.2s ease;
}

.hourly-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hourly-item .time {
    font-size: 0.9rem;
    color: var(--secondary);
}

.hourly-item .icon {
    font-size: 1.8rem;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.hourly-item .temp {
    font-size: 1.2rem;
    font-weight: 600;
}

.hourly-item .humidity {
    font-size: 0.75rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Animations & Loaders */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading-shimmer {
    height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
    margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
    
    .hero-card, .summary-card, .hourly-card {
        grid-column: 1 / 2;
    }
    
    .hourly-card {
        grid-row: 3 / 4;
    }
}

@media (max-width: 600px) {
    .dashboard-container {
        padding: 1rem;
    }
    .hero-details {
        grid-template-columns: 1fr;
    }
}
