one" : "block";
      button.textContent = isVisible ? "Show Code" : "Hide Code";
    }

    document.querySelectorAll(".copy-btn").forEach((btn) => {
      btn.addEventListener("click", async () => {
        const codeBlock = btn.previousElementSibling;
        try {
          await navigator.clipboard.writeText(codeBlock.innerText);
          btn.textContent = "Copied!";
          btn.disabled = true;
          setTimeout(() => {
            btn.textContent = "Copy Code";
            btn.disabled = false;