/* تنسيقات عامة */
body {
    font-family: Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f8f9fa;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #68a446; /* تغيير اللون إلى #68a446 */
    font-weight: bold;
}

/* تنسيقات البطاقات */
.card {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
    background-color: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    max-height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-title {
    color: #68a446; /* تغيير اللون إلى #68a446 */
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card-text {
    font-size: 0.9rem;
    color: #555;
}

.badge {
    font-size: 14px;
    padding: 5px 10px;
    margin-right: 5px;
    background-color: #68a446; /* تغيير اللون إلى #68a446 */
    color: white;
}

.btn-info {
    background-color: #68a446; /* تغيير اللون إلى #68a446 */
    border: none;
    font-size: 0.9rem;
    color: white;
}

.btn-info:hover {
    background-color: #5a8c3a; /* تغيير اللون إلى #5a8c3a */
}

.text-muted {
    color: #6c757d !important;
}

/* تنسيقات التصفية */
.form-label {
    font-weight: bold;
    color: #68a446; /* تغيير اللون إلى #68a446 */
}

.form-select, .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
    padding: 10px;
    font-size: 1rem;
}

.form-select:focus, .form-control:focus {
    border-color: #68a446; /* تغيير اللون إلى #68a446 */
    box-shadow: 0 0 5px rgba(104, 164, 70, 0.5); /* تغيير اللون إلى #68a446 */
}

/* إصلاح مشكلة السهم في التصفية */
.form-select {
    padding-left: 2.5rem; /* إضافة مساحة للسهم على اليمين */
    padding-right: 1rem; /* مساحة للنص على اليسار */
    background-position: right 0.75rem center; /* نقل السهم إلى اليمين */
    background-size: 16px 12px; /* حجم السهم */
    direction: ltr; /* لجعل النص يبدأ من اليسار */
    text-align: left; /* محاذاة النص لليسار */
    background-color: #f8f9fa; /* لون خلفية التصفية */
    border: 1px solid #ddd; /* إضافة حدود */
    border-radius: 5px; /* زوايا مدورة */
}

/* تحسين مظهر الأسهم في التصفية */
.form-select:focus {
    border-color: #68a446; /* تغيير اللون إلى #68a446 */
    box-shadow: 0 0 0 0.25rem rgba(104, 164, 70, 0.25); /* تغيير اللون إلى #68a446 */
}

/* تحسين مظهر الخيارات في القائمة المنسدلة */
.form-select option {
    direction: ltr; /* لجعل النص يبدأ من اليسار */
    text-align: left; /* محاذاة النص لليسار */
    background-color: #f8f9fa; /* لون خلفية الخيارات */
    color: #333; /* لون النص */
}

/* تنسيقات التقسيم إلى صفحات (Pagination) */
.pagination {
    justify-content: center;
    margin-top: 20px;
}

.page-item {
    margin: 0 5px;
}

.page-link {
    color: #68a446; /* تغيير اللون إلى #68a446 */
    border: 1px solid #68a446; /* تغيير اللون إلى #68a446 */
    border-radius: 5px; /* زوايا مدورة */
    padding: 5px 10px;
    font-size: 0.9rem;
    background-color: white; /* لون الخلفية */
}

.page-link:hover {
    background-color: #68a446; /* تغيير اللون إلى #68a446 */
    color: white; /* لون النص عند التحويم */
    border-color: #68a446; /* تغيير اللون إلى #68a446 */
}

.page-item.active .page-link {
    background-color: #68a446; /* تغيير اللون إلى #68a446 */
    border-color: #68a446; /* تغيير اللون إلى #68a446 */
    color: white; /* لون النص للصفحة النشطة */
}

/* تنسيقات أزرار السابق والتالي */
.page-item:first-child .page-link,
.page-item:last-child .page-link {
    background-color: #68a446; /* تغيير اللون إلى #68a446 */
    color: white; /* لون النص */
    border-color: #68a446; /* تغيير اللون إلى #68a446 */
}

.page-item:first-child .page-link:hover,
.page-item:last-child .page-link:hover {
    background-color: #5a8c3a; /* تغيير اللون إلى #5a8c3a */
    border-color: #5a8c3a; /* تغيير اللون إلى #5a8c3a */
}