/* ── FormFilter Design System ─────────────────────────────────────────── */

:root {
  --ff-primary:    #4f46e5;
  --ff-primary-d:  #3730a3;
  --ff-success:    #10b981;
  --ff-danger:     #ef4444;
  --ff-bg:         #f8fafc;
  --ff-card-bg:    #ffffff;
  --ff-border:     #e2e8f0;
  --ff-text:       #1e293b;
  --ff-muted:      #64748b;
}

body {
  background: var(--ff-bg);
  color: var(--ff-text);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Navbar ──────────────────────────────────────────────────────────── */
.ff-navbar {
  background: #fff;
  border-bottom: 1px solid var(--ff-border);
  padding: .75rem 0;
}

.ff-navbar .navbar-brand {
  color: var(--ff-primary);
  font-size: 1.25rem;
  letter-spacing: -.5px;
}

.ff-logo-icon {
  color: var(--ff-primary);
}

.ff-navbar .nav-link {
  color: var(--ff-muted);
  font-size: .9rem;
  padding: .4rem .75rem;
  border-radius: 6px;
  transition: color .15s, background .15s;
}

.ff-navbar .nav-link:hover,
.ff-navbar .nav-link.active {
  color: var(--ff-primary);
  background: #eef2ff;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.ff-btn-primary {
  background: var(--ff-primary);
  color: #fff !important;
  border-radius: 8px;
  padding: .45rem 1.2rem;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  transition: background .15s, transform .1s;
  display: inline-block;
}
.ff-btn-primary:hover { background: var(--ff-primary-d); transform: translateY(-1px); }

.btn-primary  { background: var(--ff-primary); border-color: var(--ff-primary); }
.btn-primary:hover { background: var(--ff-primary-d); border-color: var(--ff-primary-d); }

/* ── Cards ───────────────────────────────────────────────────────────── */
.ff-card {
  background: var(--ff-card-bg);
  border: 1px solid var(--ff-border);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  transition: box-shadow .2s;
}
.ff-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.08); }

/* ── Stat tiles ──────────────────────────────────────────────────────── */
.ff-stat {
  background: var(--ff-card-bg);
  border: 1px solid var(--ff-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.ff-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ff-primary);
  line-height: 1;
}
.ff-stat-label {
  font-size: .78rem;
  color: var(--ff-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: .3rem;
}

/* ── Page headings ───────────────────────────────────────────────────── */
.ff-page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ff-border);
}
.ff-page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

/* ── Forms ───────────────────────────────────────────────────────────── */
.form-control:focus, .form-select:focus {
  border-color: var(--ff-primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* ── Badges ──────────────────────────────────────────────────────────── */
.ff-badge-pro {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-size: .65rem;
  padding: .2em .5em;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.badge-spam  { background: #fee2e2; color: #dc2626; }
.badge-clean { background: #dcfce7; color: #15803d; }
.badge-unread { background: #ede9fe; color: #7c3aed; }

/* ── Endpoint badge ──────────────────────────────────────────────────── */
.ff-endpoint {
  font-family: 'Courier New', monospace;
  background: #f1f5f9;
  border: 1px solid var(--ff-border);
  border-radius: 6px;
  padding: .3rem .7rem;
  font-size: .8rem;
  word-break: break-all;
}

/* ── Tables ──────────────────────────────────────────────────────────── */
.ff-table { border-radius: 10px; overflow: hidden; border: 1px solid var(--ff-border); }
.ff-table thead th { background: #f1f5f9; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ff-muted); border-bottom: none; }
.ff-table tbody tr:hover { background: #fafafa; }

/* ── Auth card ───────────────────────────────────────────────────────── */
.ff-auth-card {
  max-width: 420px;
  margin: 4rem auto;
  background: #fff;
  border: 1px solid var(--ff-border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.07);
}

/* ── Landing page ────────────────────────────────────────────────────── */
.ff-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  padding: 6rem 0 4rem;
  text-align: center;
}
.ff-hero h1 { font-size: 3rem; font-weight: 800; }
.ff-hero p  { font-size: 1.2rem; opacity: .9; }

.ff-pricing-card {
  border: 2px solid var(--ff-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  background: #fff;
}
.ff-pricing-card.featured {
  border-color: var(--ff-primary);
  box-shadow: 0 8px 30px rgba(79,70,229,.15);
}
.ff-price { font-size: 3rem; font-weight: 800; color: var(--ff-primary); }

/* ── Copy button ─────────────────────────────────────────────────────── */
.copy-btn { cursor: pointer; }
.copy-btn:active { opacity: .7; }

/* ── Submission detail ───────────────────────────────────────────────── */
.ff-field-row { padding: .6rem 0; border-bottom: 1px solid var(--ff-border); }
.ff-field-row:last-child { border-bottom: none; }
.ff-field-key { font-weight: 600; color: var(--ff-muted); font-size: .85rem; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.ff-footer {
  background: #fff;
  border-top: 1px solid var(--ff-border);
  margin-top: auto;
}

/* ── Utilities ───────────────────────────────────────────────────────── */
.text-primary { color: var(--ff-primary) !important; }
.bg-primary   { background: var(--ff-primary) !important; }
