@import "tailwindcss";
@import "tw-animate-css";

@custom-variant dark (&:is(.dark *));

/* WhatsApp dark theme - overriding default colors */
:root {
  --background: #111b21;
  --foreground: #e9edef;
  --card: #202c33;
  --card-foreground: #e9edef;
  --popover: #233138;
  --popover-foreground: #e9edef;
  --primary: #00a884;
  --primary-foreground: #ffffff;
  --secondary: #2a3942;
  --secondary-foreground: #e9edef;
  --muted: #2a3942;
  --muted-foreground: #8696a0;
  --accent: #005c4b;
  --accent-foreground: #e9edef;
  --destructive: #f15c6d;
  --destructive-foreground: #ffffff;
  --border: #2a3942;
  --input: #2a3942;
  --ring: #00a884;
  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);
  --radius: 0.5rem;
  --sidebar: #202c33;
  --sidebar-foreground: #e9edef;
  --sidebar-primary: #00a884;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #2a3942;
  --sidebar-accent-foreground: #e9edef;
  --sidebar-border: #2a3942;
  --sidebar-ring: #00a884;
  --chat-incoming: #202c33;
  --chat-outgoing: #005c4b;
}

.dark {
  --background: #111b21;
  --foreground: #e9edef;
  --card: #202c33;
  --card-foreground: #e9edef;
  --popover: #233138;
  --popover-foreground: #e9edef;
  --primary: #00a884;
  --primary-foreground: #ffffff;
  --secondary: #2a3942;
  --secondary-foreground: #e9edef;
  --muted: #2a3942;
  --muted-foreground: #8696a0;
  --accent: #005c4b;
  --accent-foreground: #e9edef;
  --destructive: #f15c6d;
  --destructive-foreground: #ffffff;
  --border: #2a3942;
  --input: #2a3942;
  --ring: #00a884;
  --chart-1: oklch(0.488 0.243 264.376);
  --chart-2: oklch(0.696 0.17 162.48);
  --chart-3: oklch(0.769 0.188 70.08);
  --chart-4: oklch(0.627 0.265 303.9);
  --chart-5: oklch(0.645 0.246 16.439);
  --sidebar: #202c33;
  --sidebar-foreground: #e9edef;
  --sidebar-primary: #00a884;
  --sidebar-primary-foreground: #ffffff;
  --sidebar-accent: #2a3942;
  --sidebar-accent-foreground: #e9edef;
  --sidebar-border: #2a3942;
  --sidebar-ring: #00a884;
}

@theme inline {
  --font-sans: "Inter", "Inter Fallback";
  --font-mono: "Geist Mono", "Geist Mono Fallback";
  --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);
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);
  --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);
  --color-chat-incoming: var(--chat-incoming);
  --color-chat-outgoing: var(--chat-outgoing);
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
  }
}

/* Custom scrollbar for WhatsApp look */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #374045;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4a5458;
}
