.app-pagination {
  display: flex;
  align-items: center;
  gap: var(--space-xs, 0.25rem);
}

.app-pagination__page {
  min-width: 32px;
  height: 32px;
  padding: 0 var(--space-xs, 0.25rem);
  border: 1px solid transparent;
  border-radius: var(--radius-md, 6px);
  background: transparent;
  color: var(--text-primary, #1f322d);
  font-size: var(--font-size-sm, 0.8125rem);
  cursor: pointer;
  transition: background-color var(--transition-fast, 120ms ease),
    border-color var(--transition-fast, 120ms ease);

  &:hover {
    background: var(--bg-secondary, #f4f4f5);
  }

  &:focus-visible {
    outline: 2px solid var(--primary-color, #2f6e5d);
    outline-offset: 2px;
  }
}

.app-pagination__page--active {
  background: var(--primary-color, #2f6e5d);
  color: var(--bg-primary, #fff);

  &:hover {
    background: var(--primary-color, #2f6e5d);
  }
}

.app-pagination__ellipsis {
  padding: 0 var(--space-xs, 0.25rem);
  color: var(--text-secondary, #6b7280);
}

@media (prefers-reduced-motion: reduce) {
  .app-pagination__page {
    transition: none;
  }
}
