/*
 * Plain-CSS counterparts to the Angular dashboard's own shared atoms
 * (web/src/app/shared/button.html, badge.html, alert.html) - same visual
 * language, sourced from the shared theme/tokens.css var(...)s so a
 * token change here picks up automatically, not a byte-for-byte copy of
 * Tailwind's utility classes - Django's templates aren't run through a
 * Tailwind build in Phase 1 (see docs/PLAN.md). If either side's look
 * changes structurally, treat it as a deliberate decision to update the
 * other, not silent drift.
 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius-md);
  /* Real bug: a plain <button> doesn't inherit font-family from the page
     the way an <a> does (browser UA stylesheets set their own default,
     usually a system UI font) - so the form submit buttons on
     contact.html/get_started.html rendered in the wrong font while every
     _button.html-rendered <a class="btn"> looked correct right next to
     them. Explicit here so both element types match. */
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.btn-primary {
  background: var(--color-brand-500);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-brand-600);
  text-decoration: none;
}

.btn-outline {
  background: #ffffff;
  border-color: var(--color-gray-300);
  color: var(--color-gray-700);
}

.btn-outline:hover {
  background: var(--color-gray-50);
  text-decoration: none;
}

.btn-danger {
  background: #ffffff;
  border-color: var(--color-error-300);
  color: var(--color-error-700);
}

.btn-danger:hover {
  background: var(--color-error-50);
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
}

.badge-gray {
  background: var(--color-gray-100);
  color: var(--color-gray-600);
}

.badge-brand {
  background: var(--color-brand-50);
  color: var(--color-brand-700);
}

.badge-success {
  background: var(--color-success-50);
  color: var(--color-success-700);
}

.badge-warning {
  background: var(--color-warning-50);
  color: var(--color-warning-700);
}

.badge-error {
  background: var(--color-error-50);
  color: var(--color-error-700);
}

.alert {
  border-radius: var(--radius-lg);
  border: 1px solid;
  padding: 12px 16px;
  font-size: 14px;
}

.alert-error {
  background: var(--color-error-25);
  border-color: var(--color-error-200);
  color: var(--color-error-700);
}

.alert-success {
  background: var(--color-success-25);
  border-color: var(--color-success-200);
  color: var(--color-success-700);
}

.alert-warning {
  background: var(--color-warning-25);
  border-color: var(--color-warning-200);
  color: var(--color-warning-700);
}

.alert-info {
  background: var(--color-brand-25);
  border-color: var(--color-brand-200);
  color: var(--color-brand-700);
}

.card {
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-theme-xs);
  padding: 24px;
}
