:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.1450 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.1450 0 0);
  --content-background: oklch(0.9803 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.1450 0 0);
  --primary: oklch(0.2050 0 0);
  --primary-foreground: oklch(0.9850 0 0);
  --secondary: oklch(0.9700 0 0);
  --secondary-foreground: oklch(0.2050 0 0);
  --muted: oklch(0.9700 0 0);
  --muted-foreground: oklch(0.5560 0 0);
  --accent: oklch(0.9700 0 0);
  --accent-foreground: oklch(0.2050 0 0);
  --destructive: oklch(0.6275 0.19 29.233);
  --destructive-foreground: oklch(1 0 0);
  --border: oklch(0.9220 0 0);
  --input: oklch(0.9220 0 0);
  --ring: oklch(0.7080 0 0);
  --chart-1: oklch(0.8100 0.1000 252);
  --chart-2: oklch(0.6200 0.1900 260);
  --chart-3: oklch(0.5500 0.2200 263);
  --chart-4: oklch(0.4900 0.2200 264);
  --chart-5: oklch(0.4200 0.1800 266);
  --sidebar: oklch(0.96 0 0);
  --sidebar-foreground: oklch(0.1450 0 0);
  --sidebar-primary: oklch(0.2050 0 0);
  --sidebar-primary-foreground: oklch(0.9850 0 0);
  /* --sidebar-accent: oklch(0.9700 0 0); */
  --sidebar-accent: oklch(0.89 0 0);
  /* --sidebar-accent-foreground: oklch(0.2050 0 0); */
  --sidebar-accent-foreground: oklch(0.1725 0 0);
  --sidebar-border: oklch(0.9220 0 0);
  --sidebar-ring: oklch(0.7080 0 0);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius: 0.625rem;
  --shadow-x: 0;
  --shadow-y: 1px;
  --shadow-blur: 3px;
  --shadow-spread: 0px;
  --shadow-opacity: 0.1;
  --shadow-color: oklch(0 0 0);
  --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
  --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
  --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
  --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);
  --tracking-normal: 0em;
  --spacing: 0.25rem;

  /* Tailwind-compatible color variables */
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-background: var(--background);
  --color-foreground: var(--foreground);

  /* Legacy backward compatibility variables */
  --main-bg-color: oklch(1 0 0);
  --main-text-color: oklch(0.1450 0 0);
  --main-content-bg-color: oklch(0.9806 0 0);
  --primary-button-bg-color: #0d99ff;
  --primary-button-hover-bg-color: #007be5;
  --content-block-bg-color: oklch(1 0 0);
  --input-bg-color: oklch(0.9220 0 0);
  --input-border-color: oklch(0.9220 0 0);
  --text-color: oklch(0.1450 0 0);
  --toolbar-menu-bg-color: oklch(1 0 0);
  /* Kanban board colors */
  --kanban-leads-bg: rgba(115, 59, 3, 0.035);
  --kanban-leads-text: rgb(88, 68, 55);
  --kanban-leads-badge-bg: rgba(210, 162, 141, 0.35);
  --kanban-leads-dot: rgb(182, 137, 101);

  --kanban-qualified-bg: rgba(66, 35, 3, 0.03);
  --kanban-qualified-text: rgb(73, 72, 70);
  --kanban-qualified-badge-bg: rgba(84, 72, 49, 0.15);
  --kanban-qualified-badge-text: rgb(99, 102, 241);
  --kanban-qualified-dot: rgb(142, 139, 134);

  --kanban-proposal-bg: rgba(3, 118, 186, 0.043);
  --kanban-proposal-text: rgb(38, 74, 114);
  --kanban-proposal-badge-bg: rgba(93, 165, 206, 0.27);
  --kanban-proposal-badge-text: rgb(225, 112, 85);
  --kanban-proposal-dot: rgb(57, 133, 211);

  --kanban-won-bg: rgba(3, 87, 31, 0.035);
  --kanban-won-text: rgb(42, 83, 60);
  --kanban-won-badge-bg: rgba(123, 183, 129, 0.27);
  --kanban-won-badge-text: rgb(0, 184, 148);
  --kanban-won-dot: rgb(85, 167, 124);

  --kanban-default-bg: rgba(66, 35, 3, 0.03);
  --kanban-default-text: rgb(73, 72, 70);
  --kanban-default-badge-bg: rgba(84, 72, 49, 0.15);
  --kanban-default-badge-text: rgb(107, 114, 128);
  --kanban-default-dot: rgb(142, 139, 134);

  /* Priority colors */
  --priority-high: rgb(239, 68, 68);
  --priority-medium: rgb(245, 158, 11);
  --priority-low: rgb(34, 197, 94);
  --priority-default: rgb(156, 163, 175);

  /* Card styling */
  --card-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.1);

  --popup-bg: oklch(1 0 0);
  --popup-hover-bg: oklch(0.9700 0 0);
  --popup-shadow: var(--shadow-lg);
  --popup-border: 1px solid oklch(0.9220 0 0);
  --popup-overlay-bg: oklch(0 0 0 / 0.3);
  --popup-icon-color: oklch(0.5560 0 0);
  --popup-icon-hover-color: oklch(0.2050 0 0);
  --app-box-bg-color: oklch(1 0 0);
  --app-box-text-hover-color: oklch(0.2050 0 0);
  --box-bg-color: oklch(1 0 0);
  --by-flow-color: oklch(0.2050 0 0);
  --glassplate-color: oklch(0.5560 0 0);
  --main-icon-color: oklch(0.2050 0 0);
  --nav-hover-color: oklch(0.9700 0 0);
  --widget-bg-color: oklch(1 0 0);
  --workspace-bg-color: oklch(0.9850 0 0);
  --line-height-sm: 1.25rem;
  --line-height-lg: 1.75rem;
}

.dark {
  --background: oklch(0.1450 0 0);
  --foreground: oklch(0.9850 0 0);
  --card: oklch(0.2050 0 0);
  --card-foreground: oklch(0.9850 0 0);
  --content-background: oklch(0.17 0 0);
  --popover: oklch(0.2690 0 0);
  --popover-foreground: oklch(0.9850 0 0);
  --primary: oklch(0.9220 0 0);
  --primary-foreground: oklch(0.2050 0 0);
  --secondary: oklch(0.2690 0 0);
  --secondary-foreground: oklch(0.9850 0 0);
  --muted: oklch(0.2690 0 0);
  --muted-foreground: oklch(0.7080 0 0);
  --accent: oklch(0.3710 0 0);
  --accent-foreground: oklch(0.9850 0 0);
  --destructive: oklch(0.478 0.202 29.233);
  --destructive-foreground: oklch(0.9850 0 0);
  --border: oklch(0.2750 0 0);
  --input: oklch(0.3250 0 0);
  --ring: oklch(0.5560 0 0);
  --chart-1: oklch(0.8100 0.1000 252);
  --chart-2: oklch(0.6200 0.1900 260);
  --chart-3: oklch(0.5500 0.2200 263);
  --chart-4: oklch(0.4900 0.2200 264);
  --chart-5: oklch(0.4200 0.1800 266);
  --sidebar: oklch(0.23 0 0);
  --sidebar-foreground: oklch(0.9850 0 0);
  --sidebar-primary: oklch(0.4880 0.2430 264.3760);
  --sidebar-primary-foreground: oklch(0.9850 0 0);
  --sidebar-accent: oklch(0.29 0 0);
  --sidebar-accent-foreground: oklch(0.9850 0 0);
  --sidebar-border: oklch(0.2750 0 0);
  --sidebar-ring: oklch(0.4390 0 0);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
  --font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --radius: 0.625rem;
  --shadow-x: 0;
  --shadow-y: 1px;
  --shadow-blur: 3px;
  --shadow-spread: 0px;
  --shadow-opacity: 0.1;
  --shadow-color: oklch(0 0 0);
  --shadow-2xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-xs: 0 1px 3px 0px hsl(0 0% 0% / 0.05);
  --shadow-sm: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 1px 2px -1px hsl(0 0% 0% / 0.10);
  --shadow-md: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 2px 4px -1px hsl(0 0% 0% / 0.10);
  --shadow-lg: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 4px 6px -1px hsl(0 0% 0% / 0.10);
  --shadow-xl: 0 1px 3px 0px hsl(0 0% 0% / 0.10), 0 8px 10px -1px hsl(0 0% 0% / 0.10);
  --shadow-2xl: 0 1px 3px 0px hsl(0 0% 0% / 0.25);

  /* Tailwind-compatible color variables */
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
  --color-background: var(--background);
  --color-foreground: var(--foreground);

  /* Legacy backward compatibility variables */
  --main-bg-color: oklch(0.1450 0 0);
  --main-text-color: oklch(0.9850 0 0);
  --main-content-bg-color: oklch(0.2050 0 0);
  --primary-button-bg-color: #0d99ff;
  --primary-button-text-color: #007be5;
  --content-block-bg-color: oklch(0.2050 0 0);
  --input-bg-color: oklch(0.3250 0 0);
  --input-border-color: oklch(0.2750 0 0);
  --text-color: oklch(0.9850 0 0);
  --toolbar-menu-bg-color: oklch(0.2690 0 0);
  /* Kanban board colors - dark theme */
  --kanban-leads-bg: rgba(253, 158, 101, 0.05);
  --kanban-leads-text: rgb(182, 137, 101);
  --kanban-leads-badge-bg: rgba(184, 101, 67, 0.45);
  --kanban-leads-dot: rgb(182, 137, 101);

  --kanban-qualified-bg: rgba(252, 252, 252, 0.03);
  --kanban-qualified-text: rgb(142, 139, 134);
  --kanban-qualified-badge-bg: rgba(255, 255, 255, 0.13);
  --kanban-qualified-badge-text: rgb(129, 140, 248);
  --kanban-qualified-dot: rgb(142, 139, 134);

  --kanban-proposal-bg: rgba(41, 139, 253, 0.063);
  --kanban-proposal-text: rgb(57, 133, 211);
  --kanban-proposal-badge-bg: rgba(51, 126, 169, 0.5);
  --kanban-proposal-badge-text: rgb(251, 146, 60);
  --kanban-proposal-dot: rgb(57, 133, 211);

  --kanban-won-bg: rgba(83, 255, 140, 0.035);
  --kanban-won-text: rgb(85, 167, 124);
  --kanban-won-badge-bg: rgba(45, 153, 100, 0.5);
  --kanban-won-badge-text: rgb(52, 211, 153);
  --kanban-won-dot: rgb(85, 167, 124);

  --kanban-default-bg: rgba(252, 252, 252, 0.03);
  --kanban-default-text: rgb(142, 139, 134);
  --kanban-default-badge-bg: rgba(255, 255, 255, 0.13);
  --kanban-default-badge-text: rgb(156, 163, 175);
  --kanban-default-dot: rgb(142, 139, 134);

  /* Priority colors - dark mode */
  --priority-high: rgb(248, 113, 113);
  --priority-medium: rgb(251, 191, 36);
  --priority-low: rgb(74, 222, 128);
  --priority-default: rgb(156, 163, 175);

  /* Card styling - dark mode */
  --card-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.3);

  --popup-bg: oklch(0.2690 0 0);
  --popup-hover-bg: oklch(0.3710 0 0);
  --popup-shadow: var(--shadow-lg);
  --popup-border: none;
  --popup-overlay-bg: oklch(0 0 0 / 0.5);
  --popup-icon-color: oklch(0.7080 0 0);
  --popup-icon-hover-color: oklch(0.9850 0 0);
  --app-box-bg-color: oklch(0.2050 0 0);
  --app-box-text-hover-color: oklch(0.9220 0 0);
  --box-bg-color: oklch(0.2050 0 0);
  --by-flow-color: oklch(0.9220 0 0);
  --glassplate-color: oklch(0.7080 0 0);
  --main-icon-color: oklch(0.9850 0 0);
  --nav-hover-color: oklch(0.2690 0 0);
  --widget-bg-color: oklch(0.2050 0 0);
  --workspace-bg-color: oklch(0.2050 0 0);
  --line-height-sm: 1.25rem;
  --line-height-lg: 1.75rem;
}

@layer theme {
    :root, :host {
        --font-sans: var(--font-sans);
        --font-serif: var(--font-serif);
        --font-mono: var(--font-mono);
        --color-red-50: #fef2f2;
        --color-red-300: #ffa3a3;
        --color-red-400: #ff6568;
        --color-red-500: #fb2c36;
        --color-red-600: #e40014;
        --color-yellow-500: #edb200;
        --color-green-400: #05df72;
        --color-green-500: #00c758;
        --color-green-600: #00a544;
        --color-sky-400: #00bcfe;
        --color-blue-500: #3080ff;
        --color-blue-600: #155dfc;
        --color-black: #000;
        --color-white: #fff;
        --spacing: .25rem;
        --container-sm: 24rem;
        --container-md: 28rem;
        --container-lg: 32rem;
        --container-2xl: 42rem;
        --container-3xl: 48rem;
        --container-4xl: 56rem;
        --container-5xl: 64rem;
        --container-7xl: 80rem;
        --text-xs: .75rem;
        --text-xs--line-height: calc(1/.75);
        --text-sm: .875rem;
        --text-sm--line-height: calc(1.25/.875);
        --text-base: 1rem;
        --text-base--line-height: calc(1.5/1);
        --text-lg: 1.125rem;
        --text-lg--line-height: calc(1.75/1.125);
        --text-xl: 1.25rem;
        --text-xl--line-height: calc(1.75/1.25);
        --text-2xl: 1.5rem;
        --text-2xl--line-height: calc(2/1.5);
        --text-3xl: 1.875rem;
        --text-3xl--line-height: calc(2.25/1.875);
        --text-4xl: 2.25rem;
        --text-4xl--line-height: calc(2.5/2.25);
        --text-5xl: 3rem;
        --text-5xl--line-height: 1;
        --text-6xl: 3.75rem;
        --text-6xl--line-height: 1;
        --font-weight-light: 300;
        --font-weight-normal: 400;
        --font-weight-medium: 500;
        --font-weight-semibold: 600;
        --font-weight-bold: 700;
        --font-weight-extrabold: 800;
        --tracking-tighter: calc(var(--letter-spacing) - .05em);
        --tracking-tight: calc(var(--letter-spacing) - .025em);
        --tracking-normal: var(--letter-spacing);
        --tracking-wide: calc(var(--letter-spacing) + .025em);
        --tracking-wider: calc(var(--letter-spacing) + .05em);
        --tracking-widest: calc(var(--letter-spacing) + .1em);
        --leading-tight: 1.25;
        --leading-snug: 1.375;
        --leading-relaxed: 1.625;
        --radius-sm: calc(var(--radius) - 4px);
        --radius-md: calc(var(--radius) - 2px);
        --radius-lg: var(--radius);
        --radius-xl: calc(var(--radius) + 4px);
        --radius-2xl: 1rem;
        --shadow-2xs: var(--shadow-2xs);
        --shadow-xs: var(--shadow-xs);
        --shadow-sm: var(--shadow-sm);
        --shadow-md: var(--shadow-md);
        --shadow-lg: var(--shadow-lg);
        --shadow-xl: var(--shadow-xl);
        --shadow-2xl: var(--shadow-2xl);
        --drop-shadow-lg: 0 4px 4px rgba(0, 0, 0, .15);
        --drop-shadow-2xl: 0 25px 25px rgba(0, 0, 0, .15);
        --ease-in: cubic-bezier(.4, 0, 1, 1);
        --ease-out: cubic-bezier(0, 0, .2, 1);
        --ease-in-out: cubic-bezier(.4, 0, .2, 1);
        --animate-spin: spin 1s linear infinite;
        --animate-ping: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
        --animate-pulse: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
        --animate-bounce: bounce 1s infinite;
        --blur-xs: 4px;
        --blur-sm: 8px;
        --blur-md: 12px;
        --blur-lg: 16px;
        --blur-xl: 24px;
        --blur-3xl: 64px;
        --aspect-video: 16/9;
        --default-transition-duration: .15s;
        --default-transition-timing-function: cubic-bezier(.4, 0, .2, 1);
        --default-font-family: var(--font-sans);
        --default-mono-font-family: var(--font-mono);
        --shadow: var(--shadow);
        --color-background: var(--background);
        --color-foreground: var(--foreground);
        --color-card: var(--card);
        --color-card-foreground: var(--card-foreground);
        --color-popover: var(--popover);
        --color-popover-foreground: var(--popover-foreground);
        --color-primary: var(--primary);
        --color-primary-foreground: var(--primary-foreground);
        --color-secondary: var(--secondary);
        --color-secondary-foreground: var(--secondary-foreground);
        --color-muted: var(--muted);
        --color-muted-foreground: var(--muted-foreground);
        --color-accent: var(--accent);
        --color-accent-foreground: var(--accent-foreground);
        --color-destructive: var(--destructive);
        --color-destructive-foreground: var(--destructive-foreground);
        --color-border: var(--border);
        --color-input: var(--input);
        --color-ring: var(--ring);
        --color-chart-1: var(--chart-1);
        --color-chart-2: var(--chart-2);
        --color-chart-3: var(--chart-3);
        --color-chart-4: var(--chart-4);
        --color-chart-5: var(--chart-5);
        --color-sidebar: var(--sidebar);
        --color-sidebar-foreground: var(--sidebar-foreground);
        --color-sidebar-primary: var(--sidebar-primary);
        --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
        --color-sidebar-accent: var(--sidebar-accent);
        --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
        --color-sidebar-border: var(--sidebar-border);
        --color-sidebar-ring:var(--sidebar-ring)
    }
}
