/* Bootstrap Dropdown Z-Index Fix */

/* Ensure navbar has proper z-index */
.navbar {
    z-index: 1030 !important;
    position: relative !important;
}

/* Fix all dropdown menus */
.dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

/* When dropdown is shown */
.dropdown-menu.show,
.dropdown-menu[data-bs-popper] {
    z-index: 9999 !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    transform: none !important;
}

/* Dropdown toggle button */
.dropdown-toggle {
    z-index: 9998 !important;
    position: relative !important;
}

/* Admin dropdown specific fixes */
.nav-item.dropdown {
    z-index: 9998 !important;
    position: relative !important;
}

/* Force dropdown to appear above everything */
.navbar .dropdown-menu {
    z-index: 10000 !important;
    position: absolute !important;
    will-change: transform;
}

/* Override any conflicting z-index */
.container-fluid,
.navbar-nav,
.nav-item {
    z-index: inherit;
    position: relative;
}

/* Specific admin dropdown styling */
.admin-link + .dropdown-menu {
    z-index: 10001 !important;
    min-width: 200px;
    margin-top: 0.5rem;
}