/* Unified Navigation CSS for Nexus Training Platform */
/* Ensures pixel-perfect consistency across all pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px; /* Fixed height for consistency */
}

.nav-logo h1 {
    color: #667eea;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
    line-height: 1;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
    height: 100%;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.nav-link.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    font-weight: 600;
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-logo h1 {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
}

/* User Authentication Dropdown Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.user-name {
    color: #4f46e5;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dropdown-btn:hover {
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.05);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dropdown-content a:hover {
    background: rgba(79, 70, 229, 0.05);
    color: #4f46e5;
    padding-left: 1.25rem;
}

.manager-only {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}

.login-link {
    color: #4f46e5;
    font-weight: 500;
}

.login-link:hover {
    color: #3730a3;
}

/* Industries Dropdown Styles */
.industries-dropdown {
    position: relative;
    display: inline-block;
}

.industries-dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.industries-dropdown .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.industries-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.industries-dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 0.5rem;
}

.industries-dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.industries-dropdown .dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.industries-dropdown .dropdown-content a:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
    padding-left: 1.25rem;
}

/* User Menu Dropdown Styles */
.user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-name {
    color: #374151;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: #667eea;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.dropdown-btn:hover {
    background: rgba(102, 126, 234, 0.1);
}

.user-dropdown .dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    margin-top: 0.5rem;
}

.user-dropdown .dropdown-content.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown .dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.user-dropdown .dropdown-content a:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #667eea;
    padding-left: 1.25rem;
}

.manager-only {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 0.25rem;
    padding-top: 0.25rem;
}
