/* ==================================================================
   STYLES — light "back office" theme, deliberately distinct from the
   dark public-facing demos (auto-estimator, woodwork-configurator):
   this tool represents the private admin panel, not the customer-facing
   site. Layout is Tailwind utilities in index.html; this file is small,
   reusable chrome plus the tab/list-editor components app.js renders into.
   ================================================================== */

html { scroll-behavior: smooth; }
.font-display { font-family: 'Rajdhani', sans-serif; }

.demo-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.2);
  color: #4f46e5;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}
.demo-badge .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* ---- Tabs ---- */
.tab-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.15s ease;
}
.tab-btn:hover { color: #0f172a; }
.tab-btn.active { background: #4f46e5; color: #fff; }
.tab-btn .role-note { display: none; }

/* ---- Form fields inside tab panels ---- */
.field-label {
  display: block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #64748b; margin-bottom: 0.35rem;
}
.field-input, .field-textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
}
.field-input:focus, .field-textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.field-textarea { resize: vertical; min-height: 4.5rem; }

.list-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 1rem;
  margin-bottom: 0.85rem;
  background: #f8fafc;
}
.remove-btn {
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  transition: color 0.15s ease;
}
.remove-btn:hover { color: #e11d48; }
.add-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; font-weight: 600; color: #4f46e5;
  border: 1px dashed #c7d2fe;
  border-radius: 0.5rem;
  padding: 0.5rem 0.85rem;
  width: 100%;
  justify-content: center;
  transition: all 0.15s ease;
}
.add-btn:hover { background: rgba(79, 70, 229, 0.06); }

.role-pill {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.role-pill.admin { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.role-pill.staff { background: rgba(14, 165, 233, 0.1); color: #0284c7; }

/* ---- Preview pane ---- */
.preview-alert {
  background: #fef3c7; border: 1px solid #fde68a; color: #92400e;
  border-radius: 0.5rem; padding: 0.6rem 0.85rem; font-size: 0.82rem;
  margin-bottom: 1rem;
}
.preview-team-avatar {
  width: 2.75rem; height: 2.75rem; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
