<!-- Sidebar -->
<div class="sidebar">
    <div class="sidebar-header">
        <div class="logo">
            <div class="logo-icon">
                <i class="fas fa-heartbeat"></i>
            </div>
            <h2>HB</h2>
        </div>
        <button class="toggle-sidebar">
            <i class="fas fa-angle-left"></i>
        </button>
    </div>
    
    <div class="sidebar-menu">
        <div class="menu-title">Main</div>
        <a href="dashboard" class="menu-item <?php echo ($page == 'Dashboard') ? 'active' : ''; ?>">
            <i class="fas fa-tachometer-alt"></i>
            <span>Dashboard</span>
        </a>
        
        <div class="menu-title">Modules</div>
        <a href="eappointment" class="menu-item <?php echo ($page == 'eAppointment') ? 'active' : ''; ?>">
            <i class="fas fa-calendar-check"></i>
            <span>eAppointment</span>
        </a>
        <a href="estaff" class="menu-item <?php echo ($page == 'eStaff') ? 'active' : ''; ?>">
            <i class="fas fa-user-md"></i>
            <span>eStaff</span>
        </a>
        <a href="epatient" class="menu-item <?php echo ($page == 'ePatient') ? 'active' : ''; ?>">
            <i class="fas fa-user-injured"></i>
            <span>ePatient</span>
        </a>
        <a href="equeuing" class="menu-item <?php echo ($page == 'eQueuing') ? 'active' : ''; ?>">
            <i class="fas fa-list-ol"></i>
            <span>eQueuing (FIFO)</span>
        </a>
        <a href="patient-notes" class="menu-item <?php echo ($page == 'Patient Notes') ? 'active' : ''; ?>">
            <i class="fas fa-file-medical"></i>
            <span>Patient Notes</span>
        </a>
        <a href="ehealth-records" class="menu-item <?php echo ($page == 'eHealth Records') ? 'active' : ''; ?>">
            <i class="fas fa-notes-medical"></i>
            <span>eHealth Records</span>
        </a>
        <a href="accounts-billing" class="menu-item <?php echo ($page == 'Accounts & Billing') ? 'active' : ''; ?>">
            <i class="fas fa-file-invoice-dollar"></i>
            <span>Accounts & Billing</span>
        </a>
        <a href="epharmacy" class="menu-item <?php echo ($page == 'ePharmacy & Stock') ? 'active' : ''; ?>">
            <i class="fas fa-pills"></i>
            <span>ePharmacy & Stock</span>
        </a>
        <a href="emortuary" class="menu-item <?php echo ($page == 'eMortuary') ? 'active' : ''; ?>">
            <i class="fas fa-dove"></i>
            <span>eMortuary</span>
        </a>
        <a href="efleet" class="menu-item <?php echo ($page == 'eFleet') ? 'active' : ''; ?>">
            <i class="fas fa-ambulance"></i>
            <span>eFleet</span>
        </a>
        <a href="elaboratory" class="menu-item <?php echo ($page == 'eLaboratory') ? 'active' : ''; ?>">
            <i class="fas fa-microscope"></i>
            <span>eLaboratory</span>
        </a>
        <a href="health-providers" class="menu-item <?php echo ($page == 'Health Providers') ? 'active' : ''; ?>">
            <i class="fas fa-address-book"></i>
            <span>Health Providers</span>
        </a>
        <a href="estore" class="menu-item <?php echo ($page == 'eStore') ? 'active' : ''; ?>">
            <i class="fas fa-store"></i>
            <span>eStore</span>
        </a>
        
        <div class="menu-title">Settings</div>
        <a href="system-settings" class="menu-item <?php echo ($page == 'System Settings') ? 'active' : ''; ?>">
            <i class="fas fa-cog"></i>
            <span>System Settings</span>
        </a>
        <a href="admin-controls" class="menu-item <?php echo ($page == 'Admin Controls') ? 'active' : ''; ?>">
            <i class="fas fa-user-shield"></i>
            <span>Admin Controls</span>
        </a>
        <a href="logout" class="menu-item">
            <i class="fas fa-sign-out-alt"></i>
            <span>Logout</span>
        </a>

    </div>
</div>