/* Global App Bar Styles */

:root {
    --nav-height: 72px;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --nav-border: rgba(226, 232, 240, 0.8);
    --nav-blur: 12px;
    --primary-blue: #2563eb;
    --text-dark: #0f172a;
    --text-muted: #64748b;
}

.staff-dashboard-page {
    padding-top: var(--nav-height);
}

.global-app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid var(--nav-border);
    z-index: 1000;
    display: flex;
    justify-content: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    box-sizing: border-box;
}

.nav-brand {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
    flex-shrink: 0;
}

.nav-brand svg {
    width: 32px;
    height: 32px;
    color: var(--primary-blue);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.nav-link.active {
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.08);
}

@media (max-width: 640px) {
    :root {
        --nav-height: 64px;
    }

    .nav-container {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-brand span {
        display: none;
    }

    .nav-brand svg {
        width: 30px;
        height: 30px;
    }

    .nav-user {
        flex: 1;
        justify-content: flex-end;
        gap: 8px;
    }

    .nav-queue-link,
    .nav-dashboard-link {
        width: 38px;
        height: 38px;
        padding: 0;
    }

    .nav-queue-link span,
    .nav-dashboard-link span,
    .nav-clinic-badge {
        display: none;
    }
}

/* ── NAV USER SECTION ── */
.nav-user {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.nav-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}

.nav-greeting {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.nav-queue-link,
.nav-dashboard-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1.5px solid rgba(37, 99, 235, 0.18);
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.08);
    color: var(--primary-blue);
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-queue-link i,
.nav-dashboard-link i {
    font-size: 1.05rem;
    line-height: 1;
}

.nav-queue-link:hover,
.nav-dashboard-link:hover {
    border-color: var(--primary-blue);
    background: var(--primary-blue);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.18);
}

.nav-clinic-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    max-width: 220px;
    padding: 7px 12px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.06);
    color: var(--text-dark);
    font-size: 0.82rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dashboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1.5px solid var(--nav-border);
    border-radius: 8px;
    background: var(--primary-blue);
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-dashboard-btn svg {
    width: 16px;
    height: 16px;
}

.nav-dashboard-btn:hover {
    background: #1d4ed8;
    color: white;
    transform: translateY(-1px);
}

.nav-logout-btn i { font-size: 1rem; }

.nav-logout-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
    background: #fff5f5;
}

.nav-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    border: 1.5px solid var(--nav-border);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-search-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    background: rgba(37, 99, 235, 0.05);
}

.nav-appointment-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--primary-blue);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.nav-appointment-btn i {
    font-size: 1.1rem;
}

.nav-appointment-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.25);
    color: white;
}

.nav-appointment-btn.active {
    background: #1e40af;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .nav-greeting { display: none; }
    .nav-logout-btn span { display: none; }
    .nav-logout-btn {
        min-width: 38px;
        min-height: 38px;
        padding: 7px 10px;
        justify-content: center;
        gap: 0;
        font-size: 0;
    }

    .nav-logout-btn i {
        font-size: 1.05rem;
    }
}
