@import url("https://rsms.me/inter/inter.css") layer(base);

@import "tailwindcss";

@config '../tailwind.config.js';

@theme {
  --animate-accordion-slide-down: accordion-slide-down 300ms
    cubic-bezier(0.87, 0, 0.13, 1);

  @keyframes accordion-slide-down {
    0% {
      height: 0;
    }
    100% {
      height: var(--radix-accordion-content-height);
    }
  }

  --animate-accordion-slide-up: accordion-slide-up 300ms
    cubic-bezier(0.87, 0, 0.13, 1);

  @keyframes accordion-slide-up {
    0% {
      height: var(--radix-accordion-content-height);
    }
    100% {
      height: 0;
    }
  }

  --animate-collapsible-slide-down: collapsible-slide-down 300ms
    cubic-bezier(0.87, 0, 0.13, 1);

  @keyframes collapsible-slide-down {
    0% {
      height: 0;
    }
    100% {
      height: var(--radix-collapsible-content-height);
    }
  }

  --animate-collapsible-slide-up: collapsible-slide-up 300ms
    cubic-bezier(0.87, 0, 0.13, 1);

  @keyframes collapsible-slide-up {
    0% {
      height: var(--radix-collapsible-content-height);
    }
    100% {
      height: 0;
    }
  }
}

/*
  The default border color has changed to `currentColor` in Tailwind CSS v4,
  so we've added these compatibility styles to make sure everything still
  looks the same as it did with Tailwind CSS v3.

  If we ever want to remove these styles, we need to add an explicit border
  color utility to any element that depends on these defaults.
*/
@layer base {
  *,
  ::after,
  ::before,
  ::backdrop,
  ::file-selector-button {
    border-color: var(--color-gray-200, currentColor);
  }
}

@layer base {
  :root {
    @apply scroll-smooth font-display antialiased;
  }

  html {
    @apply bg-white;
    scrollbar-color: #00000080 transparent;
    scrollbar-width: auto;
  }

  html[class*="dark"] {
    @apply bg-gray-900;
    scrollbar-color: #ffffffb3 transparent;
    scrollbar-width: auto;
  }

  ::-webkit-scrollbar {
    height: 8px;
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    @apply bg-transparent;
  }

  ::-webkit-scrollbar-thumb {
    @apply rounded-full bg-black/50 dark:bg-white/70;
  }

  ::-webkit-scrollbar-thumb:hover {
    @apply bg-black/60 dark:hover:bg-white/80;
  }

  button {
    /* Disables tap highlight color on Chrome */
    -webkit-tap-highlight-color: transparent;
  }

  /* Input darkmode fix for checkbox / radio */
  .dark [type="checkbox"]:checked,
  .dark [type="radio"]:checked {
    background-color: currentColor;
  }
}
