/* ===============================
   NAV BAR
   =============================== */

/* Thinner navbar */
.navbar {
    min-height: 40px;
    padding: 0 1rem;
    font-size: 13px;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Bootstrap's .sticky-top utility gives <nav> its own z-index:1020 stacking
   context — that traps the dropdown-menu's z-index inside it, so no matter how
   high the dropdown's own z-index is set, the whole navbar (and its open
   dropdowns) still renders BELOW .heading (1030) and .heading-info-bar (1028)
   at the page level. Must raise the navbar's own context above both. */
.navbar.sticky-top {
    z-index: 1035;
}

/* Base dropdown menu styling */
.navbar .dropdown-menu {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 15px;
    min-width: 250px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    /* Must sit above .heading (z-index:1030) and .heading-info-bar (z-index:1028) —
       both are position:sticky and were covering the top of open dropdowns. */
    z-index: 1040;

    /* Animation prep */
    opacity: 0;
    height: 0;
    overflow: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* When visible (Bootstrap's native dropdown JS toggles this class) */
.navbar .dropdown-menu.show {
    opacity: 1;
    height: auto;
    overflow: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown item spacing */
.navbar .dropdown-menu li {
    margin-bottom: 5px;
}
.navbar .dropdown-menu li:last-child {
    margin-bottom: 0;
}

/* Dropdown item design */
.navbar .dropdown-menu .dropdown-item {
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 13px;
    color: #000 !important;
    transition: all 0.25s ease;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background-color: #4a90e2;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

/* Divider spacing */
.navbar .dropdown-menu .dropdown-divider {
    margin: 4px 0;
    border-top: 3px solid rgba(0, 0, 0, 0.1);
}

/* Brand hover */
.navbar .navbar-brand:hover {
    color: #4a90e2 !important;
    transform: translateY(-2px);
    transition: all 0.25s ease;
}

/* Right-aligned menu */
.navbar-nav.ms-auto .nav-link {
    margin-left: 10px;
}
