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

@layer components {
  /* Pagy 43: usa role="separator" para gaps, aria-current para página atual */
  .pagy {
    @apply flex gap-x-1 font-semibold text-sm text-gray-600;
  }

  .pagy a:not([role="separator"]) {
    @apply block rounded-lg px-3 py-1.5 bg-gray-200 text-gray-700;
  }

  .pagy a[href]:hover {
    @apply bg-gray-300 text-gray-900;
  }

  .pagy a:not([href]) {
    @apply cursor-default;
  }

  .pagy a[role="link"]:not([aria-current]) {
    @apply opacity-60;
  }

  .pagy a[aria-current="page"] {
    @apply bg-indigo-600 text-white;
  }

  .pagy a[role="separator"] {
    @apply px-2 text-gray-500 cursor-default;
  }

  .pagy label {
    @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
  }

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

  details[open] .details-chevron {
    @apply rotate-180;
  }
}
/* Pagy 43: usa role="separator" para gaps, aria-current para página atual */
.pagy {
  @apply flex gap-x-1 font-semibold text-sm text-gray-600;
}

.pagy a:not([role="separator"]) {
  @apply block rounded-lg px-3 py-1.5 bg-gray-200 text-gray-700;
}

.pagy a[href]:hover {
  @apply bg-gray-300 text-gray-900;
}

.pagy a:not([href]) {
  @apply cursor-default;
}

.pagy a[role="link"]:not([aria-current]) {
  @apply opacity-60;
}

.pagy a[aria-current="page"] {
  @apply bg-indigo-600 text-white;
}

.pagy a[role="separator"] {
  @apply px-2 text-gray-500 cursor-default;
}

.pagy label {
  @apply inline-block whitespace-nowrap bg-gray-200 rounded-lg px-3 py-0.5;
}

.pagy label input {
  @apply bg-gray-100 border-none rounded-md;
}
/*
 * 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.
 *


 */
