/* MODULE: Frontend | FILE: globals.css */

@tailwind base;
@tailwind components;
@tailwind utilities;

/* ── Global reset & defaults ── */

body {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  background: var(--color-primary-dark, #0f172a);
  color: var(--color-text, #f1f5f9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Error boundary ── */

.error-boundary {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
}

.error-boundary__card {
  background: var(--color-surface, #1e293b);
  border: 1px solid var(--color-border, #334155);
  border-radius: var(--radius-lg, 12px);
  padding: 2.5rem;
  max-width: 480px;
  text-align: center;
}

.error-boundary__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-danger, #f87171);
  margin: 0 0 0.75rem;
}

.error-boundary__message {
  font-size: 0.875rem;
  color: var(--color-text-muted, #94a3b8);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

.error-boundary__btn {
  background: var(--color-accent, #635BFF);
  color: #fff;
  border: none;
  border-radius: var(--radius-md, 8px);
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast, 0.15s ease);
}

.error-boundary__btn:hover {
  background: var(--color-accent-hover, #4f46e5);
}
