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

@layer base {
  :root {
    --radius: 0.5rem;
    
    /* Light theme variables */
    --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: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96%;
    --secondary-foreground: 222.2 84% 4.9%;
    --muted: 210 40% 96%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96%;
    --accent-foreground: 222.2 84% 4.9%;
    --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: 221.2 83.2% 53.3%;
    
    /* Sidebar variables */
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 240 5.3% 26.1%;
    --sidebar-primary: 240 5.9% 10%;
    --sidebar-primary-foreground: 0 0% 98%;
    --sidebar-accent: 240 4.8% 95.9%;
    --sidebar-accent-foreground: 240 5.9% 10%;
    --sidebar-border: 220 13% 91%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
  
  .dark {
    --background: 222.2 84% 4.9%;
    --foreground: 210 40% 98%;
    --card: 222.2 84% 4.9%;
    --card-foreground: 210 40% 98%;
    --popover: 222.2 84% 4.9%;
    --popover-foreground: 210 40% 98%;
    --primary: 217.2 91.2% 59.8%;
    --primary-foreground: 222.2 84% 4.9%;
    --secondary: 217.2 32.6% 17.5%;
    --secondary-foreground: 210 40% 98%;
    --muted: 217.2 32.6% 17.5%;
    --muted-foreground: 215 20.2% 65.1%;
    --accent: 217.2 32.6% 17.5%;
    --accent-foreground: 210 40% 98%;
    --destructive: 0 62.8% 30.6%;
    --destructive-foreground: 210 40% 98%;
    --border: 217.2 32.6% 17.5%;
    --input: 217.2 32.6% 17.5%;
    --ring: 224.3 76.3% 48%;
    
    /* Dark sidebar variables */
    --sidebar-background: 240 5.9% 10%;
    --sidebar-foreground: 240 4.8% 95.9%;
    --sidebar-primary: 224.3 76.3% 48%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 240 3.7% 15.9%;
    --sidebar-accent-foreground: 240 4.8% 95.9%;
    --sidebar-border: 240 3.7% 15.9%;
    --sidebar-ring: 217.2 91.2% 59.8%;
  }
  
  .customer {
    --background: 214 100% 97%;
    --foreground: 214 100% 15%;
    --card: 214 100% 97%;
    --card-foreground: 214 100% 15%;
    --popover: 214 100% 97%;
    --popover-foreground: 214 100% 15%;
    --primary: 214 100% 27%;
    --primary-foreground: 0 0% 100%;
    --secondary: 214 100% 95%;
    --secondary-foreground: 214 100% 15%;
    --muted: 214 100% 95%;
    --muted-foreground: 214 50% 40%;
    --accent: 214 100% 90%;
    --accent-foreground: 214 100% 15%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214 100% 85%;
    --input: 214 100% 90%;
    --ring: 214 100% 50%;
    
    /* Customer sidebar variables */
    --sidebar-background: 214 100% 97%;
    --sidebar-foreground: 214 100% 15%;
    --sidebar-primary: 214 100% 27%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 214 100% 95%;
    --sidebar-accent-foreground: 214 100% 15%;
    --sidebar-border: 214 100% 85%;
    --sidebar-ring: 214 100% 50%;
  }
}

@layer components {
  .markdown-content {
    @apply text-foreground leading-relaxed;
  }
  
  .markdown-content h1 {
    @apply text-3xl font-bold mb-6 mt-8 text-foreground border-b-2 border-border pb-3;
  }
  
  .markdown-content h2 {
    @apply text-2xl font-semibold mb-5 mt-7 text-foreground border-b border-border pb-2;
  }
  
  .markdown-content h3 {
    @apply text-xl font-semibold mb-4 mt-6 text-foreground;
  }
  
  .markdown-content h4 {
    @apply text-lg font-medium mb-3 mt-5 text-foreground;
  }
  
  .markdown-content p {
    @apply mb-4 text-muted-foreground leading-7;
  }
  
  .markdown-content ul {
    @apply list-disc pl-6 mb-4 text-muted-foreground;
  }
  
  .markdown-content ol {
    @apply list-decimal pl-6 mb-4 text-muted-foreground;
  }
  
  .markdown-content li {
    @apply mb-1;
  }
  
  .markdown-content strong {
    @apply font-semibold text-foreground;
  }
  
  .markdown-content em {
    @apply italic;
  }
  
  .markdown-content blockquote {
    @apply border-l-4 border-primary pl-4 italic text-muted-foreground mb-4 bg-accent py-2;
  }
  
  .markdown-content code {
    @apply bg-muted px-2 py-1 rounded text-sm font-mono text-primary;
  }
  
  .markdown-content pre {
    @apply bg-muted text-foreground p-4 rounded-lg text-sm font-mono overflow-x-auto mb-4;
  }
  
  .markdown-content pre code {
    @apply bg-transparent p-0 text-foreground;
  }
}

