/* ============================================================
   app.css — Fundraising app-specific additions
   Supplements theme.css; never overrides its tokens or classes.
   ============================================================ */

/* One extra badge color, staying inside the established palette
   (navy-light tint) since theme.css ships 5 badge colors and we
   need a 6th distinct one for the "Follow Up" status. */
.badge-info { background: var(--navy-xlt); color: var(--navy-light); }

/* ── AUTH SCREEN ─────────────────────────────────────────── */
.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  padding: 2rem 1.8rem;
}
.auth-brand {
  text-align: center;
  margin-bottom: 1.6rem;
}
.auth-brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
}
.auth-brand-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: .3rem;
}
.auth-field { margin-bottom: 1rem; }
.auth-error {
  background: var(--red-bg);
  color: var(--red);
  font-size: .82rem;
  padding: .6rem .8rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  display: none;
}
.auth-error.show { display: block; }

/* ── EMPTY STATE ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--ink-3);
}
.empty-state-icon { font-size: 2rem; margin-bottom: .6rem; color: var(--ink-4); }
.empty-state-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: .4rem;
}

/* ── CHILDREN REPEATER ───────────────────────────────────── */
.child-row {
  display: flex;
  gap: .5rem;
  margin-bottom: .5rem;
}
.child-row input { flex: 1; }
.child-remove-btn {
  background: var(--red-bg);
  color: var(--red);
  border: none;
  border-radius: var(--radius-md);
  width: 34px;
  flex-shrink: 0;
  cursor: pointer;
  font-size: .9rem;
}
.child-remove-btn:hover { background: var(--red); color: #fff; }

/* ── FORM GRID ───────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-section-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 1.2rem 0 .5rem;
  padding-top: .8rem;
  border-top: 1px solid var(--border);
}
.form-grid .form-section-label:first-child { margin-top: 0; padding-top: 0; border-top: none; }

/* ── TABLE ROW ACTIONS ───────────────────────────────────── */
.row-actions { display: flex; gap: .35rem; justify-content: flex-end; }
.row-action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-3);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.row-action-btn:hover { background: var(--bg-alt); color: var(--ink); }
.row-action-btn.danger:hover { background: var(--red-bg); color: var(--red); }

/* ── STATUS FILTER PILLS ─────────────────────────────────── */
.status-filter-pills {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.status-pill {
  font-family: 'DM Sans', sans-serif;
  font-size: .78rem;
  padding: .35rem .75rem;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  white-space: nowrap;
}
.status-pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ── LOADING SPINNER ─────────────────────────────────────── */
.spinner {
  width: 22px; height: 22px;
  border: 2.5px solid var(--border-mid);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
