/* Pagination Container */
.pagy {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 30px 0;
  font-size: 14px;
  font-weight: 500;
}

/* Pagination Links */
.pagy a,
.pagy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  text-decoration: none;
  border: 1px solid #dee2e6;
  background-color: white;
  color: #495057;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* Hover State for Links */
.pagy a[href]:hover {
  background-color: #f8f9fa;
  border-color: #3498db;
  color: #3498db;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Current Page */
.pagy a[aria-current="page"],
.pagy span[aria-current="page"] {
  background-color: #3498db;
  color: white;
  border-color: #3498db;
  font-weight: 600;
  cursor: default;
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Disabled Links (Previous/Next when not available) */
.pagy a[role="link"]:not([aria-current]):not([href]),
.pagy span.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background-color: #f8f9fa;
  color: #6c757d;
}

/* Gap Indicator */
.pagy a[role="separator"],
.pagy span.gap {
  border: none;
  background: none;
  color: #6c757d;
  pointer-events: none;
  min-width: auto;
  padding: 0;
}

/* Previous/Next Buttons */
.pagy a:first-child,
.pagy a:last-child {
  font-weight: 600;
}

/* Page Info Text */
.pagy-info {
  margin-top: 10px;
  text-align: center;
  color: #6c757d;
  font-size: 13px;
}