class CustomSidebar extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
`; // Inicializar feather icons no shadow DOM this.shadowRoot.querySelectorAll('[data-feather]').forEach(icon => { const iconName = icon.getAttribute('data-feather'); if (window.feather) { const svg = window.feather.icons[iconName].toSvg(); icon.outerHTML = svg; } }); } } customElements.define('custom-sidebar', CustomSidebar);