<!-- Sidebar -->
<div class="col-md-3 col-lg-2 sidebar p-3 text-white">
    <h4 class="text-center mb-4">
        <i class="fas fa-hospital"></i> UHD Admin
    </h4>
    <p class="text-center mb-4 text-light">
        Welcome, <strong><?= htmlspecialchars($_SESSION['username']) ?></strong>
    </p>
    
    <nav class="nav flex-column">
        <a href="dashboard.php" class="nav-link text-white py-2 px-3 <?= basename($_SERVER['PHP_SELF']) == 'dashboard.php' ? 'active' : '' ?>">
            <i class="fas fa-home me-2"></i> Dashboard
        </a>
        <a href="manage_patients.php" class="nav-link text-white py-2 px-3 <?= basename($_SERVER['PHP_SELF']) == 'manage_patients.php' ? 'active' : '' ?>">
            <i class="fas fa-users me-2"></i> Manage Patients
        </a>
        <a href="manage_doctor.php" class="nav-link text-white py-2 px-3 <?= basename($_SERVER['PHP_SELF']) == 'manage_doctor.php' ? 'active' : '' ?>">
            <i class="fas fa-user-md me-2"></i> Manage Doctors
        </a>
        <a href="manage_users.php" class="nav-link text-white py-2 px-3 <?= basename($_SERVER['PHP_SELF']) == 'manage_users.php' ? 'active' : '' ?>">
            <i class="fas fa-user-cog me-2"></i> Manage All Users
        </a>
        <a href="add_user.php" class="nav-link text-white py-2 px-3 <?= basename($_SERVER['PHP_SELF']) == 'add_user.php' ? 'active' : '' ?>">
            <i class="fas fa-user-plus me-2"></i> Add New User
        </a>
        <a href="reports.php" class="nav-link text-white py-2 px-3 <?= basename($_SERVER['PHP_SELF']) == 'reports.php' ? 'active' : '' ?>">
            <i class="fas fa-chart-bar me-2"></i> Reports & Analytics
        </a>
        <a href="manage_logs.php" class="nav-link text-white py-2 px-3 <?= basename($_SERVER['PHP_SELF']) == 'manage_logs.php' ? 'active' : '' ?>">
            <i class="fas fa-history me-2"></i> Activity Logs
        </a>
        <a href="settings.php" class="nav-link text-white py-2 px-3 <?= basename($_SERVER['PHP_SELF']) == 'settings.php' ? 'active' : '' ?>">
            <i class="fas fa-cog me-2"></i> Settings
        </a>
    </nav>
    
    <hr style="border-color: rgba(255,255,255,0.2); margin: 20px 0;">
    
    <a href="logout.php" class="nav-link text-danger py-2 px-3">
        <i class="fas fa-sign-out-alt me-2"></i> Logout
    </a>
</div>