/* ===========================================
   NAV — Horizontal Navigation (Top Navbar)
   ===========================================
   Horizontal nav links inside the portal navbar.
   Active state: bottom border accent.
   Links fill the navbar height (56px).
   =========================================== */


.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 var(--space-md);
    height: 56px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color var(--duration-fast), border-color var(--duration-fast),
                background var(--duration-fast);
    flex-shrink: 0;
    white-space: nowrap;
}

@media (hover: hover) {
    .nav-link:hover {
        color: var(--text-primary);
        background: var(--bg-secondary);
    }
}

.nav-link:active {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.nav-link.active {
    color: var(--accent);
    font-weight: 600;
    border-bottom-color: var(--accent);
}

.nav-link .nav-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.5;
}

.nav-link.active .nav-icon {
    opacity: 1;
}

.nav-link .nav-icon i,
.nav-link .nav-icon svg {
    width: 15px;
    height: 15px;
}

.nav-link .nav-label {
    white-space: nowrap;
}
