/* Pagination Fix - لضمان التصميم الصحيح */

/* إخفاء النصوص الافتراضية */
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    color: transparent !important;
    font-size: 0 !important;
}

/* عرض الرموز المخصصة */
.pagination .page-item:first-child .page-link::before {
    content: '‹' !important;
    color: var(--text-dark) !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
}

.pagination .page-item:last-child .page-link::before {
    content: '›' !important;
    color: var(--text-dark) !important;
    font-size: 1.5rem !important;
    font-weight: 900 !important;
}

/* عند hover */
.pagination .page-item:first-child .page-link:hover::before,
.pagination .page-item:last-child .page-link:hover::before {
    color: var(--white) !important;
}

/* للأزرار المعطلة */
.pagination .page-item.disabled .page-link::before {
    color: #6c757d !important;
}

/* تحسين المظهر العام */
.pagination-wrapper {
    margin: 3rem 0 2rem 0;
    padding: 1rem;
}

.pagination {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

/* للهواتف */
@media (max-width: 768px) {
    .pagination {
        padding: 0.5rem;
        border-radius: 12px;
    }
    
    .pagination .page-item:first-child .page-link::before,
    .pagination .page-item:last-child .page-link::before {
        font-size: 1.2rem !important;
    }
}

/* دعم RTL */
[dir="rtl"] .pagination .page-item:first-child .page-link::before {
    content: '›' !important;
}

[dir="rtl"] .pagination .page-item:last-child .page-link::before {
    content: '‹' !important;
}
