    <nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
        <button class="navbar-toggler d-none d-md-block" type="button" id="sidebar-toggler" aria-label="Toggle sidebar" aria-expanded="true">
            <i class="bi bi-list"></i>
        </button>
        <a class="navbar-brand col-md-3 col-lg-2 me-0 px-3" href="#"><img src="assets/pasted-20260111-143449-befa41d3.png" class="d-inline-block align-top navbar-logo" alt=""> <?php echo getenv('PROJECT_NAME') ?: 'BNI obsługa regionu'; ?></a>
        <button class="navbar-toggler position-absolute d-md-none collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#sidebarMenu" aria-controls="sidebarMenu" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <ul class="navbar-nav flex-row px-3">
            <?php if (isset($_SESSION['user_name'])): ?>
            <li class="nav-item text-nowrap">
                <span class="nav-link">Witaj, <?= htmlspecialchars($_SESSION['user_name']) ?></span>
            </li>
            <?php endif; ?>
            <li class="nav-item text-nowrap ms-2">
                <a class="nav-link" href="logout.php">Wyloguj</a>
            </li>
        </ul>
    </nav>