<header class="bg-white shadow-sm border-b px-6 py-3 flex items-center justify-between">
  <h1 class="text-xl font-semibold text-gray-800"><%= typeof title !== 'undefined' ? title : 'Dashboard' %></h1>
  <div class="flex items-center gap-4">
    <span class="text-sm text-gray-500"><i class="fas fa-user mr-2"></i><%= currentUser.name %></span>
    <a href="/logout" class="text-sm text-red-600 hover:text-red-800"><i class="fas fa-sign-out-alt mr-1"></i> Logout</a>
  </div>
</header>
