<?php
if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
?>

<header class="header fixed-top" style="background-color: #1490d7;">
  <div class="container d-flex align-items-center justify-content-between py-2">

    <!-- Logo -->
    <a href="index.php" class="d-flex align-items-center">
      <img src="assets/img/logo.png" alt="Clinic Logo" style="height:50px; margin-right:10px;">
      <span class="fw-bold text-white">ICMR-NIRRCH</span>
    </a>

    <!-- Desktop Navbar -->
    <nav class="d-none d-xl-flex gap-3">
      <a href="index.php" class="text-white">Home</a>
      <a href="registrationList.php" class="text-white">Registration List</a>
        <a href="applicationList.php" class="text-white">Application List</a>
        <!-- <a href="print-application.php" class="text-white">Print Application</a> -->
        <a href="logout.php" class="text-white"><?= htmlspecialchars($_SESSION['user']['email']); ?> (Logout)</a>
    </nav>

    <!-- Mobile toggle -->
    <button type="button" class="btn d-xl-none text-white" data-bs-toggle="modal" data-bs-target="#mobileMenu">
      <i class="bi bi-list fs-3"></i>
    </button>

  </div>
</header>



<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
