export const CONTRACTOR_DASHBOARD_APP = {
  id: 'contractor-dashboard',
  name: 'Contractor Dashboard',
  description: 'Manage contractors and track payments',
  html: `<!DOCTYPE html><html><head><meta charset="utf-8"><title>Contractor Dashboard</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); }
.stat-card h3 { font-size: 14px; color: #666; margin-bottom: 8px; }
.stat-card .value { font-size: 32px; font-weight: bold; color: #ff6b35; }
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; }
td { padding: 16px; border-bottom: 1px solid #eee; }
</style></head><body><div id="root"></div>
<script type="text/babel">
function ContractorDashboard() {
  const contractors = [
    { name: 'Alex Design Co.', type: 'Business', totalPaid: '$45,000', lastPayment: 'Jan 2, 2025' },
    { name: 'Sarah Martinez', type: 'Individual', totalPaid: '$28,500', lastPayment: 'Dec 28, 2024' },
    { name: 'Tech Solutions LLC', type: 'Business', totalPaid: '$62,000', lastPayment: 'Jan 5, 2025' },
  ];
  return (<div className="container"><div className="header"><h1>👔 Contractor Dashboard</h1><p>Manage contractors and track 1099 payments</p></div>
  <div className="stats"><div className="stat-card"><h3>Total Contractors</h3><div className="value">18</div></div>
  <div className="stat-card"><h3>Active Contractors</h3><div className="value">15</div></div>
  <div className="stat-card"><h3>YTD Paid</h3><div className="value">$342k</div></div>
  <div className="stat-card"><h3>Avg. Monthly</h3><div className="value">$28.5k</div></div></div>
  <table><thead><tr><th>Contractor</th><th>Type</th><th>Total Paid (2024)</th><th>Last Payment</th></tr></thead>
  <tbody>{contractors.map((c, i) => (<tr key={i}><td>{c.name}</td><td>{c.type}</td><td style={{ fontWeight: 600 }}>{c.totalPaid}</td>
  <td>{c.lastPayment}</td></tr>))}</tbody></table></div>);
}
ReactDOM.render(<ContractorDashboard />, document.getElementById('root'));
</script></body></html>`,
};
