.disabled = false;
                sendButton.disabled = false;
            } else {
                status.textContent = 'üî¥ Disconnected from server';
                status.className = 'status disconnected';
                input.disabled = true;
                sendButton.disabled = true;
            }
        }

        function connect() {
            try {
                addMessage('üîÑ Connecting to WebSocket server...', 'system');
                ws = new WebSocket('ws://localhost:808