/* URGENT DROPDOWN FIX - HIGHEST PRIORITY */

/* Force dropdown menu to appear on top with extreme z-index */
.dropdown-menu {
    z-index: 999999 !important;
    position: absolute !important;
    background: rgba(0, 0, 0, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
    padding: 12px !important;
    margin-top: 8px !important;
    margin-left: 20px !important;
    min-width: 320px !important;
    max-height: 75vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: translateZ(0) !important;
    will-change: transform !important;
    left: 0 !important;
    right: auto !important;
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 8px !important;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.6) !important;
    border-radius: 4px !important;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.8) !important;
}

/* Smooth scrolling behavior */
.dropdown-menu {
    scroll-behavior: smooth !important;
}

/* Improved dropdown positioning */
.nav-item.dropdown .dropdown-menu {
    transform: translateX(10px) !important;
}

/* Force dropdown items to be visible */
.dropdown-item {
    color: rgba(255, 255, 255, 0.95) !important;
    background: transparent !important;
    padding: 12px 16px !important;
    border-radius: 8px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-weight: 500 !important;
    position: relative !important;
    z-index: 999999 !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    transform: translateX(4px) !important;
}

/* Force icons to be visible */
.dropdown-item i {
    color: rgba(255, 255, 255, 0.9) !important;
    opacity: 1 !important;
    font-size: 1rem !important;
    width: 20px !important;
    text-align: center !important;
}

.dropdown-item:hover i {
    color: #ffffff !important;
}

/* Force dividers to be visible */
.dropdown-divider {
    border-color: rgba(255, 255, 255, 0.2) !important;
    margin: 8px 0 !important;
    opacity: 1 !important;
}

/* Force badges to be visible */
.dropdown-item .badge {
    font-size: 0.7rem !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
}

/* Force navbar to have correct stacking */
.navbar {
    z-index: 999999 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    isolation: isolate !important;
}

/* Add padding to body to compensate for fixed navbar */
body {
    padding-top: 80px !important;
}

/* Ensure all page content stays below navbar */
.hero-section,
.container,
.container-fluid,
.monetization-hero,
.bg-success,
.bg-primary,
.bg-warning,
.bg-info,
.bg-danger,
.card,
.row,
.col-12 {
    z-index: 1 !important;
    position: relative !important;
}

/* Specific fix for monetization page green background */
.card[style*="background: linear-gradient(135deg, #2ecc71"] {
    z-index: 1 !important;
    position: relative !important;
}

/* Force all content containers to stay below navbar */
* {
    z-index: auto !important;
}

/* Override only for navbar and dropdown elements */
.navbar,
.navbar *,
.dropdown-menu,
.dropdown-menu * {
    z-index: 999999 !important;
}

/* Force dropdown container positioning */
.nav-item.dropdown {
    position: relative !important;
    z-index: 999998 !important;
}

/* Override any interfering styles */
.hero-section,
.hero-gradient,
.container,
.row,
.col-lg-10,
.mx-auto {
    z-index: 1 !important;
    position: relative !important;
}

/* Specific fix for backdrop filter interference */
body::before {
    z-index: -10 !important;
}

/* Emergency override for any interfering elements */
* {
    max-z-index: 999997 !important;
}

.dropdown-menu * {
    z-index: inherit !important;
}