/* ── Shared top navigation bar ──────────────────────────────────────────── */

.app-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 16px;
    user-select: none;
}

.app-nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 6px 10px 6px 4px;
    border-right: 1px solid var(--border);
    margin-right: 8px;
    white-space: nowrap;
}

.app-nav-brand-icon {
    font-size: 16px;
    line-height: 1;
}

.app-nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.app-nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    color: var(--text-muted);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.app-nav-link:hover {
    background: var(--hover-bg);
    color: var(--text);
}

.app-nav-link.active {
    background: rgba(59, 125, 216, 0.15);
    color: var(--accent);
}

.app-nav-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.app-nav-link-icon {
    font-size: 14px;
    line-height: 1;
}

.app-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.app-nav-version {
    font-size: 11px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Push page content below the nav bar */
body.has-app-nav {
    padding-top: 44px;
}
