body {
  background: linear-gradient(135deg, #f9f4ff 0%, #fff4f9 50%, #fff9f4 100%);
  min-height: 100vh;
}

.card {
  border: none;
  border-radius: 12px;
}

.card-body {
  padding: 16px 18px;
}

.nav-tabs .nav-link {
  color: #888;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-tabs .nav-link.active {
  color: #9b59b6;
  border-bottom: 2px solid #9b59b6;
  background: transparent;
}

.nav-tabs {
  border-bottom: 1px solid #eee;
}

.badge {
  border-radius: 6px;
  padding: 3px 7px;
  font-weight: 600;
}

/* ── Auth tab toggle ─────────────────────────────────────────────────────────── */
.auth-tabs-row {
  display: flex;
  gap: 4px;
  margin-bottom: 28px;
  background: #f5f5f7;
  border-radius: 10px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #888;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: Inter, -apple-system, sans-serif;
  transition: background 0.15s, color 0.15s;
}

.auth-tab-active {
  background: #ffffff;
  color: #9b59b6;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* ── Auth submit button ──────────────────────────────────────────────────────── */
.auth-submit-btn {
  width: 100%;
  padding: 13px;
  background: #9b59b6;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: Inter, -apple-system, sans-serif;
  letter-spacing: 0.01em;
  margin-top: 4px;
}

.auth-submit-btn:hover {
  background: #8e44ad;
}

/* ── Auth error message ──────────────────────────────────────────────────────── */
.auth-error {
  min-height: 20px;
  margin-bottom: 12px;
  font-size: 0.83rem;
  color: #c62828;
  text-align: left;
}

/* ── Login / Signup form inputs ──────────────────────────────────────────────── */
#login-email,
#login-password,
#signup-name,
#signup-email,
#signup-password,
#signup-jobtitle {
  -webkit-appearance: none;
  appearance: none;
  color: #222 !important;
  background-color: #ffffff !important;
  font-size: 0.95rem !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  padding: 11px 14px !important;
  border: 1.5px solid #ddd !important;
  border-radius: 10px !important;
  width: 100% !important;
  display: block !important;
  box-sizing: border-box !important;
  outline: none !important;
  box-shadow: none !important;
}

#login-email:focus,
#login-password:focus,
#signup-name:focus,
#signup-email:focus,
#signup-password:focus,
#signup-jobtitle:focus {
  border-color: #9b59b6 !important;
  box-shadow: 0 0 0 3px rgba(155, 89, 182, 0.12) !important;
}

#login-email::placeholder,
#login-password::placeholder,
#signup-name::placeholder,
#signup-email::placeholder,
#signup-password::placeholder,
#signup-jobtitle::placeholder {
  color: #aaa !important;
  opacity: 1 !important;
  font-size: 0.9rem !important;
}

/* ── Keep graphs crisp and contained ────────────────────────────────────────── */
.js-plotly-plot .plotly {
  border-radius: 8px;
}

/* Prevent Plotly responsive resize loop */
.js-plotly-plot,
.plot-container {
  overflow: hidden !important;
}

.card-body > div[id] {
  overflow: hidden;
}
