export const TIME_OFF_TRACKER_APP = {
  id: 'time-off-tracker',
  name: 'Time Off Tracker',
  description: 'Track time off requests and approvals',
  html: `<!DOCTYPE html><html><head><meta charset="utf-8"><title>Time Off Tracker</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); }
.requests { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.request-item { padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.status { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.status.approved { background: #e8f5e9; color: #27ae60; }
.status.pending { background: #fff3e0; color: #f57c00; }
.actions button { margin-left: 8px; padding: 6px 12px; border-radius: 4px; border: 1px solid #ddd; background: white; cursor: pointer; }
</style></head><body><div id="root"></div>
<script type="text/babel">
function TimeOffTracker() {
  const requests = [
    { employee: 'Sarah Johnson', type: 'Vacation', dates: 'Jan 15-19, 2025', days: 5, status: 'pending' },
    { employee: 'Michael Chen', type: 'Sick', dates: 'Dec 20, 2024', days: 1, status: 'approved' },
    { employee: 'Emily Rodriguez', type: 'Vacation', dates: 'Feb 10-14, 2025', days: 5, status: 'pending' },
  ];
  return (<div className="container"><div className="header"><h1>🏖️ Time Off Tracker</h1><p>Manage time off requests and balances</p></div>
  <div className="requests"><h2>Pending Requests</h2>{requests.map((r, i) => (<div key={i} className="request-item">
  <div><div style={{ fontWeight: 600 }}>{r.employee}</div><div style={{ color: '#666', fontSize: 14 }}>{r.type} • {r.dates} ({r.days} days)</div></div>
  <div className="actions"><span className={\`status \${r.status}\`}>{r.status}</span>
  {r.status === 'pending' && (<><button>Approve</button><button>Deny</button></>)}</div></div>))}</div></div>);
}
ReactDOM.render(<TimeOffTracker />, document.getElementById('root'));
</script></body></html>`,
};
