      }
        
        // Copy to clipboard function
        function copyToClipboard(elementId) {
            const element = document.getElementById(elementId);
            element.select();
            try {
                document.execCommand('copy');
                // Visual feedback
                const copyBtn = event.target; // `event` is implicitly available in inline handlers
                const originalText = copyBtn.innerText;
                copyBtn.innerText = 'Copied!';
   