/* CashPath — custom styles (Tailwind CDN handles utilities) */
:root {
  --primary: #2E7D32;
  --primary-hover: #1B5E20;
  --gold: #FFB300;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
}

html, body { background: var(--bg); color: var(--text); }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Brand color overrides on Tailwind green palette */
.bg-brand { background-color: var(--primary); }
.bg-brand:hover { background-color: var(--primary-hover); }
.text-brand { color: var(--primary); }
.border-brand { border-color: var(--primary); }
.ring-brand:focus { box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.3); }

/* Invoice status badges */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.badge-draft   { background: #E5E7EB; color: #374151; }
.badge-sent    { background: #DBEAFE; color: #1E40AF; }
.badge-paid    { background: #D1FAE5; color: #065F46; }
.badge-overdue { background: #FEE2E2; color: #991B1B; }

/* Spinner */
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast */
.toast {
  position: fixed;
  bottom: 20px; right: 20px;
  padding: 12px 20px;
  background: #111827;
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  z-index: 1000;
  animation: slideIn 0.2s ease-out;
}
.toast.error { background: #991B1B; }
.toast.success { background: #065F46; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
