ment.addEventListener('DOMContentLoaded', (event) => {
      const toggleSwitch = document.getElementById('checkbox');
      const currentTheme = localStorage.getItem('theme');
    
      if (currentTheme) {
        document.body.classList.add(currentTheme);
        if (currentTheme === 'dark-mode') {
          toggleSwitch.checked = true;
        }
      }
    
      toggleSwitch.addEventListener('change', function () {
        if (this.checked) {
          document.body.classList.add('dark-mode');
       