export const COMPENSATION_GRID_APP = {
  id: 'compensation-grid',
  name: 'Compensation Grid',
  description: 'Sortable grid of all employee compensations with analytics',
  html: `<!DOCTYPE html><html><head><meta charset="utf-8"><title>Compensation Grid</title>
<script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
<script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@babel/standalone/babel.min.js"></script>
<style>* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #f5f5f5; padding: 20px; }
.container { max-width: 1400px; margin: 0 auto; }
.header { background: white; padding: 24px; border-radius: 8px; margin-bottom: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 24px; }
.stat-card { background: white; padding: 20px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
table { width: 100%; background: white; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); border-collapse: collapse; }
th { text-align: left; padding: 16px; border-bottom: 2px solid #eee; background: #fafafa; font-size: 14px; font-weight: 600; color: #666; }
td { padding: 16px; border-bottom: 1px solid #eee; }
</style></head><body><div id="root"></div>
<script type="text/babel">
function CompensationGrid() {
  const employees = [
    { name: 'Sarah Johnson', role: 'Sr. Engineer', salary: '$125,000', type: 'Salary', lastRaise: 'Jul 2023' },
    { name: 'Michael Chen', role: 'Product Manager', salary: '$115,000', type: 'Salary', lastRaise: 'Jan 2024' },
    { name: 'Emily Rodriguez', role: 'Marketing Mgr', salary: '$105,000', type: 'Salary', lastRaise: 'Mar 2023' },
  ];
  return (<div className="container"><div className="header"><h1>💵 Compensation Grid</h1><p>View and manage employee compensation</p></div>
  <div className="stats"><div className="stat-card"><h3>Avg. Salary</h3><div style={{ fontSize: 28, fontWeight: 'bold', color: '#ff6b35' }}>$98,500</div></div>
  <div className="stat-card"><h3>Total Payroll</h3><div style={{ fontSize: 28, fontWeight: 'bold', color: '#ff6b35' }}>$12.2M</div></div>
  <div className="stat-card"><h3>Median Raise</h3><div style={{ fontSize: 28, fontWeight: 'bold', color: '#ff6b35' }}>4.2%</div></div>
  <div className="stat-card"><h3>Due for Review</h3><div style={{ fontSize: 28, fontWeight: 'bold', color: '#ff6b35' }}>18</div></div></div>
  <table><thead><tr><th>Employee</th><th>Role</th><th>Compensation</th><th>Type</th><th>Last Raise</th></tr></thead>
  <tbody>{employees.map((e, i) => (<tr key={i}><td>{e.name}</td><td>{e.role}</td><td style={{ fontWeight: 600 }}>{e.salary}</td>
  <td>{e.type}</td><td>{e.lastRaise}</td></tr>))}</tbody></table></div>);
}
ReactDOM.render(<CompensationGrid />, document.getElementById('root'));
</script></body></html>`,
};
