export const TIME_OFF_BALANCES_APP = {
  id: 'time-off-balances',
  name: 'Time Off Balances',
  description: 'View employee time off balances and accruals',
  html: `<!DOCTYPE html><html><head><meta charset="utf-8"><title>Time Off Balances</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: 1200px; 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); }
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; }
td { padding: 16px; border-bottom: 1px solid #eee; }
.balance { font-weight: 600; color: #ff6b35; }
</style></head><body><div id="root"></div>
<script type="text/babel">
function TimeOffBalances() {
  const balances = [
    { employee: 'Sarah Johnson', vacation: 15.5, sick: 8.0, personal: 3.0 },
    { employee: 'Michael Chen', vacation: 20.0, sick: 10.0, personal: 5.0 },
    { employee: 'Emily Rodriguez', vacation: 12.0, sick: 6.5, personal: 2.0 },
  ];
  return (<div className="container"><div className="header"><h1>⏱️ Time Off Balances</h1><p>Employee time off accruals and remaining balances</p></div>
  <table><thead><tr><th>Employee</th><th>Vacation (days)</th><th>Sick (days)</th><th>Personal (days)</th><th>Total</th></tr></thead>
  <tbody>{balances.map((b, i) => {
    const total = b.vacation + b.sick + b.personal;
    return (<tr key={i}><td>{b.employee}</td><td className="balance">{b.vacation}</td><td className="balance">{b.sick}</td>
    <td className="balance">{b.personal}</td><td style={{ fontWeight: 'bold' }}>{total.toFixed(1)}</td></tr>);
  })}</tbody></table></div>);
}
ReactDOM.render(<TimeOffBalances />, document.getElementById('root'));
</script></body></html>`,
};
