@tailwind base;
@tailwind components;
@tailwind utilities;

@layer components {
  .btn {
    @apply inline-flex items-center gap-2 rounded-lg border;
  }

  .btn-xs {
    @apply px-2 py-1;
  }

  .btn-info {
    @apply border-blue-600 text-blue-600 hover:bg-blue-600 hover:text-white;
  }

  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }

  .btn-link {
    @apply text-blue-500 hover:text-blue-600 hover:underline;
  }

  .calendar-badge {
    @apply border text-[10px] font-semibold me-2 px-2 py-0.5 mb-1 w-full rounded-lg inline-flex items-center justify-center;
  }

  .pagy {
    @apply flex space-x-1 font-semibold text-xs text-gray-500;
    a:not(.gap) {
      @apply block rounded-lg px-2 py-1 bg-gray-200;
      &:hover {
        @apply bg-gray-300;
      }
      &:not([href]) { /* disabled links */
        @apply text-gray-300 bg-gray-100 cursor-default;
      }
      &.current {
        @apply text-white bg-gray-400;
      }
    }
    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;
      }
    }
  }
}
