const Sidebar = ({ active, onNav }) => { const wrap = { background: 'var(--bg-parchment)', borderRight: '1px solid var(--border-1)', padding: '24px 16px', display: 'flex', flexDirection: 'column', gap: 4, minHeight: '100vh' }; const brand = { display: 'flex', alignItems: 'center', gap: 10, padding: '4px 10px 24px' }; const sectionLabel = { fontFamily: 'var(--font-mono)', fontSize: 9, letterSpacing: '0.18em', textTransform: 'uppercase', color: 'var(--fg-3)', padding: '14px 12px 6px' }; const item = (isActive) => ({ display: 'flex', alignItems: 'center', gap: 12, padding: '9px 12px', borderRadius: 8, fontFamily: 'var(--font-sans)', fontSize: 13.5, fontWeight: 500, color: isActive ? 'var(--fg-1)' : 'var(--fg-2)', background: isActive ? 'rgba(17,122,77,0.08)' : 'transparent', border: '1px solid', borderColor: isActive ? 'rgba(17,122,77,0.25)' : 'transparent', cursor: 'pointer', textAlign: 'left', width: '100%', }); const dot = (color) => ({ width: 6, height: 6, borderRadius: '50%', background: color, boxShadow: `0 0 8px ${color}` }); const groups = []; return ( ); }; window.Sidebar = Sidebar;