:root {
    --bg-color: #2c3e50;
    --text-color: #ecf0f1;
    --accent-color: #3498db;
    --card-bg: #34495e;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    padding-top: 50px;
    font-family: var(--font-family);
}

.weather-widget {
    width: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.widget-header {
    padding: 15px;
    background-color: rgba(0,0,0,0.2);
    text-align: center;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.current-weather {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.city-name { margin: 0; font-size: 1.5em; font-weight: 600; }
.weather-icon { width: 100px; height: 100px; border-radius:15px; }
.temp-large { font-size: 3.5em; font-weight: bold; margin: 10px 0; line-height: 1; }
.condition { font-size: 1.1em; text-transform: capitalize; opacity: 0.9; }
.wind-chill { font-size: 0.9em; opacity: 0.7; margin-top: 5px; }

/* Hourly Forecast with Scroll */
.hourly-forecast {
    padding: 15px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.section-title { font-size: 0.75em; text-transform: uppercase; letter-spacing: 1px; opacity: 0.6; margin-bottom: 10px; padding-left: 5px; }

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* Hide scrollbar IE/Edge */
    scrollbar-width: none;  /* Hide scrollbar Firefox */
}
.scroll-container::-webkit-scrollbar { display: none; } /* Hide scrollbar Chrome/Safari */

.hour-item {
    min-width: 100px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.8em;
    border-radius:15px;
}
.hour-item img { width: 65px; height: 65px; display: block; margin: 0 auto;border-radius:15px;}

/* Navigation Arrows */
.scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    z-index: 2;
}
.nav-left { left: 2px; }
.nav-right { right: 2px; }
.scroll-nav:hover { background: var(--accent-color); }

/* 5 Day Forecast */
.daily-forecast {
    padding: 15px;
    flex-grow: 1;
}

.day-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.day-row:last-child { border-bottom: none; }
.day-name { width: 100px; font-weight: bold; font-size: 0.9em; }
.day-icon img { width: 60px; vertical-align: middle;border-radius:15px; }
.day-temp { width: 90px; text-align: right; font-size: 0.9em; }
.high { font-weight: bold; color: #fff; margin-right: 8px; }
.low { opacity: 0.6; color: #bdc3c7; }

.error-msg { padding: 20px; text-align: center; color: #e74c3c; background: white; }

@media (max-width: 600px) {
    .weather-icon { width: 150px; height: 150px; }
    .hour-item img { width: 80px; height: 80px; }
    .day-icon img { width: 60px; }
    .temp-large { font-size: 5em; }
    .city-name { font-size: 2.2em; }
    .condition { font-size: 1.4em; }
    .wind-chill { font-size: 1.1em; }
    .section-title { font-size: 1em; }
    .hour-item { font-size: 1.1em; min-width: 100px; }
    .day-name { font-size: 1.3em; width: 120px; }
    .day-temp { font-size: 1.3em; width: 110px; }
    .widget-header { font-size: 1em; }
}