/* =========================================================================
   base.css — CRM Comercial Cortex
   Variáveis de design, reset e tipografia global.
   ========================================================================= */

:root {
  /* Paleta oficial Cortex */
  --color-bg:         #050505;
  --color-sidebar:    #050505;
  --color-card:       #1A1A1A;
  --color-gold:       #7AA7FF;
  --color-gold-hover: #A8C5FF;
  --color-text:       #FFFFFF;
  --color-text-muted: #9CA3AF;
  --color-border:     #2a3547;
  --color-danger:     #ef4444;
  --color-success:    #22c55e;
  --color-warning:    #f59e0b;

  /* Tipografia */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 0.9375rem;
  --fs-lg:   1.125rem;
  --fs-xl:   1.375rem;
  --fs-2xl:  1.75rem;

  /* Espaçamentos */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;

  /* Raios e sombras */
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 12px;
  --shadow:    0 2px 12px rgba(0, 0, 0, 0.35);

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

/* Reset mínimo */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--color-gold); text-decoration: none; }
a:hover { color: var(--color-gold-hover); }
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
button { cursor: pointer; }

/* Utilitárias */
.text-muted { color: var(--color-text-muted); }
.text-gold  { color: var(--color-gold); }
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  box-shadow: var(--shadow);
}
