nav.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* padding: 1rem 0; */
  margin: 1rem 0;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  text-decoration: none;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.8rem;
  transition: all 0.2s ease-in-out;
  min-width: 3rem;
  height: 2.5rem;
  border: 1px solid #e5e7eb;
  background-color: white;
  color: #374151;
}

.page-link:hover:not(.disabled) {
  background-color: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.page-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  background-color: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.page-link.active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  color: white;
  font-weight: 600;
}

.page-info {
  padding: 0.5rem 1rem;
  font-size: 0.79rem;
  color: #6b7280;
  min-width: 8rem;
  text-align: center;
}

/* Responsive design */
@media (max-width: 768px) {
  nav.pagination {
    gap: 0.25rem;
    padding: 0.5rem 0;
  }
  
  .page-link {
    padding: 0.375rem 0.75rem;
    min-width: 2.5rem;
    height: 2rem;
    font-size: 0.775rem;
  }
  
  .page-info {
    min-width: 6rem;
    font-size: 0.75rem;
  }
}

/* Focus states for accessibility */
.page-link:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .page-link {
    border-color: #374151;
    background-color: #1f2937;
    color: #f9fafb;
  }
  
  .page-link:hover:not(.disabled) {
    background-color: #374151;
    border-color: #4b5563;
  }
  
  .page-link.disabled {
    background-color: #111827;
    border-color: #374151;
    color: #6b7280;
  }
  
  .page-info {
    color: #9ca3af;
  }
}
