/**
 * Connecta — Design tokens inspirados no Monday.com / Vibe
 * Referências: Monday.com UI, Vibe design system, work management patterns
 * Uso: importar primeiro; depois main.css, layout e componentes
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Primary & actions (Monday blue/purple) */
  --monday-primary: #5034ff;
  --monday-primary-hover: #3d22e6;
  --monday-primary-light: rgba(80, 52, 255, 0.12);
  --monday-primary-dark: #2c1bb8;

  /* Semantic */
  --monday-success: #00c875;
  --monday-warning: #ffcb00;
  --monday-danger: #ff3b3b;
  --monday-info: #579bfc;

  /* Dark theme — background layers (Monday dark UI) */
  --monday-bg: #1c1d22;
  --monday-bg-elevated: #25262b;
  --monday-bg-hover: rgba(255, 255, 255, 0.06);
  --monday-bg-active: rgba(255, 255, 255, 0.09);
  --monday-header: #22242c;
  --monday-sidebar: #1c1d22;
  --monday-card: #25262b;
  --monday-border: rgba(255, 255, 255, 0.06);
  --monday-border-strong: rgba(255, 255, 255, 0.1);

  /* Text */
  --monday-text-primary: #ffffff;
  --monday-text-secondary: #e6e7eb;
  --monday-text-muted: #9ca3af;
  --monday-text-disabled: #6b7280;
  --monday-icon: #c4c9d4;
  --monday-text-link: #579bfc;
  --monday-accent: #a5b4fc;

  /* Light theme (optional) */
  --monday-light-bg: #f6f7fb;
  --monday-light-header: #ffffff;
  --monday-light-sidebar: #ffffff;
  --monday-light-card: #ffffff;
  --monday-light-text: #111111;
  --monday-light-text-muted: #1f2937;

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

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 15px;
  --text-lg: 16px;
  --text-xl: 18px;
  --text-2xl: 20px;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* Z-index */
  --z-header: 100;
  --z-sidebar: 90;
  --z-dropdown: 200;
  --z-modal: 1000;
  --z-tooltip: 1100;

  /* Legacy compatibility (map to Monday) */
  --primary: var(--monday-primary);
  --primary-dark: var(--monday-primary-dark);
  --success: var(--monday-success);
  --warning: var(--monday-warning);
  --danger: var(--monday-danger);
  --dark-bg: var(--monday-bg);
  --dark-header: var(--monday-header);
  --dark-sidebar: var(--monday-sidebar);
  --dark-card: var(--monday-card);
  --dark-text: var(--monday-text-secondary);
  --radius: var(--radius-md);
  --shadow: var(--shadow-md);
  --shadow-lg: var(--shadow-lg);
}

/* ========== Dark theme — gradiente header > sidebar > main ========== */
.workspace-body.theme-dark,
body.theme-dark {
  --monday-header: #2a2d36;
  --monday-sidebar: #1a1b20;
  --monday-bg: #14151a;
}

/* ========== Light theme — variáveis semânticas ========== */
.workspace-body.theme-light,
body.theme-light {
  --monday-bg: #f6f7fb;
  --monday-bg-elevated: #ffffff;
  --monday-bg-hover: rgba(0, 0, 0, 0.04);
  --monday-bg-active: rgba(0, 0, 0, 0.06);
  --monday-header: #ffffff;
  --monday-sidebar: #ffffff;
  --monday-card: #ffffff;
  --monday-border: rgba(0, 0, 0, 0.08);
  --monday-border-strong: rgba(0, 0, 0, 0.12);
  --monday-text-primary: #111111;
  --monday-text-secondary: #111111;
  --monday-text-muted: #1f2937;
  --monday-text-disabled: #374151;
  --monday-icon: #1f2937;
  --monday-text-link: #579bfc;
  --monday-accent: #6366f1;
  --dark-bg: #f6f7fb;
  --dark-header: #ffffff;
  --dark-sidebar: #ffffff;
  --dark-card: #ffffff;
  --dark-text: #111111;
}

/* Sombra mais suave no tema claro para dropdowns/modais */
.theme-light .sidebar-add-menu,
.theme-light .sidebar-workspace-dropdown {
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
