@import "tailwindcss";

.pagy {
  @apply flex space-x-3 font-semibold text-sm text-gray-500;

  a {
    @apply block rounded-lg px-3 py-1 bg-gray-200;

    &:hover {
      @apply bg-gray-300;
    }

    /* Current page: Pagy 9 renders it as an <a class="current"> WITHOUT href */
    &.current {
      @apply text-white bg-gray-400 cursor-default;
      &:hover {
        @apply bg-gray-400;
      }
    }

    /* Any other disabled anchor (no href, not current) */
    &:not([href]):not(.current) {
      @apply text-gray-300 bg-gray-100 cursor-default;
      &:hover {
        @apply bg-gray-100;
      }
    }
  }

  label {
    @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
    input {
      @apply bg-gray-100 border-none rounded-md;
    }
  }
}