.pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin: 2rem 0;
}

.info {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navButton {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.navButton:hover:not(:disabled) {
  background: var(--bg-secondary);
  border-color: var(--brand);
  color: var(--text-primary);
}

.navButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pages {
  display: flex;
  gap: 0.25rem;
}

.pageButton,
.pageButtonActive {
  min-width: 2.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pageButton {
  color: var(--text-secondary);
}

.pageButton:hover {
  background: var(--bg-secondary);
  border-color: var(--brand);
  color: var(--text-primary);
}

.pageButtonActive {
  background: var(--brand);
  color: var(--brand-on);
  border-color: var(--brand);
}

.pageButtonActive:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
}

.ellipsis {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .controls {
    flex-wrap: wrap;
  }

  .pages {
    order: -1;
    width: 100%;
    justify-content: center;
  }

  .navButton {
    flex: 1;
  }
}
