   const bodyElement = document.body;
    
          const currentTheme = localStorage.getItem('theme') || 'light';
          if (currentTheme === 'dark') {
            bodyElement.classList.add('dark-mode');
            toggleSwitch.checked = true;
          } else {
            bodyElement.classList.add('light-mode');
          }
    
          toggleSwitch.addEventListener('change', function (event) {
            if (event.target.checked) {
              bodyElement.classList.remove('light-mode');
      