.pagy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
  color: #374151;
}

.pagy a:not(.gap) {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  text-decoration: none;
  border-radius: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  color: #374151;
  transition: all 0.2s ease-in-out;
  font-weight: 500;
}

.pagy a:not(.gap):hover {
  background-color: #f9fafb;
  border-color: #2A134B;
  color: #2A134B;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(42, 19, 75, 0.1);
}

.pagy a:not(.gap):not([href]) {
  cursor: not-allowed;
  background-color: #f9fafb;
  border-color: #e5e7eb;
  color: #9ca3af;
  opacity: 0.6;
}

.pagy a:not(.gap).current {
  background-color: #2A134B;
  border-color: #2A134B;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(42, 19, 75, 0.2);
}

.pagy a:not(.gap).current:hover {
  background-color: #1f0e35;
  border-color: #1f0e35;
  transform: none;
}

.pagy .gap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  color: #9ca3af;
  font-weight: 500;
}

.pagy label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 0.5rem 0.75rem;
  color: #374151;
  font-weight: 500;
}

.pagy label input {
  width: 4rem;
  height: 1.75rem;
  line-height: 1.5rem;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  text-align: center;
  color: #374151;
  transition: border-color 0.2s ease-in-out;
}

.pagy label input:focus {
  outline: none;
  border-color: #2A134B;
  box-shadow: 0 0 0 3px rgba(42, 19, 75, 0.1);
}