/* ============================================================
   AX-UI — Shared "Apex" Design Layer
   ------------------------------------------------------------
   A small, opt-in set of reusable component classes built
   entirely on the existing design tokens defined in main.css
   (:root variables: --primary, --primary-light, --bg-light,
   --bg-white, --text-dark, --text-medium, --text-muted,
   --border, --border-light, --success/--warning/--error,
   and the --green-* scale).

   Goal: a calm, spacious, editorial aesthetic that can be
   adopted screen-by-screen. Every class is prefixed `ax-`
   so it is strictly opt-in and never leaks into existing
   platform markup. Keep the platform font
   ('Plus Jakarta Sans') — do NOT import a new one.

   First adopter: the Knowledge Base admin screen.
   ============================================================ */

/* ---- Surfaces ---- */
.ax-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(15, 31, 26, 0.04);
}

/* ---- Section headings ---- */
.ax-section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}

.ax-section-sub {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 4px 0 0 0;
}

/* ---- Dropzone ---- */
.ax-dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  background: var(--bg-light);
  padding: 40px 24px;
  text-align: center;
  transition: border-color 0.18s ease, background 0.18s ease;
  cursor: pointer;
}

.ax-dropzone:hover,
.ax-dropzone.drag-over {
  border-color: var(--primary-light);
  background: var(--green-50);
}

/* ---- List rows ---- */
.ax-list-row {
  transition: background 0.15s ease;
}

.ax-list-row:hover {
  background: var(--bg-light);
}

/* ---- Pills / badges ---- */
.ax-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.ax-pill-green {
  background: var(--green-100);
  color: var(--green-800);
}

.ax-pill-neutral {
  background: var(--border-light);
  color: var(--text-medium);
}

/* ---- Buttons ---- */
.ax-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.ax-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ax-btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.ax-btn-primary:hover:not(:disabled) {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.ax-btn-secondary {
  background: var(--bg-white);
  color: var(--text-dark);
  border-color: var(--border);
}

.ax-btn-secondary:hover:not(:disabled) {
  background: var(--bg-light);
  border-color: var(--text-light);
}
