/* Pagination Styles */
.pagination-section {
  background: #fff;
  padding: 30px 20px;
  border-radius: 8px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.pagination {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.page-item {
  display: inline-block;
}

.page-item .page-link {
  border: 1px solid #ddd;
  color: #333;
  background: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-weight: 500;
  font-size: 14px;
  min-width: 44px;
  text-align: center;
}

.page-item.active .page-link {
  background-color: #1a73e8;
  border-color: #1a73e8;
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.3);
}

.page-item.disabled .page-link {
  cursor: not-allowed;
  opacity: 0.5;
  background-color: #f5f5f5;
  color: #999;
}

.page-item:not(.active):not(.disabled) .page-link:hover {
  background-color: #f0f0f0;
  border-color: #999;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-item:not(.active):not(.disabled) .page-link:active {
  transform: translateY(0);
}

/* Pagination info text */
.pagination-section .text-center {
  margin-top: 16px;
}

.pagination-section .text-muted {
  color: #666;
  font-size: 14px;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .pagination-section {
    padding: 20px 10px;
  }
  
  .pagination {
    gap: 4px;
  }
  
  .page-item .page-link {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 38px;
  }
  
  .pagination-section .text-muted {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .page-item .page-link {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 34px;
  }
  
  /* Hide page numbers on very small screens, keep only prev/next */
  .page-item:not(:first-child):not(:last-child) {
    display: none;
  }
  
  /* Show active page and adjacent pages */
  .page-item.active,
  .page-item.active + .page-item,
  .page-item:has(+ .page-item.active) {
    display: inline-block !important;
  }
}

/* Loading state */
.pagination-section.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Utility classes */
.mt-30 {
  margin-top: 30px;
}

.mb-30 {
  margin-bottom: 30px;
}

.mt-2 {
  margin-top: 8px;
}

/* Additional styling for better integration */
.justify-content-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

