 filteredClasses.forEach(cls => {
            const tag = document.createElement('span');
            // Check if the class is in currentClasses (case-insensitive)
            const isSelected = currentClasses.includes(cls.toLowerCase());
            tag.className = `class-tag ${isSelected ? 'selected' : ''}`;
            tag.textContent = cls;
            tag.addEventListener('click', () => {
                let updatedClasses = classNamesInput.value
                    .split(/[,.;]\s*/)
                 