th;
            canvas.height = window.innerHeight;
        });

        // Button loading state
        document.querySelectorAll('a.btn').forEach(button => {
            button.addEventListener('click', function(e) {
                this.innerHTML = '<i class="fas fa-spinner fa-spin"></i> ' + this.textContent.trim();
            });
        });
    </script>
</body>
</html>