/**
 * Design System - {Project Name}
 *
 * CSS Variables generated from design-system.md
 * Use estas variáveis em todo o projeto para manter consistência visual.
 *
 * Template MORPH-SPEC by Polymorphism Tech
 */

:root {
  /* ========================================
   * CORES PRINCIPAIS
   * ======================================== */

  --color-primary: #{hex da cor primária};
  --color-primary-hover: #{hex da cor primária mais escura};
  --color-primary-active: #{hex da cor primária ainda mais escura};

  --color-secondary: #{hex da cor secundária};
  --color-secondary-hover: #{hex};
  --color-secondary-active: #{hex};

  /* ========================================
   * CORES DE ESTADO
   * ======================================== */

  --color-success: #{hex};
  --color-success-bg: #{hex com transparência ou shade mais claro};
  --color-success-border: #{hex};

  --color-error: #{hex};
  --color-error-bg: #{hex};
  --color-error-border: #{hex};

  --color-warning: #{hex};
  --color-warning-bg: #{hex};
  --color-warning-border: #{hex};

  --color-info: #{hex};
  --color-info-bg: #{hex};
  --color-info-border: #{hex};

  /* ========================================
   * ESCALA DE NEUTROS (Cinzas)
   * ======================================== */

  --color-gray-50: #{hex};
  --color-gray-100: #{hex};
  --color-gray-200: #{hex};
  --color-gray-300: #{hex};
  --color-gray-400: #{hex};
  --color-gray-500: #{hex};
  --color-gray-600: #{hex};
  --color-gray-700: #{hex};
  --color-gray-800: #{hex};
  --color-gray-900: #{hex};

  /* ========================================
   * TIPOGRAFIA - FONTES
   * ======================================== */

  --font-sans: '{Font Name}', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-serif: '{Font Name}', Georgia, 'Times New Roman', serif;
  --font-mono: '{Font Name}', 'Fira Code', 'Courier New', Consolas, monospace;

  /* ========================================
   * TIPOGRAFIA - TAMANHOS
   * ======================================== */

  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */

  /* ========================================
   * TIPOGRAFIA - LINE HEIGHTS
   * ======================================== */

  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* ========================================
   * TIPOGRAFIA - FONT WEIGHTS
   * ======================================== */

  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;

  /* ========================================
   * ESPAÇAMENTO
   * Baseado em múltiplos de {base}px (ex: 4px)
   * ======================================== */

  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-7: 1.75rem;   /* 28px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* ========================================
   * BORDER RADIUS
   * ======================================== */

  --rounded-none: 0;
  --rounded-sm: 0.125rem;   /* 2px */
  --rounded-md: 0.375rem;   /* 6px */
  --rounded-lg: 0.5rem;     /* 8px */
  --rounded-xl: 0.75rem;    /* 12px */
  --rounded-2xl: 1rem;      /* 16px */
  --rounded-full: 9999px;

  /* ========================================
   * SOMBRAS (Shadows)
   * ======================================== */

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* ========================================
   * Z-INDEX LAYERS
   * ======================================== */

  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;      /* Modals, dropdowns */
  --z-100: 100;    /* Tooltips */
  --z-max: 9999;   /* Toasts, notifications */

  /* ========================================
   * TRANSITIONS / ANIMATIONS
   * ======================================== */

  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ========================================
   * BREAKPOINTS (informativo - usar em media queries)
   * ======================================== */

  /* @media (min-width: 640px) - sm */
  /* @media (min-width: 768px) - md */
  /* @media (min-width: 1024px) - lg */
  /* @media (min-width: 1280px) - xl */
  /* @media (min-width: 1536px) - 2xl */
}

/* ========================================
 * MODO ESCURO (Dark Mode)
 * Opcional - ajuste as cores para dark theme
 * ======================================== */

@media (prefers-color-scheme: dark) {
  :root {
    /* Inverter cores conforme necessário */
    --color-gray-50: #{hex do gray-900};
    --color-gray-900: #{hex do gray-50};
    /* ... outras inversões */
  }
}

/* ========================================
 * CLASSES UTILITÁRIAS (Exemplo)
 * ======================================== */

/* Exemplo de uso das variáveis */
.btn-primary {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--rounded-md);
  font-weight: var(--font-semibold);
  transition: background-color var(--transition-base);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

.card {
  background-color: white;
  padding: var(--space-6);
  border-radius: var(--rounded-lg);
  box-shadow: var(--shadow-md);
}

.text-muted {
  color: var(--color-gray-600);
  font-size: var(--text-sm);
}

/* ========================================
 * FIM DO DESIGN SYSTEM
 * ======================================== */
