/* Admin Interface Stylesheet */
/* This stylesheet is only loaded in the admin layout */

/* ========================================
   Pagy Pagination Styling
   ======================================== */

nav.pagy {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  font-size: 0.875rem;
}

nav.pagy a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  color: rgb(42, 24, 16); /* --color-brown */
  text-decoration: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

nav.pagy a:hover:not([aria-disabled="true"]):not(.current) {
  background-color: rgba(216, 94, 44, 0.1); /* light orange tint */
  border-color: rgb(216, 94, 44); /* --color-orange */
  color: rgb(216, 94, 44);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Current/Active page */
nav.pagy a.current {
  background-color: rgb(216, 94, 44); /* --color-orange */
  border-color: rgb(216, 94, 44);
  color: white;
  box-shadow: 0 4px 6px -1px rgba(216, 94, 44, 0.3);
  cursor: default;
}

/* Disabled links (previous/next at boundaries) */
nav.pagy a[aria-disabled="true"] {
  background-color: #f9fafb;
  border-color: #e5e7eb;
  color: #d1d5db;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
  box-shadow: none;
}

/* Gap indicator (when pages are truncated with ...) */
nav.pagy .gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  color: #9ca3af;
  font-weight: 600;
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
  nav.pagy {
    gap: 0.25rem;
  }

  nav.pagy a {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
  }
}
