class CustomStatCard extends HTMLElement { connectedCallback() { const title = this.getAttribute('title') || ''; const value = this.getAttribute('value') || ''; const icon = this.getAttribute('icon') || 'activity'; const color = this.getAttribute('color') || 'gray'; this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `
${title}
${value}