// Sidebar Navigation Component const Sidebar = ({ view, setView, leads, user, onSignOut, spreadsheetId }) => { const totalAtivos = leads.filter(l => l.stage !== 'Fechado').length; const followupsHoje = leads.filter(l => l.followup && l.followup <= new Date().toISOString().split('T')[0]).length; const nav = [ { id: 'dashboard', icon: DashIcon, label: 'Dashboard' }, { id: 'pipeline', icon: PipeIcon, label: 'Pipeline' }, { id: 'planilha', icon: TableIcon, label: 'Planilha' }, ]; const sheetUrl = spreadsheetId ? `https://docs.google.com/spreadsheets/d/${spreadsheetId}` : null; return ( ); }; // Mini icons const DashIcon = ({ active }) => ( ); const PipeIcon = ({ active }) => ( ); const TableIcon = ({ active }) => ( ); const sidebarStyles = { sidebar: { width: 220, minWidth: 220, height: '100vh', background: '#0d0f18', borderRight: '1px solid #1e2235', display: 'flex', flexDirection: 'column', padding: '0 0 16px 0', overflowY: 'auto', }, logo: { display: 'flex', alignItems: 'center', gap: 10, padding: '20px 18px 16px', borderBottom: '1px solid #1e2235', }, logoMark: { width: 36, height: 36, borderRadius: 10, background: '#151828', display: 'flex', alignItems: 'center', justifyContent: 'center', border: '1px solid #1e2235', }, logoName: { fontSize: 14, fontWeight: 700, color: '#e8eaf0', letterSpacing: 1 }, logoSub: { fontSize: 10, color: '#4a4f6a', marginTop: 1 }, section: { padding: '16px 10px 8px' }, sectionLabel: { fontSize: 9, letterSpacing: 1.5, color: '#4a4f6a', fontWeight: 700, padding: '0 8px', marginBottom: 6 }, navItem: { display: 'flex', alignItems: 'center', gap: 10, width: '100%', padding: '9px 10px', background: 'none', border: 'none', cursor: 'pointer', borderRadius: 8, color: '#6b7194', fontSize: 13, fontWeight: 500, transition: 'all 0.15s', position: 'relative', textAlign: 'left', }, navItemActive: { background: 'rgba(79,124,255,0.12)', color: '#c7d2ff' }, activeDot: { position: 'absolute', right: 10, width: 6, height: 6, borderRadius: '50%', background: '#4f7cff', }, stat: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', padding: '7px 8px', borderRadius: 7, marginBottom: 2, }, statLabel: { fontSize: 12, color: '#4a4f6a' }, statValue: { fontSize: 13, fontWeight: 700, color: '#e8eaf0' }, sheetLink: { display: 'flex', alignItems: 'center', gap: 6, padding: '7px 10px', borderRadius: 8, background: 'rgba(74,222,128,0.07)', border: '1px solid rgba(74,222,128,0.15)', color: '#4ade80', fontSize: 11, fontWeight: 600, textDecoration: 'none', transition: 'opacity 0.15s', }, footer: { marginTop: 'auto', padding: '12px 14px', display: 'flex', alignItems: 'center', gap: 8, borderTop: '1px solid #1e2235', }, avatar: { width: 32, height: 32, borderRadius: '50%', background: 'rgba(79,124,255,0.2)', display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: 11, fontWeight: 700, color: '#4f7cff', flexShrink: 0, }, avatarImg: { width: 32, height: 32, borderRadius: '50%', flexShrink: 0, objectFit: 'cover', }, userName: { fontSize: 12, fontWeight: 600, color: '#c7d2ff', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }, userRole: { fontSize: 10, color: '#4a4f6a', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }, logoutBtn: { background: 'none', border: 'none', cursor: 'pointer', padding: 4, borderRadius: 6, flexShrink: 0, display: 'flex', }, };