/* Professional Navigation Bar Styles */
.professional-navbar {
    background-color: #2c3e50;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: relative;
}

/* Brand/Logo - Desktop: Left side */
.nav-brand {
    flex-shrink: 0;
    order: 1;
}

.brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.brand-link:hover {
    color: #ecf0f1;
}

/* Main Navigation Menu - Desktop: Right side */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    justify-content: flex-end;
    order: 2;
    margin-left: auto;
}

.nav-item-dropdown {
    position: relative;
}

.nav-link {
    display: block;
    padding: 24px 18px;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom-color: #3498db;
}

.nav-link.dropdown-toggle::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    opacity: 0.7;
}

/* Large Dropdown Menu */
.dropdown-menu-large {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #ffffff;
    min-width: 280px;
    max-width: 1200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 30px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    border: 1px solid #e9ecef;
    pointer-events: none;
}

/* Add invisible bridge to prevent dropdown from closing */
.nav-item-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
    z-index: 999;
}

.nav-item-dropdown:hover .dropdown-menu-large {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dropdown-column h6 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2c3e50;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.dropdown-item {
    display: block;
    padding: 10px 0;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
}

.dropdown-item:hover {
    color: #3498db;
}

/* User Section - Desktop: Right side after menu */
.nav-user {
    flex-shrink: 0;
    position: relative;
    order: 3;
    margin-left: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.user-name {
    color: #ecf0f1;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: color 0.3s ease;
}

.user-info:hover .user-name {
    color: #ffffff;
}

.user-dropdown-icon {
    color: #ecf0f1;
    font-size: 12px;
    margin-left: 4px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.user-info:hover .user-dropdown-icon {
    color: #ffffff;
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #ffffff;
    min-width: 180px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1001;
    pointer-events: none;
}

/* Bridge to prevent dropdown from closing */
.user-info::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 0;
    width: 180px;
    height: 0;
    background: transparent;
    z-index: 1000;
}

.user-info:hover::after {
    height: 8px;
}

.user-info:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.user-menu-item {
    display: block;
    padding: 12px 20px;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.user-menu-item:hover {
    background-color: #f8f9fa;
    color: #2c3e50;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    order: -1;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

/* Mobile Navigation */
.mobile-nav-link {
    display: block;
    padding: 12px 0;
    color: #2c3e50;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #e9ecef;
    transition: color 0.2s ease;
    background: none;
    border: none;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
    cursor: pointer;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: #3498db;
}

/* Mobile Nav Dropdown */
.mobile-nav-dropdown {
    border-bottom: 1px solid #e9ecef;
}

.mobile-nav-toggle {
    padding: 12px 0;
}

.mobile-nav-toggle i {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.mobile-nav-toggle[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-submenu {
    padding-left: 20px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.mobile-submenu-link {
    display: block;
    padding: 10px 0;
    color: #6c757d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
    border-bottom: none;
}

.mobile-submenu-link:hover,
.mobile-submenu-link.active {
    color: #3498db;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav-menu {
        display: none;
    }
    
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        order: 1;
        flex-shrink: 0;
        position: absolute;
        left: 15px;
        z-index: 10;
    }
    
    .nav-brand {
        order: 2;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        flex-shrink: 0;
        text-align: center;
        width: auto;
    }
    
    .brand-link {
        font-size: 1.1rem;
    }
    
    .nav-user {
        order: 3;
        flex-shrink: 0;
        position: absolute;
        right: 15px;
        z-index: 10;
    }
    
    .user-info::after {
        display: none;
    }
    
    .user-dropdown-icon {
        display: none;
    }
    
    /* Make user dropdown clickable on mobile */
    .user-info {
        cursor: pointer;
    }
    
    .user-dropdown {
        position: fixed;
        top: 60px;
        right: 15px;
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
        pointer-events: none;
        z-index: 1002;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        border-radius: 4px;
    }
    
    .user-info.active .user-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .brand-link {
        font-size: 1rem;
    }
    
    .mobile-menu-toggle {
        left: 10px;
    }
    
    .nav-user {
        right: 10px;
    }
    
    .user-name {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Dropdown Arrow Animation */
.nav-item-dropdown:hover .nav-link.dropdown-toggle::after {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

