tedCommand = null;
        let currentView = 'list';

        // API Configuration
        const API_BASE_URL = 'http://localhost:8090/qv/api.php';

        // Initialize the application
        async function init() {
            try {
                await loadCommands();
                await loadCategories();
                setupEventListeners();
                updateStats();
            } catch (error) {
                console.error('Failed to initialize:', error);
                document.getElemen