/* Enhanced Navigation Styles - Matching Reports Page Design */

/* Main Navigation Bar */
.enterprise-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.nav-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px; /* Reduced gap since logo is removed */
}

/* Brand Section - Hidden (Logo removed as requested) */
.nav-brand {
    display: none !important; /* Completely hide the brand section */
}

.nav-logo {
    display: none;
}

.nav-title {
    display: none;
}

/* Navigation Links Container */
.nav-links {
    display: flex;
    gap: 15px;
    flex: 1;
    justify-content: flex-start; /* Changed from center to start */
    align-items: center;
    padding-left: 0; /* Start from the left edge */
}

/* Navigation Link Buttons */
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 15px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Active States for Different Pages */
.nav-link.active {
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Home Button */
.nav-link:nth-child(1):hover,
.nav-link:nth-child(1).active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    border-color: #4f46e5;
}

/* Import & Classify Button */
.nav-link:nth-child(2):hover,
.nav-link:nth-child(2).active {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
    border-color: #06b6d4;
}

/* Archive Button */
.nav-link:nth-child(3):hover,
.nav-link:nth-child(3).active {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-color: #f59e0b;
}

/* Keyword Rules Button */
.nav-link:nth-child(4):hover,
.nav-link:nth-child(4).active {
    background: linear-gradient(135deg, #facc15, #eab308);
    border-color: #eab308;
}

/* Reports Button */
.nav-link:nth-child(5):hover,
.nav-link:nth-child(5).active {
    background: linear-gradient(135deg, #60a5fa, #3b82f6);
    border-color: #3b82f6;
}

/* Contact Directory Button */
.nav-link:nth-child(6):hover,
.nav-link:nth-child(6).active {
    background: linear-gradient(135deg, #fb7185, #f43f5e);
    border-color: #f43f5e;
}

/* Icon Styling */
.nav-icon {
    font-size: 20px;
    display: inline-flex;
    align-items: center;
}

.nav-text {
    font-size: 15px;
}

/* Right Side Actions */
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Theme and Fullscreen Buttons */
.nav-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Logout Button */
.logout-button {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border: none;
    color: white;
    padding: 8px 24px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    white-space: nowrap;
}

.logout-button:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.logout-button:active {
    transform: translateY(0);
}

/* Body Adjustment */
body {
    padding-top: 60px;
}

/* Dark Mode Enhancements */
body.theme-dark .enterprise-navigation {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

body.theme-dark .nav-link {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

body.theme-dark .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Responsive */
@media (max-width: 1200px) {
    .nav-container {
        gap: 20px;
    }
    
    .nav-links {
        gap: 8px;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .nav-title {
        display: none;
    }
    
    .nav-text {
        display: none;
    }
    
    .nav-link {
        padding: 8px 12px;
    }
    
    .nav-icon {
        font-size: 22px;
    }
    
    .logout-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Transition Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.enterprise-navigation {
    animation: slideDown 0.3s ease-out;
}

/* Hover Effects Enhancement */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-link:hover::before {
    width: 100%;
    height: 100%;
}

/* Active Page Indicator */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; width: 0; }
    to { opacity: 1; width: 30%; }
}

/* ==================== NAV HELP BUTTON ==================== */
/* Blue rectangular help button with text label */
.nav-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(59, 130, 246, 0.5);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    margin-left: 10px;
    position: relative;
}

.nav-help-btn .help-icon {
    font-size: 16px;
    line-height: 1;
}

.nav-help-btn .help-text {
    color: white;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
}

.nav-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.nav-help-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Pulse animation for attention */
.nav-help-btn.pulse {
    animation: help-pulse 2s ease-in-out infinite;
}

@keyframes help-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 4px 20px rgba(239, 68, 68, 0.7); }
}

/* Focus state for accessibility */
.nav-help-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.3), 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Hide floating help widgets when using nav button */
#aiHelpWidget,
.ai-help-widget,
.ai-help-floating-btn,
.help-float-btn {
    display: none !important;
}

/* Mobile responsive for help button */
@media (max-width: 768px) {
    .nav-help-btn {
        padding: 6px 12px;
    }
    
    .nav-help-btn .help-icon {
        font-size: 14px;
    }
    
    .nav-help-btn .help-text {
        font-size: 13px;
    }
}

/* ==================== LANGUAGE TOGGLE BUTTON ==================== */
/* Dark blue rectangular language switch button */
.nav-lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
    border: 1px solid rgba(100, 150, 200, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.nav-lang-btn i {
    font-size: 14px;
    color: #60a5fa;
}

.nav-lang-btn .lang-text {
    font-size: 14px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

.nav-lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2d4a6f 0%, #3d5a7f 100%);
    border-color: rgba(100, 150, 200, 0.5);
    color: white;
}

.nav-lang-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Dark theme support for language toggle */
body.theme-dark .nav-lang-btn {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-color: rgba(100, 150, 200, 0.2);
}

body.theme-dark .nav-lang-btn:hover {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* Mobile responsive for language button */
@media (max-width: 768px) {
    .nav-lang-btn {
        padding: 6px 10px;
    }
    
    .nav-lang-btn i {
        font-size: 12px;
    }
    
    .nav-lang-btn .lang-text {
        font-size: 12px;
    }
}