/* Custom Pagination Styles */
.custom-pagination {
  margin: 20px 0;
}

.custom-pagination .ant-pagination-item {
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.custom-pagination .ant-pagination-item:hover {
  border-color: #162A2B;
  transform: translateY(-1px);
}

.custom-pagination .ant-pagination-item-active {
  background: #162A2B;
  border-color: #162A2B;
}

.custom-pagination .ant-pagination-item-active a {
  color: white;
}

.custom-pagination .ant-pagination-prev,
.custom-pagination .ant-pagination-next {
  border-radius: 8px;
  border: 1px solid #d9d9d9;
  transition: all 0.3s ease;
}

.custom-pagination .ant-pagination-prev:hover,
.custom-pagination .ant-pagination-next:hover {
  border-color: #162A2B;
  color: #162A2B;
}

.custom-pagination .ant-pagination-total-text {
  color: #666;
  font-size: 14px;
  margin-right: 16px;
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
  .custom-pagination {
    margin: 16px 0;
  }

  .custom-pagination .ant-pagination-total-text {
    display: block;
    text-align: center;
    margin-bottom: 8px;
    margin-right: 0;
  }

  .custom-pagination .ant-pagination-item,
  .custom-pagination .ant-pagination-prev,
  .custom-pagination .ant-pagination-next {
    margin: 0 2px;
    min-width: 32px;
    height: 32px;
    line-height: 30px;
  }
}

:dir(rtl) .ant-pagination-item-link svg {
  transform: rotate(180deg) !important;
}
