@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;

    --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%;
  }

  * {
    @apply border-border;
  }

  body {
    @apply bg-background text-foreground;
    font-feature-settings:
      "rlig" 1,
      "calt" 1;
  }
}

@layer components {
  .message-bubble-user {
    @apply bg-secondary text-secondary-foreground rounded-lg p-3;
  }

  .message-bubble-agent {
    @apply bg-ai-bg text-foreground rounded-lg p-3 border-l-4 border-ai;
  }

  .tool-call-bubble {
    @apply bg-muted text-muted-foreground rounded-lg p-3 my-2 border-l-2 border-accent-foreground;
  }

  .search-rank {
    @apply inline-flex items-center justify-center px-2 py-1 text-xs font-medium rounded-full;
  }

  .vector-rank {
    @apply bg-blue-100 text-blue-800;
  }

  .leading-relaxed {
    font-size: 16px;
  }

  .features-title {
    font-size: 20px;
    font-weight: 500;
  }

  .text-rank {
    @apply bg-green-100 text-green-800;
  }

  .panel-header {
    @apply bg-muted p-3 border-b sticky top-0 z-10;
  }

  .panel-content {
    @apply overflow-y-auto flex-grow;
  }

  .panel-footer {
    @apply border-t p-3;
  }
}
