@tailwind base;
@tailwind components;
@tailwind utilities;

@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 222.2 47.4% 11.2%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 222.2 84% 4.9%;
    --radius: 0.5rem;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;

    /* WhatsApp specific colors */
    --whatsapp-green: #00a884;
    --whatsapp-light-green: #d9fdd3;
    --whatsapp-bg: #efeae2;
    --whatsapp-header: #f0f2f5;
    --whatsapp-incoming: #ffffff;
  }

  .dark {
    /* WhatsApp Dark Mode - Main backgrounds */
    --background: 200 18% 6%;
    /* #0b141a - main dark background */
    --foreground: 200 5% 90%;
    /* Light text */
    --card: 200 12% 13%;
    /* #1f2c34 - card background */
    --card-foreground: 200 5% 90%;
    --popover: 200 12% 17%;
    /* #202c33 - popover background */
    --popover-foreground: 200 5% 90%;

    /* Primary colors */
    --primary: 162 100% 33%;
    /* #00a884 - WhatsApp green */
    --primary-foreground: 0 0% 100%;

    /* Secondary and muted */
    --secondary: 200 12% 17%;
    /* #202c33 */
    --secondary-foreground: 200 5% 90%;
    --muted: 200 12% 17%;
    --muted-foreground: 200 5% 60%;
    --accent: 200 12% 17%;
    --accent-foreground: 200 5% 90%;

    /* Destructive */
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;

    /* Borders and inputs */
    --border: 200 12% 20%;
    /* Slightly lighter than background */
    --input: 200 12% 17%;
    --ring: 162 100% 33%;
    /* WhatsApp green for focus rings */

    /* Charts */
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;

    /* WhatsApp Dark Mode specific */
    --whatsapp-green: #00a884;
    --whatsapp-light-green: #005c4b;
    --whatsapp-bg: #0b141a;
    --whatsapp-header: #202c33;
    --whatsapp-incoming: #202c33;
  }
}

@layer base {
  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
  }
}