/* Container Layout */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 35px 0 25px 0;
  padding: 10px 0;
  user-select: none;
}

/* Base Button Styling (Simple, Modern & Adaptive) */
.pagination button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-sub, #e0e0e0);
  background-color: var(--card-bg, #ffffff);
  color: var(--text-color, #333333);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease-in-out;
}

/* Hover Effect */
.pagination button:hover:not(.active) {
  background-color: var(--hover-bg, #f4f4f5);
  border-color: var(--accent-color, #007bff);
  color: var(--accent-color, #007bff);
  transform: translateY(-2px);
}

/* Active State (الصفحة الحالية) */
.pagination button.active {
  background-color: var(--accent-color, #007bff);
  color: #ffffff;
  border-color: var(--accent-color, #007bff);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
  cursor: default;
}

/* Active State Effect on Press */
.pagination button:active:not(.active) {
  transform: translateY(0);
}

/* Responsive Scaling for Small Screens */
@media (max-width: 480px) {
  .pagination {
    gap: 5px;
  }
  
  .pagination button {
    min-width: 35px;
    height: 35px;
    font-size: 13px;
    padding: 0 8px;
    border-radius: 6px;
  }
}