/* ============================================================
   style.css — Tokens, reset e tipografia globais
   Carregado em TODAS as páginas.
   ============================================================ */

/* Google Fonts — IBM Plex Sans */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ────────────────────────────────────────────────────────────
   Tokens CSS
   ──────────────────────────────────────────────────────────── */
:root {
  /* Cores */
  --color-text:         #3c3c3c;
  --color-text-muted:   #757575;
  --color-bg:           #FFFFFF;
  --color-bg-subtle:    #F7F8FA;
  --color-bg-app:       #F0F2F5;
  --color-accent:       #941b81;
  --color-accent-hover: #7a1669;
  --color-accent-light: #f3e5f1;
  --color-border:       #E4E6EA;

  /* Cores de feedback */
  --color-success:      #2e7d32;
  --color-success-bg:   #e8f5e9;
  --color-error:        #c62828;
  --color-error-bg:     #ffebee;
  --color-warning:      #e65100;
  --color-warning-bg:   #fff3e0;
  --color-info:         #1565c0;
  --color-info-bg:      #e3f2fd;

  /* Tipografia */
  --font-family:     'IBM Plex Sans', sans-serif;
  --font-size-base:  14px;
  --font-size-sm:    12px;
  --font-size-lg:    18px;
  --font-size-xl:    24px;
  --font-weight-regular:  400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --line-height-base: 1.5;

  /* Espaçamentos */
  --spacing-xs:  4px;
  --spacing-sm:  8px;
  --spacing-md:  16px;
  --spacing-lg:  24px;
  --spacing-xl:  32px;
  --spacing-2xl: 48px;

  /* Bordas */
  --radius-sm:      4px;
  --radius-default: 8px;
  --radius-lg:      16px;

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.16);

  /* Transições */
  --transition-fast:   150ms ease;
  --transition-normal: 250ms ease;

  /* Layout */
  --sidebar-width: 240px;
  --header-height: 56px;
}

/* ────────────────────────────────────────────────────────────
   Reset
   ──────────────────────────────────────────────────────────── */
[hidden] { display: none !important; }

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

html {
  font-size: var(--font-size-base);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ────────────────────────────────────────────────────────────
   Tipografia
   ──────────────────────────────────────────────────────────── */
h1 { font-size: var(--font-size-xl);  font-weight: var(--font-weight-semibold); line-height: 1.2; }
h2 { font-size: var(--font-size-lg);  font-weight: var(--font-weight-semibold); line-height: 1.3; }
h3 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }
h4 { font-size: var(--font-size-base); font-weight: var(--font-weight-medium); }

p { margin-bottom: var(--spacing-sm); }
p:last-child { margin-bottom: 0; }

small { font-size: var(--font-size-sm); }

/* ────────────────────────────────────────────────────────────
   Utilitários
   ──────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-sm    { font-size: var(--font-size-sm); }
.text-muted { color: #757575; }
.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }

.mt-sm  { margin-top: var(--spacing-sm); }
.mt-md  { margin-top: var(--spacing-md); }
.mt-lg  { margin-top: var(--spacing-lg); }
.mb-sm  { margin-bottom: var(--spacing-sm); }
.mb-md  { margin-bottom: var(--spacing-md); }
.mb-lg  { margin-bottom: var(--spacing-lg); }
