/* NORSU Alumni System - Navbar Styles */

/* Modern Navbar Base Styles - Desktop First */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    font-family: var(--font-primary);
    font-weight: 500;
    z-index: 1030;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    height: 64px;
}

.navbar .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Modern Brand Styles */
.navbar-brand {
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: white !important;
    padding: 0;
    margin-right: 3rem;
    flex-shrink: 0;
    text-decoration: none;
    transition: all 0.25s ease;
    height: 64px;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.5rem;
}

.navbar-brand:hover {
    color: rgba(255, 255, 255, 0.95) !important;
    opacity: 0.9;
}

.navbar-brand span {
    font-size: 1.125rem;
    white-space: nowrap;
}

.navbar-brand img {
    height: 32px;
    width: auto;
    filter: brightness(1.05) drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
    transition: all 0.25s ease;
}

.navbar-brand:hover img {
    filter: brightness(1.1) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

/* Navbar Collapse */
.navbar-collapse {
    height: 64px;
}

/* Modern Navigation Links - Desktop Optimized */
.navbar-nav {
    gap: 0.25rem;
    height: 100%;
}

.navbar-nav .nav-item {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    padding: 0.5rem 1.25rem !important;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.12);
}

.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.18);
    color: white !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px 2px 0 0;
}

.navbar-nav .nav-link i {
    font-size: 1.25rem;
    transition: all 0.2s ease;
    opacity: 0.9;
}

.navbar-nav .nav-link:hover i,
.navbar-nav .nav-link.active i {
    opacity: 1;
}

/* Text labels - visible on XL screens */
.navbar-nav .nav-link .small {
    font-size: 0.6875rem;
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Modern Auth Buttons - User Account Section */
.navbar-nav.ms-auto {
    gap: 0.5rem;
    margin-left: auto !important;
}

.nav-link.btn-login {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.5rem 1rem !important;
}

.nav-link.btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-link.btn-register {
    background: white;
    color: var(--primary-color) !important;
    padding: 0.5rem 1rem !important;
}

.nav-link.btn-register:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Notification Dropdown */
.notification-dropdown .nav-link {
    padding: 0.5rem 0.875rem !important;
}

/* Profile Dropdown */
.navbar .profile-dropdown {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar .profile-dropdown .nav-link {
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    gap: 0.625rem;
    height: auto;
    transition: all 0.2s ease;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
}

.navbar .profile-dropdown .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.navbar .profile-dropdown .nav-link span {
    font-size: 0.875rem;
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    color: white;
}

.navbar .profile-dropdown .dropdown-menu {
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: none;
    border-radius: 12px;
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    background: white;
}

.navbar .profile-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #333;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-weight: 500;
}

.navbar .profile-dropdown .dropdown-item:hover {
    background: rgba(43, 60, 107, 0.08);
    color: var(--primary-color);
    transform: translateX(2px);
}

.navbar .profile-dropdown .dropdown-item:active {
    background: rgba(43, 60, 107, 0.12);
}

.navbar .profile-dropdown .dropdown-item.active {
    background: rgba(43, 60, 107, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.navbar .profile-dropdown .dropdown-item i {
    width: 18px;
    text-align: center;
    font-size: 0.9375rem;
    opacity: 0.8;
}

.navbar .profile-dropdown .dropdown-item:hover i {
    opacity: 1;
}

.navbar .profile-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.1;
}

/* Modern User Avatar */
.user-avatar {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
}

.profile-dropdown .nav-link:hover .user-avatar {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

/* User icon (when no avatar) */
.navbar .profile-dropdown .nav-link i.fa-user-circle {
    font-size: 2rem;
    flex-shrink: 0;
    color: white;
}

/* Profile dropdown toggle arrow */
.navbar .profile-dropdown .nav-link.dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top-color: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.navbar .profile-dropdown .nav-link:hover.dropdown-toggle::after {
    border-top-color: white;
}

.navbar .profile-dropdown .nav-link[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* Notification Badge - Defined in notifications.css */
.badge-dot {
    position: absolute;
    top: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Accessibility Improvements */
.navbar-nav .nav-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .navbar {
        background: var(--primary-dark);
        border-bottom: 2px solid var(--text-light);
    }
    
    .navbar-nav .nav-link {
        border: 1px solid transparent;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        border-color: var(--text-light);
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .navbar-nav .nav-link,
    .navbar-brand,
    .user-avatar,
    .badge-dot {
        transition: none;
        animation: none;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
}

/* ============================================
   MOBILE RESPONSIVENESS - Hybrid Approach
   Top Bar + Bottom Navigation
   ============================================ */

/* Tablets and Below - 991px and down */
@media (max-width: 991.98px) {
    /* Compact Top Navbar */
    .navbar {
        height: 56px;
        padding: 0;
        z-index: 9998;
    }
    
    .navbar .container-fluid {
        height: 56px !important;
        padding: 0 1rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    /* Brand - Smaller on tablets/mobile */
    .navbar-brand {
        margin-right: auto !important;
        padding: 0 !important;
        height: 56px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem;
    }
    
    .navbar-brand img {
        height: 28px;
    }
    
    .navbar-brand span {
        font-size: 1rem;
    }
    
    /* Hide navbar toggler */
    .navbar-toggler {
        display: none !important;
    }
    
    /* Navbar collapse - keep it open but repositioned */
    .navbar-collapse {
        position: static;
        display: flex !important;
        height: 56px;
        flex-grow: 0;
    }
    
    /* Hide main navigation on mobile - will show in bottom bar */
    .navbar-nav.mx-auto {
        display: none !important;
    }
    
    /* Keep profile and notification in top bar */
    .navbar-nav.ms-auto {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        margin-left: auto !important;
        margin-bottom: 0 !important;
        height: 56px !important;
        align-items: center !important;
        padding: 0 !important;
    }
    
    .navbar-nav.ms-auto .nav-item {
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    /* Compact notification and profile links */
    .navbar-nav.ms-auto .nav-link {
        padding: 0.5rem !important;
        min-width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    /* Hide text labels in top bar */
    .navbar-nav.ms-auto .nav-link .small {
        display: none !important;
    }
    
    .navbar-nav.ms-auto .nav-link i {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }
    
    /* Profile dropdown adjustments */
    .navbar .profile-dropdown {
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }
    
    .navbar .profile-dropdown .nav-link {
        padding: 0.5rem 0.75rem !important;
        gap: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        flex-direction: row !important;
        height: 56px !important;
    }
    
    .navbar .profile-dropdown .nav-link span {
        font-size: 0.875rem !important;
        max-width: 100px !important;
        display: inline !important;
    }
    
    .user-avatar {
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Notification dropdown */
    .notification-dropdown {
        height: 56px !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
    }
    
    .notification-dropdown .nav-link {
        padding: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        height: 56px !important;
        width: 40px !important;
    }
    
    .notification-dropdown .nav-link i {
        font-size: 1.25rem !important;
        margin: 0 !important;
    }
    
    .notification-dropdown .nav-link .small {
        display: none !important;
    }
}

/* Mobile Only - 767px and down - Bottom Navigation */
@media (max-width: 767.98px) {
    /* Add padding to body for fixed bars */
    body {
        padding-top: 50px !important;
        padding-bottom: 60px !important;
    }
    
    /* Even more compact top bar */
    .navbar {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
    
    .navbar .container-fluid {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding: 0 0.75rem !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .navbar-collapse {
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        flex: 1 !important;
        justify-content: flex-end !important;
    }
    
    .navbar-brand {
        height: 50px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem;
    }
    
    .navbar-brand img {
        height: 24px;
    }
    
    .navbar-brand span {
        font-size: 0.9375rem;
    }
    
    /* Force auth section to display properly */
    .navbar-nav.ms-auto {
        height: 50px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    
    .navbar-nav.ms-auto .nav-item {
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .navbar-nav.ms-auto .nav-link {
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.5rem !important;
    }
    
    /* Hide profile name on small mobile */
    .navbar .profile-dropdown .nav-link span {
        display: none !important;
    }
    
    /* Notification icon */
    .notification-dropdown {
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .notification-dropdown .nav-link {
        height: 50px !important;
        width: 40px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .notification-dropdown .nav-link i {
        font-size: 1.25rem !important;
    }
    
    /* Profile icon */
    .navbar .profile-dropdown {
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
    }
    
    .navbar .profile-dropdown .nav-link {
        height: 50px !important;
        min-width: 40px !important;
        padding: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .user-avatar {
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
    }
    
    /* Ensure profile icon shows properly when no avatar */
    .navbar .profile-dropdown .nav-link i.fa-user-circle {
        font-size: 1.5rem !important;
        margin: 0 !important;
    }
    
    /* Profile dropdown from top bar */
    .navbar .profile-dropdown .dropdown-menu {
        position: fixed !important;
        top: 50px !important;
        right: 0.5rem !important;
        left: auto !important;
        transform: none !important;
        width: calc(100vw - 1rem);
        max-width: 280px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 10000 !important;
        font-size: 0.875rem !important;
    }
    
    /* Compact dropdown items */
    .navbar .profile-dropdown .dropdown-menu .dropdown-item {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    .navbar .profile-dropdown .dropdown-menu .dropdown-item i {
        font-size: 0.875rem !important;
        width: 1.25rem !important;
    }
    
    .navbar .profile-dropdown .dropdown-menu .dropdown-header {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.6875rem !important;
        margin: 0.25rem 0.5rem 0.25rem !important;
    }
    
    .navbar .profile-dropdown .dropdown-menu .dropdown-divider {
        margin: 0.25rem 0 !important;
    }
    
    /* Mobile-only dropdown items */
    .navbar .profile-dropdown .dropdown-menu .dropdown-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.6875rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--primary-color);
        background: rgba(43, 60, 107, 0.05);
        margin: 0.25rem 0.5rem 0.25rem;
        border-radius: 4px;
    }
    
    .navbar .profile-dropdown .dropdown-menu .dropdown-header:first-child {
        margin-top: 0.25rem;
    }
    
    /* Notification dropdown */
    .notification-dropdown-menu {
        position: fixed !important;
        top: 50px !important;
        right: 0.5rem !important;
        left: auto !important;
        width: calc(100vw - 1rem);
        max-width: 320px;
        max-height: calc(100vh - 60px);
        overflow-y: auto;
        z-index: 10000 !important;
        font-size: 0.875rem !important;
    }
    
    /* Compact notification items */
    .notification-dropdown-menu .notification-header {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
    }
    
    .notification-dropdown-menu .notification-header h6 {
        font-size: 0.875rem !important;
        margin: 0 !important;
    }
    
    .notification-dropdown-menu .notification-item {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8125rem !important;
    }
    
    .notification-dropdown-menu .notification-footer {
        padding: 0.25rem !important;
    }
    
    .notification-dropdown-menu .notification-footer .dropdown-item {
        padding: 0.5rem !important;
        font-size: 0.8125rem !important;
    }
}

/* Bottom Navigation Bar */
@media (max-width: 767.98px) {
    /* Create mobile bottom navigation */
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: white !important;
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08) !important;
        z-index: 9999 !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: stretch !important;
        padding: 0 !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .mobile-bottom-nav .nav-item {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }
    
    .mobile-bottom-nav .nav-link {
        width: 100%;
        height: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px;
        padding: 0.5rem 0.25rem !important;
        color: #65676b !important;
        text-decoration: none;
        transition: all 0.2s ease;
        border-radius: 0;
        background: transparent;
        border: none;
    }
    
    .mobile-bottom-nav .nav-link:hover {
        background: rgba(0, 0, 0, 0.04) !important;
    }
    
    .mobile-bottom-nav .nav-link.active {
        color: var(--primary-color) !important;
        background: transparent !important;
    }
    
    .mobile-bottom-nav .nav-link.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60%;
        max-width: 48px;
        height: 3px;
        background: var(--primary-color);
        border-radius: 0 0 3px 3px;
    }
    
    .mobile-bottom-nav .nav-link i {
        font-size: 1.5rem;
        margin: 0;
        transition: all 0.2s ease;
    }
    
    .mobile-bottom-nav .nav-link.active i {
        color: var(--primary-color);
        transform: scale(1.1);
    }
    
    .mobile-bottom-nav .nav-link .nav-label {
        font-size: 0.625rem;
        font-weight: 500;
        line-height: 1;
        white-space: nowrap;
        color: inherit;
    }
    
    /* Badge on bottom nav */
    .mobile-bottom-nav .nav-link .badge {
        position: absolute;
        top: 8px;
        right: 50%;
        transform: translateX(16px);
        font-size: 0.625rem;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 9px;
        font-weight: 600;
        background: #dc3545;
        color: white;
    }
}

/* Ensure bottom nav is hidden on desktop/tablet */
@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* Small Mobile - 575px and down */
@media (max-width: 575.98px) {
    /* Even more compact */
    .navbar-brand span {
        font-size: 0.875rem;
    }
    
    .mobile-bottom-nav {
        height: 56px !important;
    }
    
    .mobile-bottom-nav .nav-link i {
        font-size: 1.375rem;
    }
    
    .mobile-bottom-nav .nav-link .nav-label {
        font-size: 0.5625rem;
    }
}

/* Bottom Sheet Component for Submenus */
@media (max-width: 767.98px) {
    .bottom-sheet-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1030;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .bottom-sheet-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .bottom-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
        z-index: 1031;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .bottom-sheet.show {
        transform: translateY(0);
    }
    
    .bottom-sheet-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        background: white;
        z-index: 1;
    }
    
    .bottom-sheet-header h3 {
        margin: 0;
        font-size: 1.125rem;
        font-weight: 600;
        color: #333;
    }
    
    .bottom-sheet-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #666;
        cursor: pointer;
        padding: 0.25rem;
        line-height: 1;
    }
    
    .bottom-sheet-content {
        padding: 1rem 0;
    }
    
    .bottom-sheet-item {
        padding: 1rem 1.25rem;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-decoration: none;
        color: #333;
        transition: background 0.2s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .bottom-sheet-item:last-child {
        border-bottom: none;
    }
    
    .bottom-sheet-item:active {
        background: rgba(0, 0, 0, 0.04);
    }
    
    .bottom-sheet-item i {
        font-size: 1.25rem;
        width: 32px;
        text-align: center;
        flex-shrink: 0;
    }
    
    .bottom-sheet-item-content {
        flex: 1;
    }
    
    .bottom-sheet-item-title {
        font-weight: 600;
        font-size: 0.9375rem;
        margin-bottom: 0.125rem;
        color: #333;
    }
    
    .bottom-sheet-item-desc {
        font-size: 0.8125rem;
        color: #666;
        line-height: 1.3;
    }
    
    .bottom-sheet-item-arrow {
        color: #999;
        font-size: 1rem;
    }
    
    /* Handle for sheet */
    .bottom-sheet-handle {
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        margin: 0.75rem auto 0.5rem;
    }
    
    /* Modal adjustments for bottom sheets */
    #communityBottomSheet .modal-dialog,
    #careerBottomSheet .modal-dialog {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        max-width: none !important;
        transform: none !important;
        z-index: 10050 !important;
    }
    
    #communityBottomSheet .modal-content,
    #careerBottomSheet .modal-content {
        border: none !important;
        border-radius: 20px 20px 0 0 !important;
        background: white !important;
    }
    
    #communityBottomSheet.modal.fade .modal-dialog,
    #careerBottomSheet.modal.fade .modal-dialog {
        transform: translateY(100%) !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    #communityBottomSheet.modal.show .modal-dialog,
    #careerBottomSheet.modal.show .modal-dialog {
        transform: translateY(0) !important;
    }
    
    /* Ensure modals are visible */
    #communityBottomSheet,
    #careerBottomSheet {
        display: none;
        z-index: 10050 !important;
    }
    
    #communityBottomSheet.show,
    #careerBottomSheet.show {
        display: block !important;
        z-index: 10050 !important;
    }
    
    /* Modal backdrop */
    #communityBottomSheet + .modal-backdrop,
    #careerBottomSheet + .modal-backdrop,
    .modal-backdrop.show {
        z-index: 10045 !important;
    }
    
    /* Bottom sheet specific styles */
    .bottom-sheet {
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
}
