                // Add performance warning for large files
                if (data.save.length > 1000000) { // 1MB
                    const warningDiv = document.createElement('div');
                    warningDiv.className = 'warning';
                    warningDiv.innerHTML = '⚠️ Large save file detected. Some features like syntax highlighting are limited for better performance.';
                    editorContainer.insertBefore(warningDiv, cmElement);
                }
            } catch (error)