/*
 * 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.
 *
 *= require_tree .
 *= require_self
 */

/* Pagy Navigation Styles */
.pagy.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin: 2rem 0;
  font-family: system-ui, -apple-system, sans-serif;
}

.pagy.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: all 0.2s ease;
  cursor: pointer;
}

/* Hover states for clickable links */
.pagy.nav a:not([aria-disabled="true"]):hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Current page styling */
.pagy.nav a.current,
.pagy.nav a[aria-current="page"] {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

/* Disabled states (prev/next when not available) */
.pagy.nav a[aria-disabled="true"]:not(.current):not([aria-current="page"]) {
  color: #9ca3af;
  background: #f9fafb;
  border-color: #e5e7eb;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Gap/ellipsis styling */
.pagy.nav a.gap {
  background: transparent;
  border: none;
  color: #6b7280;
  cursor: default;
  font-weight: normal;
}

.pagy.nav a.gap:hover {
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* Previous/Next arrow styling */
.pagy.nav a[aria-label="Previous"],
.pagy.nav a[aria-label="Next"] {
  font-family: monospace;
  font-size: 16px;
  font-weight: bold;
}

/* Active/focus states for accessibility */
.pagy.nav a:not([aria-disabled="true"]):focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.pagy.nav a:not([aria-disabled="true"]):active {
  transform: translateY(0);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 640px) {
  .pagy.nav {
    gap: 2px;
    margin: 1rem 0;
  }

  .pagy.nav a {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .pagy.nav a[aria-label="Previous"],
  .pagy.nav a[aria-label="Next"] {
    font-size: 14px;
  }
}
