/* MentorplAI Design System */

:root {
  --accent:     #3b82f6;
  --accent-dk:  #2563eb;
  --accent-bg:  #eff6ff;
  --bg:         #f6f7f9;
  --surface:    #ffffff;
  --border:     #dde1e7;
  --text:       #1a2233;
  --text-muted: #6b7280;

  /* backward-compat aliases used in older inline styles */
  --blue:       #3b82f6;
  --blue-dk:    #2563eb;
  --blue-bg:    #eff6ff;
  --blue-light: #eff6ff;
}

/* ── Primary button ──────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  border: none;
  box-shadow: none;
  transition: background 0.15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--accent-dk);
}
.btn-primary:disabled,
.btn-primary[disabled] {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* ── Ghost button (neutral outline) ─────────────────────────────────────── */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  color: #374151;
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 9999px;
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: var(--bg);
  border-color: #bcc4ce;
}
.btn-ghost:disabled,
.btn-ghost[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Danger button (destructive confirm) ─────────────────────────────────── */
.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #dc2626;
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 9999px;
  border: none;
  box-shadow: none;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-danger:hover {
  background: #b91c1c;
}
.btn-danger:disabled,
.btn-danger[disabled] {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* ── Secondary button ────────────────────────────────────────────────────── */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  color: var(--accent);
  font-weight: 600;
  padding: 9px 22px;
  border-radius: 9999px;
  border: 1.5px solid var(--accent);
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: var(--accent-bg);
}

/* ── Input field ─────────────────────────────────────────────────────────── */
.input-field {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s;
  background: #fff;
  color: var(--text);
}
.input-field:focus {
  border-color: var(--accent);
}

/* ── Spinner ─────────────────────────────────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner-sm {
  border: 2px solid #e5e7eb;
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  animation: spin 0.75s linear infinite;
  display: inline-block;
}

/* ── Fade-up entry animation ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.fade-up {
  animation: fadeUp 0.4s ease forwards;
}
