/* akilli.bot — shadcn default tokens with --primary override (iznik teal) */
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);

  /* Iznik teal — #0F5A6B */
  --primary: oklch(0.443 0.055 214.5);
  --primary-foreground: oklch(0.985 0 0);

  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);
  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.443 0.055 214.5);
  --radius: 0.625rem;
}
.dark,
[data-theme='dark'] {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.18 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.18 0 0);
  --popover-foreground: oklch(0.985 0 0);

  /* Iznik teal dark — #4AB0C1 */
  --primary: oklch(0.726 0.088 214.5);
  --primary-foreground: oklch(0.985 0 0);

  --secondary: oklch(0.235 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.235 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.235 0 0);
  --accent-foreground: oklch(0.985 0 0);
  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.985 0 0);
  --border: oklch(0.275 0 0);
  --input: oklch(0.275 0 0);
  --ring: oklch(0.726 0.088 214.5);
}

/* Base typography — system font stack per design spec §1 */
.ab-surface {
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    'Noto Sans',
    sans-serif;
  background: var(--background);
  color: var(--foreground);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ab-surface *,
.ab-surface *::before,
.ab-surface *::after {
  box-sizing: border-box;
}
.ab-surface button {
  font: inherit;
  cursor: pointer;
}
.ab-surface input,
.ab-surface textarea,
.ab-surface select {
  font: inherit;
}

/* Primitives */
.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: calc(var(--radius) - 2px);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  transition:
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
  white-space: nowrap;
  user-select: none;
}
.ab-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.ab-btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.ab-btn-primary:hover {
  background: color-mix(in oklab, var(--primary) 92%, black);
}
.ab-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ab-btn-outline {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.ab-btn-outline:hover {
  background: var(--accent);
}
.ab-btn-ghost {
  background: transparent;
  color: var(--foreground);
}
.ab-btn-ghost:hover {
  background: var(--accent);
}
.ab-btn-link {
  background: transparent;
  color: var(--primary);
  height: auto;
  padding: 0;
}
.ab-btn-link:hover {
  text-decoration: underline;
}
.ab-btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}
.ab-btn-lg {
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}

.ab-input {
  display: block;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: var(--background);
  color: var(--foreground);
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  font-size: 14px;
  transition:
    border-color 120ms,
    box-shadow 120ms;
}
.ab-input:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--ring) 25%, transparent);
}
.ab-input::placeholder {
  color: var(--muted-foreground);
}

.ab-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--foreground);
  margin-bottom: 6px;
}
.ab-hint {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 6px;
}

.ab-card {
  background: var(--card);
  color: var(--card-foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ab-divider {
  height: 1px;
  background: var(--border);
}

.ab-link {
  color: var(--primary);
  text-decoration: none;
}
.ab-link:hover {
  text-decoration: underline;
}

/* Checkbox */
.ab-check {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--background);
  transition:
    background 120ms,
    border-color 120ms;
  cursor: pointer;
}
.ab-check[data-checked='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-foreground);
}

/* akilli.bot mark */
.ab-mark {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.02em;
}
.ab-mark-lg {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 18px;
}

/* Wordmark */
.ab-wordmark {
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--foreground);
}
