@reference "../../styles/index.css";

.tabsRoot {
  @apply grid
    max-w-full;

  .tabsList {
    @apply font-open-sans
      scrollbar-thin
      flex
      gap-2
      overflow-x-auto;

    .tabsTrigger {
      @apply border-b-2
        border-b-transparent
        px-1
        pt-0
        pb-2
        text-sm
        font-semibold
        whitespace-nowrap
        text-neutral-800
        dark:text-neutral-200;

      .tabExtension {
        @apply ml-1
          rounded-xs
          border
          border-neutral-200
          px-1
          py-0
          text-xs
          font-normal
          text-neutral-200;
      }

      .tabSecondaryLabel {
        @apply pl-1
          text-neutral-500
          dark:text-neutral-800;
      }

      &[data-state='active'] {
        @apply border-b-brand-600
          text-brand-600
          dark:border-b-brand-400
          dark:text-brand-400;

        .tabExtension {
          @apply border-brand-400
            text-brand-400;
        }

        .tabSecondaryLabel {
          @apply text-brand-800
            dark:text-brand-600;
        }
      }
    }

    .addons {
      @apply ml-auto
        border-b-2
        border-b-transparent
        px-1
        pb-[11px]
        text-sm
        font-semibold;
    }
  }
}
