/* ============================================================================
   tokens.css — Design tokens compartilhados entre shell e módulos
   ============================================================================ */

:root {
  /* Paleta do web.camaleaocamisas.com.br (Bootstrap 5.3 customizado):
     primária azul #0088f0 (botões, links, ícones do menu); laranja #f04800
     é a cor da marca (logo, destaque "camaleao"). Valores tirados do CSS no ar. */
  --primary: #0088f0;
  --primary-hover: #0074cc;
  --primary-light: #3da5f4;
  --primary-bg: #e5f3fe;
  --camaleao: #f04800;
  --web-dark: #343a40;
  --web-dark-hover: #2d3238;
  --web-dark-active: #292d32;

  /* Cinzas */
  --gray-50: #FAFAFA;
  --gray-100: #F4F4F5;
  --gray-200: #E4E4E7;
  --gray-300: #D4D4D8;
  --gray-400: #A1A1AA;
  --gray-500: #71717A;
  --gray-600: #52525B;
  --gray-700: #3F3F46;
  --gray-800: #27272A;
  --gray-900: #18181B;

  /* Feedback */
  --success: #22C55E;
  --success-bg: #DCFCE7;
  --danger: #EF4444;
  --danger-bg: #FEE2E2;
  --warning: #F59E0B;
  --warning-bg: #FEF3C7;
  --info: #3B82F6;
  --info-bg: #DBEAFE;

  /* Backgrounds (tema light) */
  --bg-primary: #FFFFFF;
  --bg-secondary: #f8f9fa; /* $light do Bootstrap = fundo do web */
  --bg-tertiary: #e9ecef;
  --bg-hover: #e9ecef;
  --bg-active: #dee2e6;

  /* Texto (tema light) */
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-tertiary: #6c757d;
  --text-inverse: #FFFFFF;

  /* Bordas */
  --border-color: #dee2e6;
  --border-focus: var(--primary);

  /* Tipografia */
  --font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-size-xs: 11px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-md: 15px;
  --font-size-lg: 17px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;

  /* Raios */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;

  /* Layout do shell (igual ao web: headerbar 50px, sidebar 280px) */
  --header-height: 50px;
  --sidebar-width: 280px;
  --sidebar-collapsed: 64px;
  --z-header: 100;
  --z-sidebar: 90;
  --z-modal: 1000;
  --z-toast: 2000;
}

/* Tema dark */
[data-theme="dark"] {
  --bg-primary: #18181B;
  --bg-secondary: #27272A;
  --bg-tertiary: #3F3F46;
  --bg-hover: #27272A;
  --bg-active: #3F3F46;

  --text-primary: #FAFAFA;
  --text-secondary: #D4D4D8;
  --text-tertiary: #A1A1AA;

  --border-color: #3F3F46;

  --primary: #FF8533;
  --primary-hover: #FF6B00;
}

/* Fonte Inter (cópia local, mesma família do web) */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/libs/inter/inter-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/libs/inter/inter-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/libs/inter/inter-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/libs/inter/inter-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/libs/inter/inter-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/libs/inter/inter-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* Reset básico (antes vivia no CSS do módulo camisas e vazava para o app
   inteiro só depois que a pessoa abria o Camisas — agora vale sempre) */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
img { max-width: 100%; display: block; }
h1 { font-size: 1.875rem; font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.125rem; font-weight: 500; line-height: 1.4; }

/* rem = 16px, igual ao Bootstrap do web (antes 14px até o CSS do Camisas carregar) */
html { font-size: 16px; -moz-osx-font-smoothing: grayscale; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
}
body { font-size: var(--font-size-base); min-height: 100vh; }

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

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