<nav class="admin-nav">
    <div class="nav-container">
        <div class="nav-brand">
            <h2>Ensi.lk Admin</h2>
        </div>
        <ul class="nav-menu">
            <li><a href="dashboard.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'dashboard.php' ? 'active' : ''; ?>">📊 Dashboard</a></li>
            <li><a href="users.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'users.php' ? 'active' : ''; ?>">👥 Users</a></li>
            <li><a href="subscriptions.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'subscriptions.php' ? 'active' : ''; ?>">📦 Subscriptions</a></li>
            <li><a href="enroll_student.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'enroll_student.php' ? 'active' : ''; ?>">➕ Enroll Student</a></li>
            <li><a href="payment_requests.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'payment_requests.php' ? 'active' : ''; ?>">💰 Payments</a></li>
            <li><a href="hero_banners.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'hero_banners.php' ? 'active' : ''; ?>">🎨 Hero Banners</a></li>
            <li><a href="comments.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'comments.php' ? 'active' : ''; ?>">💬 Comments</a></li>
            <li><a href="sessions.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'sessions.php' ? 'active' : ''; ?>">🔐 Sessions</a></li>
            <li><a href="logs.php" class="<?php echo basename($_SERVER['PHP_SELF']) === 'logs.php' ? 'active' : ''; ?>">📋 Activity Logs</a></li>
        </ul>
        <div class="nav-user">
            <span>👤 <?php echo htmlspecialchars($admin['username']); ?></span>
            <a href="logout.php" class="btn-logout">Logout</a>
        </div>
    </div>
</nav>
