/* ── Global background ──────────────────────────────────────── */
html {
    overflow-y: scroll; /* always show scrollbar — prevents centered #container shifting when scrollbar appears/disappears between pages */
}

body {
    background-color: #ffffff;
}

/* ── Override legacy layout shell (notices_16.css / abs.css) ── */
#container {
    box-sizing: border-box;
}

#header {
    width: 100% !important;
    height: auto !important;
    float: none !important;
    background-image: none !important;
    background-color: transparent !important;
    box-sizing: border-box;
    padding: 0;
}

/* ── Site header bar ────────────────────────────────────────── */
.site-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    background: #ffffff url('/Images/header_background.png') no-repeat left center;
    background-size: auto 100%;
    border-bottom: 3px solid #0cada2;
    height: 100px;
    width: 100%;
    box-sizing: border-box;
    padding: 0 20px;
}

/* Transparent home link overlaid on the logo area */
.site-header-logo-link {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
}

/* Acting-as selector in header */
.site-header-actingas {
    display: flex;
    align-items: center;
    gap: 6px;
}

.site-header-actingas-label {
    font-size: 11px;
    color: #555;
    white-space: nowrap;
    font-weight: 400;
}

.site-header-actingas-select {
    font-size: 11px;
    padding: 4px 6px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f8f9fa;
    color: #212529;
    max-width: 160px;
    cursor: pointer;
    font-family: inherit;
}

.site-header-actingas-select:focus {
    outline: none;
    border-color: #0cada2;
}

.site-header-actingas-btn {
    font-size: 11px;
    padding: 4px 12px;
    background: #0cada2;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    transition: background 0.15s;
}

.site-header-actingas-btn:hover {
    background: #0b9e95;
}

.site-header-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid #ccc;
    color: #444;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.site-header-logout:hover {
    color: #fff;
    background: #0cada2;
    border-color: #0cada2;
}

/* ── Acting-as banner ───────────────────────────────────────── */
.site-actingas-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
    padding: 5px 20px;
    font-size: 12px;
    color: #664d03;
    width: 100%;
    box-sizing: border-box;
}

.site-actingas-stop {
    margin-left: 4px;
    color: #664d03;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.75;
    transition: opacity 0.15s;
}

.site-actingas-stop:hover {
    opacity: 1;
    color: #4a3800;
    text-decoration: none;
}

/* ── Content area — horizontal padding matches nav/header ──── */
#content {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    padding: 0 20px;
    box-sizing: border-box;
}

.fullWidthPanel {
    width: 100% !important;
    float: none !important;
    box-sizing: border-box;
}

/* ── Nav bar ────────────────────────────────────────────────── */
.site-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

/* ATC-strip style nav links */
.site-nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 5px solid #ced4da;
    border-radius: 4px;
    padding: 7px 14px 7px 10px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
    transition: border-left-color 0.15s, background-color 0.15s, color 0.15s;
    cursor: pointer;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.site-nav-link i {
    font-size: 0.85rem;
    flex-shrink: 0;
}

.site-nav-link:hover {
    text-decoration: none;
}

/* Per-section colours */
.site-nav-link[data-page="home"]:hover,
.site-nav-link[data-page="home"].active {
    border-left-color: #0070bb;
    background: #f0f7ff;
    color: #0070bb;
}

.site-nav-link[data-page="bookings"]:hover,
.site-nav-link[data-page="bookings"].active {
    border-left-color: #198754;
    background: #f0fff4;
    color: #146c43;
}

.site-nav-link[data-page="aircraft"]:hover,
.site-nav-link[data-page="aircraft"].active {
    border-left-color: #6f42c1;
    background: #f8f5ff;
    color: #6f42c1;
}

.site-nav-link[data-page="notices"]:hover,
.site-nav-link[data-page="notices"].active {
    border-left-color: #e67e22;
    background: #fff8f0;
    color: #c0620a;
}

.site-nav-link[data-page="reports"]:hover,
.site-nav-link[data-page="reports"].active {
    border-left-color: #dc3545;
    background: #fff5f5;
    color: #b02a37;
}

.site-nav-link[data-page="profile"]:hover,
.site-nav-link[data-page="profile"].active {
    border-left-color: #0cada2;
    background: #f0fffe;
    color: #0cada2;
}

.site-nav-link[data-page="help"]:hover,
.site-nav-link[data-page="help"].active {
    border-left-color: #0d6efd;
    background: #f0f4ff;
    color: #0d6efd;
}

/* Active state slightly stronger shadow */
.site-nav-link.active {
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1020px) {
    #container   { width: 100% !important; }
    #content     { padding: 0 12px; }
    .site-header { padding: 0 12px; }
    .site-nav    { padding: 6px 12px; }
}

@media (max-width: 768px) {
    .site-header {
        height: 70px;
        gap: 6px;
    }

    .site-header-logo-link { width: 180px; }
    .site-header-actingas-label { display: none; }

    .site-nav { gap: 4px; }

    .site-nav-link {
        padding: 6px 10px 6px 8px;
        font-size: 0.76rem;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .site-header { height: 56px; }
    .site-header-logo-link { width: 120px; }

    .site-nav-link .site-nav-label { display: none; }
    .site-nav-link { padding: 8px 10px; gap: 0; justify-content: center; min-width: 36px; }
    .site-nav-link i { font-size: 1rem; }
}

/* ── Footer ─────────────────────────────────────────────────── */
#footer {
    width: 100% !important;
    height: auto !important;
    clear: both;
    margin-top: 6px;
    border-top: 1px solid #dee2e6;
    background: #fff;
    box-sizing: border-box;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 6px 20px;
}

#bmc-btn,
.bmc-btn,
#bmc-wbtn {
    transform: scale(0.75);
    transform-origin: center center;
    display: inline-block;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    display: flex !important;
    align-items: center;
    border-right: 1px solid #dee2e6 !important;
    padding: 2px 12px !important;
    line-height: 1.5 !important;
    font-size: 0.78rem;
    color: #6c757d;
    white-space: nowrap;
}

.footer-links li:last-child {
    border-right: none !important;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #0cada2;
}

@media (max-width: 600px) {
    .footer-links {
        flex-direction: column;
        gap: 2px;
    }

    .footer-links li {
        border-right: none !important;
        padding: 3px 0 !important;
    }
}
