/* Default Theme Colors for Navbar */
:root {
    /* Default Theme - Blue */
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --secondary-light: #e2e8f0;
    
    /* Common colors */
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Theme Colors */
[data-theme="purple"] {
    --primary-color: #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-light: #ede9fe;
    --secondary-color: #6366f1;
    --secondary-hover: #4f46e5;
    --secondary-light: #e0e7ff;
}

[data-theme="green"] {
    --primary-color: #10b981;
    --primary-hover: #059669;
    --primary-light: #d1fae5;
    --secondary-color: #14b8a6;
    --secondary-hover: #0d9488;
    --secondary-light: #ccfbf1;
}

[data-theme="red"] {
    --primary-color: #ef4444;
    --primary-hover: #dc2626;
    --primary-light: #fee2e2;
    --secondary-color: #f59e0b;
    --secondary-hover: #d97706;
    --secondary-light: #fef3c7;
}

[data-theme="orange"] {
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --primary-light: #fed7aa;
    --secondary-color: #fb923c;
    --secondary-hover: #f97316;
    --secondary-light: #fed7aa;
}

[data-theme="teal"] {
    --primary-color: #14b8a6;
    --primary-hover: #0d9488;
    --primary-light: #ccfbf1;
    --secondary-color: #06b6d4;
    --secondary-hover: #0891b2;
    --secondary-light: #cffafe;
}

[data-theme="indigo"] {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: #e0e7ff;
    --secondary-color: #8b5cf6;
    --secondary-hover: #7c3aed;
    --secondary-light: #ede9fe;
}

[data-theme="pink"] {
    --primary-color: #ec4899;
    --primary-hover: #db2777;
    --primary-light: #fce7f3;
    --secondary-color: #f43f5e;
    --secondary-hover: #e11d48;
    --secondary-light: #ffe4e6;
}

/* Navbar Clean Design with Theme Support */
.navbar {
    background: var(--primary-color);
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.12),
        0 4px 16px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.2),
        inset 0 -1px 0 rgba(0,0,0,0.1);
    border-bottom: none;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    height: 58px; /* Back to normal height */
    overflow: visible;
    backdrop-filter: blur(8px);
}

/* Simple horizontal stripe pattern */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg, 
        transparent 0px, 
        transparent 3px, 
        rgba(255,255,255,0.1) 3px, 
        rgba(255,255,255,0.1) 4px
    );
    pointer-events: none;
    z-index: 1;
}

@keyframes waveFlow {
    0%, 100% { 
        opacity: 1;
        transform: translateX(0px) scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: translateX(10px) scale(1.02);
    }
}




/* Diagonal highlight layer */
.navbar::before {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: 
        linear-gradient(90deg, 
            rgba(255,255,255,0.4) 0%, 
            rgba(255,255,255,0.6) 50%, 
            rgba(255,255,255,0.4) 100%
        );
    pointer-events: none;
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% 90%, 
        0 150%
    );
}


.navbar .container-fluid {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(1px);
}

/* Add subtle glow effect to navbar elements */
.navbar-brand,
.nav-link {
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover,
.nav-link:hover {
    text-shadow: 
        0 1px 2px rgba(0,0,0,0.3),
        0 0 8px rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.navbar-brand:hover {
    color: white;
    transform: translateX(2px);
}

.navbar-brand img {
    height: 26px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    margin-right: 1rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Navigation Links */
.navbar-nav {
    align-items: center;
    height: 100%;
}

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

.navbar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    padding: 0.5rem 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.navbar .nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: rotate(5deg) scale(1.1);
}

/* Active nav indicator - no background */
.navbar .nav-link.active {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    background-color: transparent !important;
}

.navbar .nav-link.active:hover {
    color: white !important;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    padding: 0.375rem 0.625rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-primary);
    font-size: 0.6875rem;
}

.dropdown-item:hover {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.dropdown-item:hover i {
    color: var(--text-secondary);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Navbar separator */
.navbar-nav.ms-auto::before {
    content: '';
    width: 1px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 1rem;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.language-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    cursor: pointer;
    font-size: 0.875rem;
}

.language-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    min-width: 150px;
    display: none;
}

.language-dropdown.show {
    display: block;
}

.language-option {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    text-align: left;
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
}

.language-option:hover {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.language-option.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

/* User Profile Dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    cursor: pointer;
    border-radius: 8px;
    background-color: transparent;
    border: none;
    transition: all 0.2s ease;
}

.user-dropdown:hover {
    background-color: transparent;
    transform: translateY(-1px);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-dropdown:hover .user-avatar {
    border-color: rgba(255, 255, 255, 0.7);
}

.user-name {
    font-size: 0.75rem;
    color: white;
    font-weight: 500;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Company Info Bar */
.company-info-bar {
    background-color: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    color: white;
    position: relative;
    z-index: 1020;
}

.company-info-bar .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.company-info-bar .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: var(--primary-color);
        margin: 0 -1rem;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        margin-top: 1rem;
        border-radius: 8px;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        border-radius: 8px;
    }
    
    .navbar-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        background-color: var(--bg-color);
        margin: 0.5rem 0;
    }
    
    .user-dropdown {
        justify-content: flex-start;
        width: 100%;
    }
}

/* Body adjustment when company bar is present */
body.has-company-bar {
    padding-top: 0; /* No top spacing */
}

/* Reduce overall navbar spacing */
.navbar .container-fluid {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

