/* Mobile Navigation Styles */
/* Corporate Blue Theme for Mobile and Profile Dropdowns */

/* Mobile navigation dropdown */
.navbar .dropdown-menu.mobile-nav-dropdown,
ul.mobile-nav-dropdown.dropdown-menu {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    border: 1px solid rgba(30, 58, 138, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px 0 rgba(30, 58, 138, 0.08) !important;
    min-width: 280px !important;
    max-width: 90vw !important;
    padding: 0.5rem 0 !important;
    margin-top: 0.5rem !important;
    right: 0 !important;
    left: auto !important;
}

/* Mobile dropdown headers */
.navbar .mobile-nav-dropdown .dropdown-header,
ul.mobile-nav-dropdown .dropdown-header,
.mobile-nav-dropdown li h6.dropdown-header {
    color: rgba(255, 255, 255, 0.6) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 0.5rem 1rem 0.25rem !important;
    margin-top: 0.25rem !important;
    background: none !important;
}

/* Mobile dropdown items */
.navbar .mobile-nav-dropdown .dropdown-item,
ul.mobile-nav-dropdown .dropdown-item,
.mobile-nav-dropdown li a.dropdown-item {
    color: #ffffff !important;
    background: transparent !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    border-radius: 8px !important;
    margin: 0.15rem 0.5rem !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
}

/* Hover and focus states */
.navbar .mobile-nav-dropdown .dropdown-item:hover,
ul.mobile-nav-dropdown .dropdown-item:hover,
.mobile-nav-dropdown li a.dropdown-item:hover,
.navbar .mobile-nav-dropdown .dropdown-item:focus,
ul.mobile-nav-dropdown .dropdown-item:focus,
.mobile-nav-dropdown li a.dropdown-item:focus {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
    transform: translateX(8px) scale(1.02) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
}

/* Active state */
.navbar .mobile-nav-dropdown .dropdown-item:active,
ul.mobile-nav-dropdown .dropdown-item:active,
.mobile-nav-dropdown li a.dropdown-item:active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    transform: translateX(4px) !important;
}

/* Icons in mobile dropdown items */
.mobile-nav-dropdown .dropdown-item i {
    width: 18px !important;
    margin-right: 10px !important;
    text-align: center !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s ease !important;
    color: #ffffff !important;
}

.mobile-nav-dropdown .dropdown-item:hover i,
.mobile-nav-dropdown .dropdown-item:focus i {
    opacity: 1 !important;
    color: #ffffff !important;
}

/* Mobile dropdown dividers */
.navbar .mobile-nav-dropdown .dropdown-divider,
ul.mobile-nav-dropdown .dropdown-divider,
.mobile-nav-dropdown li hr.dropdown-divider {
    margin: 0.5rem 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Profile dropdown - same theme */
.navbar .dropdown-menu.profile-dropdown,
ul.profile-dropdown.dropdown-menu {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%) !important;
    border: 1px solid rgba(30, 58, 138, 0.15) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 30px 0 rgba(30, 58, 138, 0.08) !important;
    min-width: 200px !important;
    right: 0 !important;
    left: auto !important;
}

/* Profile dropdown items */
.navbar .profile-dropdown .dropdown-item,
ul.profile-dropdown .dropdown-item,
.profile-dropdown li a.dropdown-item {
    color: #ffffff !important;
    background: transparent !important;
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: none !important;
    border-radius: 8px !important;
    margin: 0.15rem 0.5rem !important;
    border: 1px solid transparent !important;
    text-decoration: none !important;
}

/* Profile dropdown hover states */
.navbar .profile-dropdown .dropdown-item:hover,
ul.profile-dropdown .dropdown-item:hover,
.profile-dropdown li a.dropdown-item:hover,
.navbar .profile-dropdown .dropdown-item:focus,
ul.profile-dropdown .dropdown-item:focus,
.profile-dropdown li a.dropdown-item:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateX(8px) scale(1.02) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
    text-decoration: none !important;
}

/* Profile dropdown icons */
.profile-dropdown .dropdown-item i {
    width: 18px !important;
    margin-right: 10px !important;
    text-align: center !important;
    opacity: 0.7 !important;
    transition: opacity 0.2s ease !important;
    color: #ffffff !important;
}

.profile-dropdown .dropdown-item:hover i,
.profile-dropdown .dropdown-item:focus i {
    opacity: 1 !important;
    color: #ffffff !important;
}

/* Profile dropdown dividers */
.navbar .profile-dropdown .dropdown-divider,
ul.profile-dropdown .dropdown-divider,
.profile-dropdown li hr.dropdown-divider {
    margin: 0.5rem 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Navbar dropdown buttons - consistent sizing */
#mobileNavDropdown,
#navbarDropdown {
    color: white !important;
    font-weight: 500 !important;
    padding: 0.5rem 0.75rem !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#mobileNavDropdown:hover,
#mobileNavDropdown:focus,
#navbarDropdown:hover,
#navbarDropdown:focus {
    color: rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
}

#mobileNavDropdown i,
#navbarDropdown i {
    font-size: 1.1rem !important;
    margin: 0 !important;
}

/* Responsive behavior */
@media (max-width: 991.98px) {
    /* Show mobile nav dropdown only on mobile */
    .d-lg-none {
        display: block !important;
    }
    
    /* Ensure both dropdowns are anchored to the right */
    .mobile-nav-dropdown,
    .profile-dropdown {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
    }
    
    /* Position navbar items to the right */
    .navbar-nav.ms-auto {
        flex-direction: row !important;
        justify-content: flex-end !important;
    }
}

@media (min-width: 992px) {
    /* Hide mobile nav dropdown on desktop */
    .d-lg-none {
        display: none !important;
    }
}

/* Touch-friendly spacing for mobile */
@media (max-width: 767.98px) {
    .mobile-nav-dropdown .dropdown-item {
        padding: 0.875rem 1rem !important;
        min-height: 44px !important;
    }
    
    .mobile-nav-dropdown {
        min-width: 260px !important;
    }
}

/* Very small screens */
@media (max-width: 575.98px) {
    .mobile-nav-dropdown {
        min-width: calc(100vw - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        margin-left: -1rem !important;
    }
}