/* Component utility classes (mirrors the Tailwind classes used throughout) */

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #111827;
  background-color: #f9fafb;
  margin: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #2563eb; color: #fff;
  font-size: 0.875rem; font-weight: 500;
  border-radius: 0.5rem; border: none;
  cursor: pointer; text-decoration: none;
  transition: background-color 0.15s;
  white-space: nowrap; line-height: 1.5;
}
.btn-primary:hover  { background-color: #1d4ed8; }
.btn-primary:active { background-color: #1e40af; }
.btn-primary:disabled, .btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #fff; color: #374151;
  font-size: 0.875rem; font-weight: 500;
  border-radius: 0.5rem; border: 1px solid #d1d5db;
  cursor: pointer; text-decoration: none;
  transition: background-color 0.15s;
  white-space: nowrap; line-height: 1.5;
}
.btn-secondary:hover  { background-color: #f9fafb; }
.btn-secondary:disabled, .btn-secondary[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: none; color: #4b5563;
  font-size: 0.875rem; font-weight: 500;
  border-radius: 0.5rem; border: none;
  cursor: pointer; text-decoration: none;
  transition: background-color 0.15s;
  line-height: 1.5;
}
.btn-ghost:hover { background-color: #f3f4f6; }

/* ── Card ────────────────────────────────────────────────────────────────── */

.card {
  background-color: #fff;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

/* ── Form controls ───────────────────────────────────────────────────────── */

.input {
  display: block; width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem; font-family: inherit;
  color: #111827; background-color: #fff;
  border: 1px solid #d1d5db; border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgb(59 130 246 / 0.15);
}
.input::placeholder { color: #9ca3af; }

.label {
  display: block;
  font-size: 0.875rem; font-weight: 500;
  color: #374151; margin-bottom: 0.25rem;
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */

@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  display: inline-block;
  width: 1rem; height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  flex-shrink: 0;
}
