/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Pagy pagination */
.pagy nav.pagy {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.pagy nav.pagy a,
.pagy nav.pagy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 150ms;
}

.pagy nav.pagy a {
  color: #6b7280;
  border: 1px solid #e5e7eb;
  background: white;
}

.pagy nav.pagy a:hover {
  color: #4f46e5;
  border-color: #c7d2fe;
  background: #eef2ff;
}

.pagy nav.pagy a[aria-current="page"],
.pagy nav.pagy span.current {
  color: white;
  background: #4f46e5;
  border-color: #4f46e5;
}

.pagy nav.pagy span.gap {
  color: #9ca3af;
  border: none;
}

.pagy nav.pagy a[aria-disabled="true"],
.pagy nav.pagy span[aria-disabled="true"] {
  color: #d1d5db;
  border-color: #f3f4f6;
  pointer-events: none;
}

/* Clickable elements should show hand cursor */
button, [role="button"], summary {
  cursor: pointer;
}

main input[type="text"],
main input[type="email"],
main input[type="password"],
main input[type="number"],
main input[type="url"],
main input[type="search"],
main input[type="tel"],
main input[type="date"],
main input[type="time"],
main input[type="datetime-local"],
main select,
main textarea {
  background-color: white;
}
