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

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

:root {
  --background: #ffffff;
  --foreground: #121417;
  --card: #ffffff;
  --card-foreground: #121417;
  --popover: #ffffff;
  --popover-foreground: #121417;
  --primary: #4869dd;
  --primary-foreground: #ffffff;
  --secondary: #f4f4f5;
  --secondary-foreground: #18181b;
  --muted: #f4f4f5;
  --muted-foreground: #71717a;
  --accent: #f4f4f5;
  --accent-foreground: #18181b;
  --destructive: #dc5563;
  --destructive-foreground: #ffffff;
  --border: #e4e4e7;
  --input: #e4e4e7;
  --ring: #4869dd;
  --chart-1: #e76e50;
  --chart-2: #2a9d8f;
  --chart-3: #264653;
  --chart-4: #f4a261;
  --chart-5: #e9c46a;
  --radius: 0.625rem;
  --sidebar: #f8fafc;
  --sidebar-foreground: #0f172a;
  --sidebar-primary: #0f172a;
  --sidebar-primary-foreground: #f8fafc;
  --sidebar-accent: #f1f5f9;
  --sidebar-accent-foreground: #0f172a;
  --sidebar-border: #e2e8f0;
  --sidebar-ring: #94a3b8;
}

.dark {
  --background: #121212;
  --foreground: #ffffff;
  --card: #1e1e1e;
  --card-foreground: #ffffff;
  --popover: #1e1e1e;
  --popover-foreground: #ffffff;
  --primary: #d7ffd0;
  --primary-foreground: #1a1a1a;
  --secondary: #27272a;
  --secondary-foreground: #fafafa;
  --muted: #27272a;
  --muted-foreground: #a1a1aa;
  --accent: #27272a;
  --accent-foreground: #fafafa;
  --destructive: #dc5563;
  --destructive-foreground: #ffffff;
  --border: #27272a;
  --input: #27272a;
  --ring: #dc5563;
  --chart-1: #220458;
  --chart-2: #3eb489;
  --chart-3: #e4daa6;
  --chart-4: #90bcc9;
  --chart-5: #dc5563;
  --sidebar: #020817;
  --sidebar-foreground: #f8fafc;
  --sidebar-primary: #f8fafc;
  --sidebar-primary-foreground: #020817;
  --sidebar-accent: #1e293b;
  --sidebar-accent-foreground: #f8fafc;
  --sidebar-border: #1e293b;
  --sidebar-ring: #1e293b;
}

@theme inline {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --color-kanoo-red: #dc5563;
  --color-kanoo-blue: #90bcc9;
  --color-kanoo-green: #d7ffd0;
  --color-kanoo-purple: #edd4ff;
  --color-kanoo-beige: #e4daa6;
  --radius: 1rem;
  --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);
  --animate-accordion-down: accordion-down 0.2s ease-out;
  --animate-accordion-up: accordion-up 0.2s ease-out;
}

@layer base {
  * {
    @apply border-border outline-ring/50;
  }
  body {
    @apply bg-background text-foreground;
    font-feature-settings: "rlig" 1, "calt" 1;
  }
  button,
  a,
  [role="button"],
  [type="button"],
  [type="submit"],
  [type="reset"],
  label[for],
  select,
  summary {
    cursor: pointer;
  }
  input::placeholder,
  textarea::placeholder,
  select::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
  }
}

@keyframes accordion-down {
  from {
    height: 0;
  }
  to {
    height: var(--radix-accordion-content-height);
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height);
  }
  to {
    height: 0;
  }
}

@keyframes enter {
  from {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0)
      scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1))
      rotate(var(--tw-enter-rotate, 0));
  }
}

@keyframes exit {
  to {
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0)
      scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1))
      rotate(var(--tw-exit-rotate, 0));
  }
}

.animate-in {
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}

.animate-out {
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}

.fade-in-0 {
  --tw-enter-opacity: 0;
}
.fade-out-0 {
  --tw-exit-opacity: 0;
}
.fade-out-80 {
  --tw-exit-opacity: 0.8;
}
.zoom-in-95 {
  --tw-enter-scale: 0.95;
}
.zoom-out-95 {
  --tw-exit-scale: 0.95;
}
.slide-in-from-top-2 {
  --tw-enter-translate-y: -0.5rem;
}
.slide-in-from-top-full {
  --tw-enter-translate-y: -100%;
}
.slide-in-from-bottom-2 {
  --tw-enter-translate-y: 0.5rem;
}
.slide-in-from-bottom-full {
  --tw-enter-translate-y: 100%;
}
.slide-in-from-left-2 {
  --tw-enter-translate-x: -0.5rem;
}
.slide-in-from-left-full {
  --tw-enter-translate-x: -100%;
}
.slide-in-from-left-1\/2 {
  --tw-enter-translate-x: -50%;
}
.slide-in-from-right-2 {
  --tw-enter-translate-x: 0.5rem;
}
.slide-in-from-right-full {
  --tw-enter-translate-x: 100%;
}
.slide-in-from-top-\[48\%\] {
  --tw-enter-translate-y: -48%;
}
.slide-out-to-top {
  --tw-exit-translate-y: -100%;
}
.slide-out-to-bottom {
  --tw-exit-translate-y: 100%;
}
.slide-out-to-left {
  --tw-exit-translate-x: -100%;
}
.slide-out-to-left-1\/2 {
  --tw-exit-translate-x: -50%;
}
.slide-out-to-right {
  --tw-exit-translate-x: 100%;
}
.slide-out-to-right-full {
  --tw-exit-translate-x: 100%;
}
.slide-out-to-top-\[48\%\] {
  --tw-exit-translate-y: -48%;
}
