<script>
        document.addEventListener("DOMContentLoaded", function() {
            const sidebar = document.getElementById('sidebarMenu');
            const toggleBtn = document.getElementById('sidebarToggle');
            const overlay = document.getElementById('sidebarOverlay');

            // Open sidebar when the hamburger menu (Mobile Menu Button) is clicked
            if(toggleBtn) {
                toggleBtn.addEventListener('click', function(e) {
                    e.preventDefault(); // Prevent default page reload
                    sidebar.classList.toggle('mobile-show');
                    overlay.classList.toggle('active');
                });
            }

            // Smoothly close the sidebar when clicking on the dark blur overlay
            if(overlay) {
                overlay.addEventListener('click', function() {
                    sidebar.classList.remove('mobile-show');
                    overlay.classList.remove('active');
                });
            }
        });
    </script>
    
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>