/* ============================================
   Design System Tokens - Clube Médico Variant3
   Paleta Bege/Marrom
   ============================================ */

:root {
   /* ============================================
     CORES PRIMÁRIAS (Brown Primary - #5A4636)
     ============================================ */
   --primary-50: #f5f3f0;
   --primary-100: #e8e0d8;
   --primary-200: #d4c5b5;
   --primary-300: #b8a89a;
   --primary-400: #8a7565;
   --primary-500: #5a4636;
   --primary-600: #4a3a2d;
   --primary-700: #3d2f24;
   --primary-800: #2f241c;
   --primary-900: #1f1813;

   /* ============================================
     CORES SECUNDÁRIAS (Brown Secondary - #8A7565)
     ============================================ */
   --secondary-50: #f5f3f1;
   --secondary-100: #e8e3de;
   --secondary-200: #d4cbc2;
   --secondary-300: #b8a89a;
   --secondary-400: #a08f7f;
   --secondary-500: #8a7565;
   --secondary-600: #72604f;
   --secondary-700: #5d4e41;
   --secondary-800: #4a3e33;
   --secondary-900: #322a22;

   /* ============================================
     CORES NEUTRAS (Bege/Areia/Nude)
     ============================================ */
   --neutral-50: #faf8f5;
   --neutral-75: #f2ede7;
   --neutral-100: #f5f1eb;
   --neutral-200: #ede6dc;
   --neutral-300: #e2d3c6;
   --neutral-400: #d4c2b0;
   --neutral-500: #b8a89a;
   --neutral-600: #9d8a7a;
   --neutral-700: #7a6a5d;
   --neutral-800: #5a4a3f;
   --neutral-900: #3d3229;

   /* ============================================
     CORES SEMÂNTICAS (Adaptadas para Bege/Marrom)
     ============================================ */
   /* Success - Verde suave terroso */
   --success-50: #f0f5f0;
   --success-100: #d9e6d9;
   --success-200: #b8d0b8;
   --success-300: #8fb08f;
   --success-400: #6b8f6b;
   --success-500: #4a6b4a;
   --success-600: #3d5a3d;
   --success-700: #324a32;
   --success-800: #283d28;
   --success-900: #1d2a1d;

   /* Error - Vermelho terroso suave */
   --error-50: #f5f0f0;
   --error-100: #e8d9d9;
   --error-200: #d4b8b8;
   --error-300: #b88f8f;
   --error-400: #a06b6b;
   --error-500: #8a4a4a;
   --error-600: #723d3d;
   --error-700: #5d3232;
   --error-800: #4a2828;
   --error-900: #321d1d;

   /* Warning - Dourado/Âmbar suave */
   --warning-50: #faf8f5;
   --warning-100: #f5ede6;
   --warning-200: #ede0d4;
   --warning-300: #e2cbb8;
   --warning-400: #d4b08a;
   --warning-500: #c49a6b;
   --warning-600: #a67d4a;
   --warning-700: #8a653d;
   --warning-800: #6d4f32;
   --warning-900: #4a3522;

   /* Info - Azul acinzentado suave */
   --info-50: #f0f3f5;
   --info-100: #d9e3e8;
   --info-200: #b8cbd4;
   --info-300: #8fa8b8;
   --info-400: #6b8a9f;
   --info-500: #4a6b7a;
   --info-600: #3d5a6b;
   --info-700: #324a5d;
   --info-800: #283d4a;
   --info-900: #1d2a32;

   /* ============================================
     CORES DE APLICAÇÃO
     ============================================ */
   --background: #faf8f5;
   /* Off White */
   --background-alt: #ede6dc;
   /* Areia - para blocos alternados */
   --foreground: #5a4636;
   /* Brown Primary - nunca preto puro */
   --foreground-muted: #8a7565;
   /* Brown Secondary */
   --foreground-subtle: #b8a89a;
   /* Brown Light */

   --card-background: #faf8f5;
   /* Off White */
   --card-foreground: #5a4636;
   /* Brown Primary */
   --card-border: #e2d3c6;
   /* Nude */

   --border: #b8a89a;
   /* Brown Light */
   --border-muted: #e2d3c6;
   /* Nude */
   --input-border: #d4c2b0;
   --input-focus: var(--primary-500);
   --ring: var(--primary-500);

   /* ============================================
     TIPOGRAFIA
     ============================================ */
   --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
   --font-family-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
   --font-mono: 'Fira Code', 'Courier New', monospace;

   /* Tamanhos de Fonte */
   --font-size-xs: 0.75rem;
   /* 12px */
   --font-size-sm: 0.875rem;
   /* 14px */
   --font-size-base: 1rem;
   /* 16px */
   --font-size-lg: 1.125rem;
   /* 18px */
   --font-size-xl: 1.25rem;
   /* 20px */
   --font-size-2xl: 1.5rem;
   /* 24px */
   --font-size-3xl: 1.875rem;
   /* 30px */
   --font-size-4xl: 2.25rem;
   /* 36px */
   --font-size-5xl: 3rem;
   /* 48px */
   --font-size-6xl: 3.75rem;
   /* 60px */

   /* Pesos de Fonte */
   --font-weight-light: 300;
   --font-weight-normal: 400;
   --font-weight-medium: 500;
   --font-weight-semibold: 600;
   --font-weight-bold: 700;
   --font-weight-extrabold: 800;

   /* Line Heights */
   --line-height-tight: 1.25;
   --line-height-snug: 1.375;
   --line-height-normal: 1.5;
   --line-height-relaxed: 1.625;
   --line-height-loose: 2;

   /* Letter Spacing */
   --letter-spacing-tighter: -0.05em;
   --letter-spacing-tight: -0.025em;
   --letter-spacing-normal: 0;
   --letter-spacing-wide: 0.025em;
   --letter-spacing-wider: 0.05em;
   --letter-spacing-widest: 0.1em;

   /* ============================================
     ESPAÇAMENTO (Spacing Scale)
     ============================================ */
   --spacing-0: 0;
   --spacing-1: 0.25rem;
   /* 4px */
   --spacing-2: 0.5rem;
   /* 8px */
   --spacing-3: 0.75rem;
   /* 12px */
   --spacing-4: 1rem;
   /* 16px */
   --spacing-5: 1.25rem;
   /* 20px */
   --spacing-6: 1.5rem;
   /* 24px */
   --spacing-8: 2rem;
   /* 32px */
   --spacing-10: 2.5rem;
   /* 40px */
   --spacing-12: 3rem;
   /* 48px */
   --spacing-16: 4rem;
   /* 64px */
   --spacing-20: 5rem;
   /* 80px */
   --spacing-24: 6rem;
   /* 96px */
   --spacing-32: 8rem;
   /* 128px */
   --spacing-40: 10rem;
   /* 160px */
   --spacing-48: 12rem;
   /* 192px */
   --spacing-64: 16rem;
   /* 256px */

   /* ============================================
     BORDER RADIUS
     ============================================ */
   --radius-none: 0;
   --radius-sm: 0.125rem;
   /* 2px */
   --radius-base: 0.25rem;
   /* 4px */
   --radius-md: 0.375rem;
   /* 6px */
   --radius-lg: 0.5rem;
   /* 8px */
   --radius-xl: 0.75rem;
   /* 12px */
   --radius-2xl: 1rem;
   /* 16px */
   --radius-3xl: 1.5rem;
   /* 24px */
   --radius-full: 9999px;
   /* Pill */

   /* ============================================
     SOMBRAS (Shadows)
     ============================================ */
   --shadow-sm: 0 1px 2px 0 rgba(90, 70, 54, 0.05);
   --shadow-base: 0 1px 3px 0 rgba(90, 70, 54, 0.1), 0 1px 2px -1px rgba(90, 70, 54, 0.1);
   --shadow-md: 0 4px 6px -1px rgba(90, 70, 54, 0.1), 0 2px 4px -2px rgba(90, 70, 54, 0.1);
   --shadow-lg: 0 10px 15px -3px rgba(90, 70, 54, 0.1), 0 4px 6px -4px rgba(90, 70, 54, 0.1);
   --shadow-xl: 0 20px 25px -5px rgba(90, 70, 54, 0.1), 0 8px 10px -6px rgba(90, 70, 54, 0.1);
   --shadow-2xl: 0 25px 50px -12px rgba(90, 70, 54, 0.25);
   --shadow-inner: inset 0 2px 4px 0 rgba(90, 70, 54, 0.05);
   --shadow-none: none;

   /* ============================================
     TRANSIÇÕES
     ============================================ */
   --transition-fast: 150ms ease-in-out;
   --transition-base: 200ms ease-in-out;
   --transition-slow: 300ms ease-in-out;
   --transition-slower: 500ms ease-in-out;

   /* ============================================
     Z-INDEX
     ============================================ */
   --z-base: 0;
   --z-dropdown: 1000;
   --z-sticky: 1020;
   --z-fixed: 1030;
   --z-modal-backdrop: 1040;
   --z-modal: 1050;
   --z-popover: 1060;
   --z-tooltip: 1070;
}

/* ============================================
   DARK MODE (Adaptado para paleta Bege/Marrom)
   ============================================ */
html.dark {
   --background: #1f1813;
   --background-alt: #2f241c;
   --foreground: #ede6dc;
   --foreground-muted: #b8a89a;
   --foreground-subtle: #8a7565;

   --card-background: #2f241c;
   --card-foreground: #ede6dc;
   --card-border: #3d2f24;

   --border: #3d2f24;
   --border-muted: #2f241c;
   --input-border: #3d2f24;

   color-scheme: dark;
}
