<!-- Navbar -->
  <nav class="main-header navbar navbar-expand navbar-white navbar-light">
    <!-- Left navbar links -->
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
      </li>
    </ul>

    <!-- Right navbar links -->
    <ul class="navbar-nav ml-auto">
      <!-- User Dropdown Menu -->
      <li class="nav-item dropdown">
        <a class="nav-link" data-toggle="dropdown" href="#" aria-expanded="false">
          <i class="fas fa-user-circle fa-lg text-primary"></i> 
          <span class="ml-1 font-weight-bold text-dark">
              <?php echo $_SESSION['full_name'] ?? 'Administrator'; ?>
          </span>
          <i class="fas fa-caret-down ml-1"></i>
        </a>
        <div class="dropdown-menu dropdown-menu-right shadow-sm border-0" style="min-width: 200px;">
          <div class="dropdown-header text-center bg-light border-bottom">
            <strong><?php echo $_SESSION['username'] ?? 'admin'; ?></strong>
            <div class="text-muted small">System Role</div>
          </div>
          <a href="logout.php" class="dropdown-item text-danger text-center py-2 font-weight-bold">
            <i class="fas fa-power-off mr-2"></i> Secure Sign Out
          </a>
        </div>
      </li>
    </ul>
  </nav>
  <!-- /.navbar -->