/ Update CSS classes based on item state
                const currentClasses = element.className;
                const shouldHaveCompleted = newItem.completed;
                const shouldHaveHighPriority = newItem.priority === 'high';
                
                if (shouldHaveCompleted && !currentClasses.includes('completed')) {
                    element.classList.add('completed');
                } else if (!shouldHaveCompleted && currentClasses.includes('completed')) {
                    elemen