/* =============================================
   StrigLab Design System - CSS Variables
   Updated: Poppins font, new color palette,
   rounded borders, light/dark mode support
   ============================================= */

:root {
  /* === Color Palette === */
  --purple-primary: #7F00ff;
  --purple-dark: #431677;
  --purple-deep: #1c0f2a;
  --purple-medium: #9d47ff;
  --purple-light: #b66fff;
  --purple-lighter: #cc94ff;
  --accent-lime: #d6ff00;
  --accent-cyan: #00f0ff;
  --black: #080808;
  --cream: #efeae7;

  /* === Derived Colors === */
  --purple-hover: #9d47ff;
  --purple-glow: rgba(127, 0, 255, 0.3);
  --purple-bg: rgba(127, 0, 255, 0.1);

  /* === Typography === */
  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.7rem;
  --font-size-sm: 0.8rem;
  --font-size-base: 0.875rem;
  --font-size-md: 1rem;
  --font-size-lg: 1.25rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* === 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;

  /* === Layout === */
  --sidebar-width: 220px;
  --topbar-height: 50px;
  --border-radius-sm: 10px;
  --border-radius-md: 16px;
  --border-radius-lg: 22px;
  --border-radius-xl: 28px;
  --border-radius-full: 9999px;

  /* === Shadows === */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-purple: 0 4px 24px rgba(127, 0, 255, 0.3);

  /* === Transitions === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-theme: 350ms ease;

  /* === Z-Index === */
  --z-sidebar: 100;
  --z-topbar: 90;
  --z-modal: 1000;
  --z-dropdown: 500;
  --z-tooltip: 600;

  /* === Status / Funnel Stage Colors === */
  --status-novo: #15803d;
  --status-novo-bg: rgba(21, 128, 61, 0.15);
  --status-contatado: #3b82f6;
  --status-contatado-bg: rgba(59, 130, 246, 0.15);
  --status-follow-up: #eab308;
  --status-follow-up-bg: rgba(234, 179, 8, 0.15);
  --status-triagem-agendada: #00f0ff;
  --status-triagem-agendada-bg: rgba(0, 240, 255, 0.12);
  --status-triagem-realizada: #f97316;
  --status-triagem-realizada-bg: rgba(249, 115, 22, 0.15);
  --status-reuniao-agendada: #9d47ff;
  --status-reuniao-agendada-bg: rgba(157, 71, 255, 0.15);
  --status-reuniao-realizada: #ec4899;
  --status-reuniao-realizada-bg: rgba(236, 72, 153, 0.15);
  --status-proposta-enviada: #ef4444;
  --status-proposta-enviada-bg: rgba(239, 68, 68, 0.15);
  --status-fechado-ganho: #16a34a;
  --status-fechado-ganho-bg: rgba(22, 163, 74, 0.15);
  --status-fechado-perdido: #f43f5e;
  --status-fechado-perdido-bg: rgba(244, 63, 94, 0.15);

  /* === KPI Card Colors === */
  --kpi-contacts: #7F00ff;
  --kpi-followups: #00f0ff;
  --kpi-screenings: #16a34a;
  --kpi-meetings: #9d47ff;
  --kpi-noshows: #ef4444;

  /* === Financial Card Colors === */
  --finance-revenue: #16a34a;
  --finance-pipeline: #00f0ff;
  --finance-ticket: #b66fff;
  --finance-conversion: #9d47ff;
}

/* ============ DARK THEME (default) ============ */
[data-theme="dark"] {
  --bg-primary: #080808;
  --bg-secondary: #0f0b1a;
  --bg-card: #1c0f2a;
  --bg-card-hover: #271540;
  --bg-sidebar: #0a0618;
  --bg-topbar: #080808;
  --bg-input: #1c0f2a;
  --bg-modal-overlay: rgba(0, 0, 0, 0.75);
  --bg-table-row-hover: rgba(127, 0, 255, 0.06);

  --border-primary: #2d1b4e;
  --border-secondary: #1e1040;
  --border-active: #7F00ff;
  --border-card: #2d1b4e;

  --text-primary: #f1f0f5;
  --text-secondary: #a89ec0;
  --text-muted: #6b5f82;
  --text-accent: #9d47ff;
  --text-white: #ffffff;
}

/* ============ LIGHT THEME ============ */
[data-theme="light"] {
  --bg-primary: #efeae7;
  --bg-secondary: #f5f2f0;
  --bg-card: #ffffff;
  --bg-card-hover: #f9f7f5;
  --bg-sidebar: #ffffff;
  --bg-topbar: #ffffff;
  --bg-input: #f5f2f0;
  --bg-modal-overlay: rgba(0, 0, 0, 0.4);
  --bg-table-row-hover: rgba(127, 0, 255, 0.04);

  --border-primary: #e0dbd7;
  --border-secondary: #e8e4e0;
  --border-active: #7F00ff;
  --border-card: rgba(127, 0, 255, 0.2);

  --text-primary: #111111;
  --text-secondary: #333333;
  --text-muted: #555555;
  --text-accent: #7F00ff;
  --text-white: #1a1428;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-purple: 0 4px 24px rgba(127, 0, 255, 0.15);
}
