
          }, 1500);
        } catch (err) {
          console.error("Copy failed:", err);
        }
      });
    });

    // Dark mode toggle
    const themeToggleBtn = document.getElementById("theme-toggle");
    themeToggleBtn.addEventListener("click", () => {
      document.body.classList.toggle("dark-theme");
      if (document.body.classList.contains("dark-theme")) {
        themeToggleBtn.textContent = "‚òÄÔ∏è";
        themeToggleBtn.setAttribute("aria-label", "Toggle light mode");
      } 