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

.pagy {
  @apply inline-flex -space-x-px text-base;

  .page {
    a {
      @apply flex items-center justify-center px-3 w-10 h-10 leading-tight text-gray-500 bg-white border border-gray-300 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white;

      &:hover {
        @apply flex items-center justify-center px-3 w-10 h-10 leading-tight text-gray-500 bg-white border border-gray-300 bg-gray-100 text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white;
      }
    }

    &.active a {
      @apply flex items-center justify-center px-3 w-10 h-10 text-blue-600 border border-gray-300 bg-blue-50 bg-blue-100 hover:text-blue-700 dark:border-gray-700 dark:bg-gray-700 dark:text-white;
    }

    &.disabled a {
      @apply text-gray-300 bg-white dark:bg-gray-800 cursor-default;
    }

    &.gap {}

    &.prev {
      a {
        @apply rounded-l
      }
    }

    &.next {
      a {
        @apply rounded-r
      }
    }
  }

  .pagy-combo-input,
  &.pagy-items-selector-js {
    @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;

    input {
      @apply bg-gray-100 border-none rounded-md;
    }
  }
}

::view-transition-old(counter) {
  animation-duration: 100ms;
  animation-name: -ua-view-transition-fade-out, rotate-out;
}

::view-transition-new(counter) {
  animation-duration: 100ms;
  animation-name: -ua-view-transition-fade-in, rotate-in;
}

/*

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

*/
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
