:root {
    --nav-primary: #6366f1;
    --nav-primary-dark: #4f46e5;
    --nav-primary-light: #818cf8;
    --nav-bg: #0f172a;
    --nav-surface: rgba(51, 65, 85, 0.95);
    --nav-surface-hover: rgba(255, 255, 255, 0.15);
    --nav-text: #f8fafc;
    --nav-text-secondary: #cbd5e1;
    --nav-text-muted: #94a3b8;
    --nav-border: rgba(255, 255, 255, 0.2);
}

/* Main Navigation - FIXED STICKY */
.modern-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--nav-surface);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* Add padding to body to prevent content from hiding under fixed nav */
body {
    padding-top: 72px;
}

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
}

.modern-nav-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.3;
}

.nav-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--nav-primary), var(--nav-primary-light));
    top: -100px;
    right: 10%;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    bottom: -75px;
    left: 20%;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s;
}

.brand-link:hover {
    transform: translateY(-2px);
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, var(--nav-primary), var(--nav-primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-image {
    width: 28px;
    height: 28px;
    fill: white;
}

.brand-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nav-text);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 10px;
    color: var(--nav-text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.nav-link:hover {
    background: var(--nav-surface-hover);
    color: var(--nav-text);
}

.nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.15));
    color: var(--nav-primary-light);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.2);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Desktop Notification Bell - ALWAYS VISIBLE ON DESKTOP */
.notification-bell-wrapper {
    position: relative;
    display: block;
}

.user-menu-wrapper {
    position: relative;
    display: block;
}

.user-menu-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--nav-surface);
    border: 1px solid var(--nav-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.user-menu-button:hover {
    background: var(--nav-surface-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--nav-primary), var(--nav-primary-light));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--nav-text);
}

.user-email {
    font-size: 0.75rem;
    color: var(--nav-text-muted);
}

.dropdown-arrow {
    color: var(--nav-text-muted);
    transition: transform 0.3s;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    background: var(--nav-surface);
    backdrop-filter: blur(40px);
    border: 1px solid var(--nav-border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    padding: 0.5rem;
    z-index: 10000;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--nav-text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
}

.dropdown-item:hover {
    background: var(--nav-surface-hover);
    color: var(--nav-text);
    transform: translateX(4px);
}

.dropdown-item.logout-item {
    color: #ef4444;
}

.dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--nav-border);
    margin: 0.5rem 0;
}

/* Mobile Menu Toggle - HIDDEN ON DESKTOP */
.mobile-menu-toggle {
    display: none;
}

.mobile-bell-button {
    display: none;
}

.hamburger-button {
    padding: 0.625rem;
    background: var(--nav-surface);
    border: 1px solid var(--nav-border);
    border-radius: 10px;
    color: var(--nav-text);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.hamburger-button:hover {
    background: var(--nav-surface-hover);
    transform: translateY(-2px);
}

.mobile-notifications-panel {
    background: var(--nav-surface);
    backdrop-filter: blur(40px);
    border-top: 1px solid var(--nav-border);
}

.mobile-notifications-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem;
}

.mobile-notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mobile-notifications-header h6 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--nav-text);
    margin: 0;
}

.close-button {
    padding: 0.5rem;
    background: var(--nav-surface);
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    color: var(--nav-text-muted);
    cursor: pointer;
    transition: all 0.3s;
}

.close-button:hover {
    background: var(--nav-surface-hover);
    color: var(--nav-text);
}

.mark-all-mobile-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--nav-border);
    border-radius: 8px;
    color: var(--nav-primary-light);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: all 0.3s;
    width: 100%;
}

.mark-all-mobile-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

.mobile-notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.mobile-notifications-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--nav-border);
    text-align: center;
}

.mobile-notifications-footer a {
    color: var(--nav-primary-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s;
}

.mobile-notifications-footer a:hover {
    color: var(--nav-primary);
}

.mobile-menu {
    background: var(--nav-surface);
    backdrop-filter: blur(40px);
    border-top: 1px solid var(--nav-border);
}

.mobile-menu-links {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--nav-text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
}

.mobile-nav-link:hover {
    background: var(--nav-surface-hover);
    color: var(--nav-text);
}

.mobile-nav-link.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(129, 140, 248, 0.15));
    color: var(--nav-primary-light);
}

.mobile-menu-user {
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--nav-border);
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--nav-primary), var(--nav-primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
}

.mobile-user-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--nav-text);
}

.mobile-user-email {
    font-size: 0.875rem;
    color: var(--nav-text-muted);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-action-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--nav-text-secondary);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.mobile-action-link:hover {
    background: var(--nav-surface-hover);
    color: var(--nav-text);
}

.mobile-action-link.logout-link {
    color: #ef4444;
}

.mobile-action-link.logout-link:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* MOBILE BREAKPOINT - 768px and below */
@media (max-width: 768px) {
    /* Hide desktop nav links */
    .nav-links {
        display: none !important;
    }

    /* Hide desktop user menu */
    .user-menu-wrapper {
        display: none !important;
    }

    /* Hide desktop notification bell */
    .notification-bell-wrapper {
        display: none !important;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
    }

    /* Show mobile bell button */
    .mobile-bell-button {
        display: flex !important;
        padding: 0.625rem;
        background: var(--nav-surface);
        border: 1px solid var(--nav-border);
        border-radius: 10px;
        color: var(--nav-text);
        cursor: pointer;
        transition: all 0.3s;
        position: relative;
        align-items: center;
        justify-content: center;
    }

    .mobile-bell-button:hover {
        background: var(--nav-surface-hover);
        transform: translateY(-2px);
    }

    .brand-text {
        font-size: 1.125rem;
    }

    .nav-content {
        height: 64px;
    }
}

@media (max-width: 640px) {
    .brand-icon {
        width: 36px;
        height: 36px;
    }

    .logo-image {
        width: 24px;
        height: 24px;
    }

    .brand-text {
        font-size: 1rem;
    }
}