/* ================================
   Global Pagination Styling
   Author: Esmaeil Abdollahi
   Path: common/static/css/pagination.css
   ================================ */

.pagination {
  font-family: "IRANSans", "Vazirmatn", sans-serif;
  font-size: 0.95rem;
}

.pagination .page-item {
  margin: 0 3px;
}

.pagination .page-link {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  color: #495057;
  padding: 6px 12px;
  min-width: 38px;
  text-align: center;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

/* Hover */
.pagination .page-link:hover {
  color: #0d6efd;
  border-color: #b6d4fe;
  background-color: #f8f9fa;
  box-shadow: 0 2px 5px rgba(13, 110, 253, 0.1);
}

/* Active page */
.pagination .page-item.active .page-link {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
  box-shadow: 0 3px 8px rgba(13, 110, 253, 0.25);
}

/* Disabled */
.pagination .page-item.disabled .page-link {
  color: #adb5bd;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

/* Focus ring */
.pagination .page-link:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* RTL support */
html[dir="rtl"] .pagination .page-link i {
  transform: rotate(180deg);
}

/* Optional: smooth animation for hover */
.pagination .page-item {
  transition: transform 0.2s ease;
}

.pagination .page-item:hover:not(.active):not(.disabled) {
  transform: translateY(-1px);
}
