/**
 * Action Bar Navigation Styles
 * Modern navigation with glow effects matching the logo
 */

:root {
    --nav-cyan: #00D4FF;
    --nav-dark-blue: #0A1628;
    --nav-medium-blue: #1E3A5F;
    --nav-glow: rgba(0, 212, 255, 0.5);
    --nav-glow-strong: rgba(0, 212, 255, 0.8);
    --nav-height: 70px;
}

/* Header Base */
#mainHeader {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.95) 0%, rgba(30, 58, 95, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 2px 20px rgba(0, 212, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
    height: var(--nav-height);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Navigation Sections */
.nav-left {
    display: flex;
    align-items: center;
    position: absolute;
    left: 2rem;
}

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

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

/* Logo Section */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-right: 1.5rem;
    transition: all 0.3s ease;
}

.logo-icon {
    animation: subtle-glow 3s ease-in-out infinite;
}

@keyframes subtle-glow {
    0%, 100% { filter: drop-shadow(0 0 10px var(--nav-glow)); }
    50% { filter: drop-shadow(0 0 20px var(--nav-glow-strong)); }
}

.nav-logo:hover .logo-icon {
    transform: scale(1.05);
    filter: drop-shadow(0 0 25px var(--nav-glow-strong));
}

.logo-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Quick Access Dashboard */
.nav-quick-access {
    display: flex !important;
    align-items: center;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-dashboard-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--nav-cyan);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-dashboard-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--nav-cyan);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

/* Main Navigation */
.nav-main {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-content: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--nav-cyan);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--nav-cyan);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--nav-cyan);
    box-shadow: 0 0 10px var(--nav-glow);
}

.nav-separator {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    user-select: none;
}

/* Quick Actions Dropdown */
.quick-actions-container {
    position: relative;
}

.quick-actions-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 8px;
    color: var(--nav-cyan);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-actions-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: var(--nav-cyan);
    box-shadow: 0 0 15px var(--nav-glow);
    transform: translateY(-1px);
}

.dropdown-arrow {
    transition: transform 0.3s ease;
}

.quick-actions-btn:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.quick-actions-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.98) 0%, rgba(30, 58, 95, 0.98) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    min-width: 220px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

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

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.quick-action-item:hover {
    background: rgba(0, 212, 255, 0.2);
    color: var(--nav-cyan);
    transform: translateX(3px);
}

.action-icon {
    font-size: 1.2rem;
}

/* CTA Button */
.nav-cta {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, var(--nav-cyan) 0%, #0099CC 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

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

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

.nav-cta:hover::before {
    width: 300px;
    height: 300px;
}

/* Pulse animation for CTA */
@keyframes pulse {
    0% { box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 212, 255, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3); }
}

.nav-cta {
    animation: pulse 2s ease-in-out infinite;
}

/* User Section */
.nav-user {
    display: flex;
    align-items: center;
}

.nav-signin {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.nav-signin:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--nav-cyan);
    color: var(--nav-cyan);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-center {
        display: none;
    }
    
    .nav-left {
        position: static;
    }
    
    .nav-right {
        position: static;
        margin-left: auto;
    }
    
    #mainHeader {
        justify-content: space-between;
    }
    
    /* Keep Dashboard button visible on tablets */
    .nav-quick-access {
        display: flex !important;
    }
}

@media (max-width: 768px) {
    #mainHeader {
        padding: 0 1rem;
    }
    
    .nav-left, .nav-right {
        position: static;
    }
    
    .logo-text {
        display: none;
    }
    
    .quick-actions-btn span {
        display: none;
    }
    
    .nav-cta {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .nav-dashboard-link span {
        display: none; /* Hide text on mobile, show icon only */
    }
    
    .nav-dashboard-link {
        padding: 0.5rem;
    }
}

/* Dark theme adjustments */
[data-theme="dark"] #mainHeader {
    background: linear-gradient(135deg, rgba(5, 11, 20, 0.98) 0%, rgba(15, 29, 48, 0.98) 100%);
}

/* Light theme adjustments */
[data-theme="light"] #mainHeader {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 245, 250, 0.95) 100%);
    border-bottom: 1px solid rgba(0, 150, 200, 0.2);
}

[data-theme="light"] .nav-link {
    color: var(--nav-dark-blue);
}

[data-theme="light"] .nav-link:hover {
    color: var(--nav-cyan);
    background: rgba(0, 212, 255, 0.1);
}

[data-theme="light"] .nav-separator {
    color: rgba(10, 22, 40, 0.3);
}

[data-theme="light"] .quick-actions-dropdown {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 245, 250, 0.98) 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .quick-action-item {
    color: var(--nav-dark-blue);
}