            </svg>
                        <span class="copy-text">Copied!</span>
                    `;
                    setTimeout(() => {
                        copyButton.innerHTML = originalButtonContent;
                    }, 2000);
                })
                .catch(err => {
                    console.error('Failed to copy text: ', err);
                    alert('Failed to copy command.');
                });
        });
    }
</script>
</body>
</html>
