﻿
:root {
    --accent: #06b6d4;
    --accent-dark: #0891b2;
    --muted: #6b7280;
    --bg: #f8fafb;
    --best-red: #c8102e;
}

/* Base */
html, body {
    height: 100%;
    margin: 0;
    font-family: Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial;
    background: var(--bg);
    color: #111827;
}

a {
    color: var(--accent);
    text-decoration: none;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden
}

    .skip-link:focus {
        left: 8px;
        top: 8px;
        width: auto;
        height: auto;
        background: #111;
        color: #fff;
        padding: 8px 12px;
        border-radius: 6px;
        z-index: 2000;
        text-decoration: none
    }

.small-muted {
    color: var(--muted)
}

/* Topbar — overflow visible only on specific nav elements, NOT on collapse elements */
.topbar {
    overflow: visible !important;
}

    .topbar .nav-wrapper,
    .topbar .dropdown,
    .topbar .dropdown-menu,
    .topbar .dropdown-submenu,
    .topbar .nav-scroller,
    .topbar .nav,
    .topbar .nav-item {
        overflow: visible !important;
    }

.topbar {
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 1px 0 rgba(0,0,0,0.02);
    z-index: 1000;
    position: relative;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
}

    .navbar-brand img {
        height: 40px;
        width: auto
    }

.brand-title {
    color: var(--best-red);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1;
}

.brand-sub {
    font-size: .87rem;
    color: var(--muted);
    margin-top: 2px;
}

/* Content */
.content-wrap {
    max-width: 1200px;
    margin: 18px auto;
    padding: 0 14px;
}
/* Footer centered */
.site-footer {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,.04);
    padding: 10px 0;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
}

    .site-footer .container {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .site-footer a {
        color: #111827;
        font-weight: 600;
    }

/* NAV - single line with arrows */
.nav-scroller {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.nav-arrow {
    background: transparent;
    border: 0;
    color: #6b7280;
    font-size: 18px;
    padding: 6px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

    .nav-arrow.hidden {
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

.nav-wrapper {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    flex: 1 1 auto;
    position: relative;
}

    .nav-wrapper::-webkit-scrollbar {
        height: 8px;
    }

    .nav-wrapper::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.12);
        border-radius: 4px;
    }

.nav-scroller .nav {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-scroller .nav-item {
    display: inline-flex;
}

.nav-scroller .nav-link {
    padding: 8px 12px !important;
    white-space: nowrap;
    position: relative;
    color: #111827 !important;
    border-radius: 6px;
}

    /* Top-level hover underline animation + micro interactions */
    .nav-scroller .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 6px;
        width: 0;
        height: 3px;
        background: linear-gradient(90deg,var(--accent),var(--accent-dark));
        border-radius: 2px;
        transform: translateX(-50%);
        transition: width .22s ease;
        opacity: .95;
    }

    .nav-scroller .nav-link:hover::after,
    .nav-scroller .nav-link:focus::after {
        width: 60%;
    }

    .nav-scroller .nav-link:hover,
    .nav-scroller .nav-link:focus {
        background: rgba(6,182,212,0.06);
    }

/* Dropdown: absolute positioned, animated and elevated */
.nav .dropdown-menu {
    position: absolute;
    z-index: 2050;
    display: none;
    min-width: 12rem;
    box-shadow: 0 12px 28px rgba(2,6,23,0.12);
    border-radius: 8px;
    padding: .35rem 0;
    background: #fff;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease;
}

    .nav .dropdown.show > .dropdown-menu,
    .nav .dropdown-menu.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }

/* Nested submenu */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        left: 100%;
        margin-left: .1rem;
        opacity: 0;
        transform: translateX(6px);
        transition: opacity .14s ease, transform .14s ease;
        display: none;
    }

    .dropdown-submenu .dropdown-menu.show {
        display: block !important;
        opacity: 1;
        transform: translateX(0);
    }

    .dropdown-submenu > a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 12px;
    }

        .dropdown-submenu > a .submenu-caret {
            margin-left: 8px;
            font-size: .85rem;
            opacity: .8;
            transition: transform .18s ease;
        }

        .dropdown-submenu > a[aria-expanded="true"] .submenu-caret {
            transform: rotate(90deg);
        }

/* Mobile tweaks */
@media (max-width: 991px) {
    .dropdown-submenu > .dropdown-menu {
        left: 0;
        top: 100%;
        margin-left: 0;
    }

    .nav-arrow {
        display: none;
    }

    .nav-wrapper {
        overflow-x: visible;
    }
}

/* Mobile nav — fully manual, no Bootstrap collapse dependency */
#mobileNav {
    display: none;
}

    #mobileNav.show {
        display: block !important;
    }

/* Toast styles */
.eb-toast-wrap {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.eb-toast {
    min-width: 260px;
    max-width: 420px;
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(2,6,23,0.18);
}

    .eb-toast.success {
        background: linear-gradient(90deg,#059669,#10b981);
    }

    .eb-toast.error {
        background: linear-gradient(90deg,#dc2626,#ef4444);
    }

    .eb-toast.info {
        background: linear-gradient(90deg,#0891b2,#06b6d4);
    }

    .eb-toast .msg {
        flex: 1;
        font-weight: 700;
        font-size: .95rem;
    }
