/*
 * Website-style header (Option B): yellow strip, white bar, logo and title on the left,
 * navy underline tabs in the middle, links and the existing top bar on the right.
 * Dash loads every .css in assets/ automatically.
 */

:root {
    --header-height: 64px;          /* white row */
    --header-strip: 4px;            /* yellow strip above it */
}

.site-header {
    position: relative;
    z-index: 3000;                  /* stays above the map, overlays and panels */
    background: #FFFFFF;
    border-bottom: 1px solid #E3E9EE;
    color: #003366;
}
.site-header-strip {
    height: var(--header-strip);
    background: #FFE45C;
}
.site-header-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    min-height: var(--header-height);
    padding: 0 24px;
}
.site-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-logo {
    display: block;
    height: 40px;
    width: auto;
}
.site-divider {
    width: 1px;
    height: 28px;
    background: #E3E9EE;
}
.site-title {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}
.site-header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
}

/* Account area from components/header.py: About link, Login / Logout, greeting */
.account-box {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-header .header-link {
    margin: 0;
    color: #1F5FA8;
    font-weight: 600;
    text-decoration: none;
}
.site-header .header-link:hover { text-decoration: underline; }
.site-header .header-btn {
    margin: 0;
    font: inherit;
    font-size: 14px;
    padding: 7px 14px;
    border: 1px solid #CBD5DE;
    border-radius: 6px;
    background: #FFFFFF;
    color: #003366;
    cursor: pointer;
}
.site-header .header-btn:hover { background: #F3F6F8; }

/* ---------- tabs: a floating bar over the top of each page (rendered by layout.py) ---------- */
.site-tabs-anchor {
    position: relative;
    height: 0;
}
.site-tabs-slot {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 540px;                   /* three equal tabs of about 180px */
    max-width: calc(100vw - 24px);
    z-index: 1100;                  /* above the map; below pop-ups and the station overlay */
}
.site-tabs {
    display: grid !important;         /* equal-width tabs (Dash stacks them on small screens) */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 100% !important;
    height: auto !important;
    padding: 4px !important;
    background: #FFFFFF !important;
    border: none !important;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 31, 61, 0.18) !important;
}
.site-tabs .custom-tab {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    height: 40px !important;
    padding: 0 8px !important;
    margin: 0;
    opacity: 1;
    background: transparent !important;
    border: none !important;
    border-radius: 8px !important;
    color: #003366 !important;
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
}
.site-tabs .custom-tab:hover { background: #F3F6F8 !important; }
.site-tabs .custom-tab--selected,
.site-tabs .custom-tab--selected:hover {
    background: #1F5FA8 !important;
    color: #FFFFFF !important;
    font-weight: 600;
}

/* Phones: slightly smaller text so the three equal tabs fit */
@media (max-width: 640px) {
    .site-tabs .custom-tab { font-size: 14px; }
}

/* The station statistics overlay starts below the header, so its Close button stays visible */
#station-info {
    top: calc(var(--header-height) + var(--header-strip) + 1px) !important;
    height: calc(100% - var(--header-height) - var(--header-strip) - 1px) !important;
}