body {
  background: #f8fafc;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  margin: 0;
  min-height: 100vh;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  padding: 2rem 1.5rem;
  background: #0f172a;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar__brand h1 {
  margin: 0;
  font-size: 1.9rem;
}

.sidebar__link {
  color: #e2e8f0;
  text-decoration: none;
  padding: 0.4rem 0;
  display: block;
  font-weight: 500;
}

.sidebar__link.active {
  color: #38bdf8;
}

.sidebar__footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.8);
}

.content {
  flex: 1;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.content__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin: 0;
  opacity: 0.8;
  font-size: 0.75rem;
}

.status-pill {
  background: rgba(15, 93, 176, 0.12);
  border: 1px solid rgba(15, 93, 176, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.muted {
  color: #6c7a93;
  margin: 0;
  font-size: 0.9rem;
}

.form-stack {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
}

.form-stack label {
  font-size: 0.85rem;
  color: #344054;
}

.form-stack input {
  border: 1px solid #d0d5dd;
  border-radius: 0.65rem;
  padding: 0.65rem 0.8rem;
  font-size: 1rem;
}

.form-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: 0.75rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.3rem;
  background: #0f5db0;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 93, 176, 0.35);
}

.btn--ghost {
  background: transparent;
  border: 1px solid #0f5db0;
  color: #0f5db0;
}

.btn--secondary {
  background: #e5e7eb;
  color: #0f172a;
  border: 1px solid transparent;
}

.btn--scan {
  margin-bottom: 0.5rem;
}

.form-meta {
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #344054;
}

.checkbox input {
  margin-right: 0.35rem;
}

.search-result {
  background: #0d1117;
  color: #d6deeb;
  padding: 1rem;
  border-radius: 0.75rem;
  min-height: 180px;
  font-size: 0.85rem;
  margin-top: 1rem;
  overflow-x: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: #0f172a;
  color: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(2, 6, 23, 0.25);
}

.table-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

th, td {
  padding: 0.7rem 0.55rem;
  text-align: left;
  border-bottom: 1px solid #f1f3f7;
}

th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6c7a93;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.status--new {
  background: rgba(15, 93, 176, 0.08);
  color: #0f5db0;
}

.status--scanned {
  background: rgba(16, 185, 129, 0.15);
  color: #0ea45d;
}

.status--contacted,
.status--replied,
.status--won {
  background: rgba(234, 88, 12, 0.1);
  color: #ea580c;
}

.status--excluded,
.status--ignored {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

.alert {
  border-radius: 0.85rem;
  padding: 0.9rem 1.2rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: #0f172a;
}

.alert--danger {
  background: #fee2e2;
  border: 1px solid #fecaca;
}

.scan-output {
  background: #f8fafc;
  border-radius: 0.45rem;
  padding: 0.35rem 0.5rem;
  max-height: 120px;
  overflow: hidden;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  border: 1px solid #d0d5dd;
}
