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

/*

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

*/

@keyframes fade-in-down {
  0% {
    transform: translate(0, -0.55rem);
    opacity: 0;
  }
  100% {
    transform: translate(0, 0);
    opacity: 100;
  }
}

.animate-fade-in-down {
  animation: fade-in-down 100ms ease-in;
}

/* Pagy styling */
.pagy-nav.pagination {
  @apply isolate inline-flex -space-x-px rounded-md shadow-sm
}

.page.next a {
  @apply relative inline-flex items-center rounded-r-md border border-gray-300 bg-white px-2 py-2 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20
}

.page.prev a {
  @apply relative inline-flex items-center rounded-l-md border border-gray-300 bg-white px-2 py-2 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20
}

.page.next.disabled {
  @apply relative inline-flex items-center rounded-r-md border border-gray-300 bg-slate-100 px-2 py-2 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20
}

.page.prev.disabled {
  @apply relative inline-flex items-center rounded-l-md border border-gray-300 bg-slate-100 px-2 py-2 text-sm font-medium text-gray-500 hover:bg-gray-50 focus:z-20;
}

.page a, .page.gap {
  @apply bg-white border-gray-300 text-gray-500 hover:bg-gray-50 relative inline-flex items-center border px-4 py-2 text-sm font-medium focus:z-20
}

.page.active {
  @apply z-10 border-orange-500 bg-orange-50 text-orange-600 relative inline-flex items-center border px-4 py-2 text-sm font-medium focus:z-20
}

.pagy-info {
  @apply text-sm text-gray-700;
}

.pagy-info b {
  @apply font-semibold text-gray-900;
}

/* Form disabled */
.field-disabled {
  @apply opacity-50 cursor-not-allowed;
}

input[type=submit]:disabled {
  @apply bg-orange-300 cursor-not-allowed;
}
/*
 * 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.
 *


 */
