<?php
// Minimal topbar (no demo controls)
?>
<header class="navbar navbar-expand-md d-none d-lg-flex d-print-none">
  <div class="container-fluid">
    <div class="navbar-nav flex-row order-md-last">
      <div class="nav-item dropdown">
        <a href="#" class="nav-link d-flex lh-1 text-reset p-0" data-bs-toggle="dropdown" aria-label="Open user menu">
          <span class="avatar avatar-sm" style="background-image: none"></span>
          <div class="d-none d-xl-block ps-2">
            <div><?php echo htmlspecialchars($_SESSION[$authVar] ?? 'User', ENT_QUOTES, 'UTF-8'); ?></div>
            <div class="mt-1 small text-secondary">Admin</div>
          </div>
        </a>
        <div class="dropdown-menu dropdown-menu-end dropdown-menu-arrow">
          <a href="dashboard.php?profile" class="dropdown-item">Profile</a>
          <div class="dropdown-divider"></div>
          <a href="logout.php" class="dropdown-item">Logout</a>
        </div>
      </div>
    </div>

    <div class="navbar-nav">
      <div class="nav-item">
        <span class="nav-link disabled"><?php echo isset($pageTitle) ? htmlspecialchars($pageTitle, ENT_QUOTES, 'UTF-8') : ''; ?></span>
      </div>
    </div>
  </div>
</header>
