export const PAYROLL_DASHBOARD_APP = {
  id: 'payroll-dashboard',
  name: 'Payroll Dashboard',
  description: 'Overview of payroll runs, upcoming deadlines, and payroll metrics',
  html: `<!DOCTYPE html>
<html><head><meta charset="utf-8"><title>Payroll 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-grid { 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; }
.payroll-list { background: white; padding: 24px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.payroll-item { padding: 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; }
.status { padding: 4px 12px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.status.processed { background: #e8f5e9; color: #27ae60; }
.status.pending { background: #fff3e0; color: #f57c00; }
</style></head><body><div id="root"></div>
<script type="text/babel">
const { useState } = React;
function PayrollDashboard() {
  const payrolls = [
    { id: 1, period: 'Dec 16 - Dec 31, 2024', checkDate: 'Jan 5, 2025', amount: '$156,780', status: 'processed' },
    { id: 2, period: 'Dec 1 - Dec 15, 2024', checkDate: 'Dec 22, 2024', amount: '$154,200', status: 'processed' },
    { id: 3, period: 'Jan 1 - Jan 15, 2025', checkDate: 'Jan 20, 2025', amount: '$158,940', status: 'pending' },
  ];
  return (<div className="container"><div className="header"><h1>💰 Payroll Dashboard</h1><p>Manage payroll runs and track payments</p></div>
  <div className="stats-grid"><div className="stat-card"><h3>This Month</h3><div className="value">$312k</div></div>
  <div className="stat-card"><h3>Last Payroll</h3><div className="value">$156k</div></div>
  <div className="stat-card"><h3>Next Deadline</h3><div className="value">Jan 20</div></div>
  <div className="stat-card"><h3>Employees Paid</h3><div className="value">124</div></div></div>
  <div className="payroll-list"><h2>Recent Payrolls</h2>
  {payrolls.map(p => (<div key={p.id} className="payroll-item"><div><div style={{ fontWeight: 600 }}>{p.period}</div>
  <div style={{ color: '#666', fontSize: 14 }}>Check Date: {p.checkDate}</div></div>
  <div style={{ textAlign: 'right' }}><div style={{ fontWeight: 600 }}>{p.amount}</div>
  <span className={\`status \${p.status}\`}>{p.status}</span></div></div>))}</div></div>);
}
ReactDOM.render(<PayrollDashboard />, document.getElementById('root'));
</script></body></html>`,
};
