'selected');
                selectedItem = index;
                document.getElementById('selectedItemText').textContent = `Item ${index + 1}`;
                
                // Load current item styles
                const itemStyle = itemStyles[index] || {};
                document.getElementById('flexGrow').value = itemStyle.flexGrow || '0';
                document.getElementById('flexShrink').value = itemStyle.flexShrink || '1';
                document.getElementById('flexBasis').value = itemSty