// Sidebar Toggle Logic
//document.addEventListener('DOMContentLoaded', () => {
    const sidebar = document.querySelector('.sidebar');
    const closeBtn = document.querySelector('.close-btn');
  
    // Close Sidebar
    closeBtn.addEventListener('click', () => {
      sidebar.classList.remove('open');
    });
  
    // Open Sidebar
    const menuIcon = document.querySelector('.menu-icon'); // If you have a menu icon for opening
    if (menuIcon) {
      menuIcon.addEventListener('click', () => {
        sidebar.classList.add('open');
      });
    }
 // });
  
  // Smooth Scroll for Sidebar Links
  document.querySelectorAll('.sidebar a').forEach(link => {
    link.addEventListener('click', event => {
      const target = document.querySelector(event.target.getAttribute('href'));
      if (target) {
        event.preventDefault();
        window.scrollTo({
          top: target.offsetTop,
          behavior: 'smooth'
        });
      }
    });
  });
  