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

body {
    background-color: #000;
    color: white;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

.dashboard-container {
    display: grid;
    /* Weather (Fixed) | Carousel (Flexible) | Title (15% Height) */
    grid-template-rows: 110px 1fr 15vh;
    height: 100vh;
    width: 100%;
}

/* --- Weather Bar (TOP FIX) --- */
.weather-bar {
    background-color: #1a3c6e;
    display: flex;
    flex-direction: row; /* Ensure items stay side-by-side */
    align-items: center;
    padding: 0 30px;
    height: 110px; /* Force height */
    border-bottom: 2px solid #444;
    overflow: hidden;
}

.weather-left {
    display: flex;
    align-items: center;
    gap: 20px;
    border-right: 1px solid rgba(255,255,255,0.2);
    padding-right: 30px;
    margin-right: 30px;
    height: 80%; /* Vertical centering */
}

.weather-title-group { display: flex; flex-direction: column; }
.town-name { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.current-stats { display: flex; align-items: center; gap: 15px; }
.current-icon { font-size: 3rem; }
.current-temp { font-size: 2.5rem; font-weight: 700; }

.forecast-container {
    display: flex;
    flex-grow: 1;
    justify-content: space-around; /* Spread days out horizontally */
    align-items: center;
}

.forecast-day { display: flex; flex-direction: column; align-items: center; }
.f-day-name { font-size: 0.85rem; font-weight: 600; margin-bottom: 2px; }
.f-icon { font-size: 1.5rem; margin: 2px 0; }
.f-temps { font-size: 0.85rem; font-weight: bold; display: flex; gap: 8px; }
.high-temp { color: #ff8c42; }
.low-temp { color: #64b5f6; }

/* --- Carousel (MIDDLE FIX) --- */
.main-content {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
}

#carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 1.2s cubic-bezier(0.45, 0, 0.55, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

#carousel-overlay-wrap {
    position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    padding: 30px 0;
    z-index: 10;
}

/* --- Title Bar (BOTTOM FIX) --- */
.title-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 2px solid #333;
}

#title-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 60px;
    align-items: center;
}