/* Pagination Styles */
.pagination-container {
  margin: 3rem 0;
  text-align: center;
  display: block;
  width: 100%;
  clear: both;
  position: relative;
  z-index: 10;
}

.pagination {
  display: inline-flex;
  gap: 0.5rem;
  background: white;
  padding: 1rem;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.pagination a {
  background: #f8f9fa;
  color: #333;
}

.pagination a:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

.pagination .current {
  background: var(--primary-color);
  color: white;
}

.pagination .disabled {
  background: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
}

.pagination .disabled:hover {
  background: #e9ecef;
  color: #adb5bd;
  transform: none;
  box-shadow: none;
}

.page-link {
  background: #f8f9fa;
  color: #333;
}

.page-link:hover:not(.disabled) {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 111, 97, 0.3);
}

.prev-page,
.next-page {
  font-size: 1.2rem;
}

/* Loading indicator for pagination */
.pagination-loading {
  display: none;
  text-align: center;
  padding: 2rem;
}

.pagination-loading.show {
  display: block;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
