/* تنسيق عام للصفحة */
.categories_management_wrap {
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* تنسيق العناوين */
.categories_management_title {
    font-family: Tajawal, sans-serif !important;
    font-size: 20px !important;
    margin-bottom: 20px !important;
}

h2 {
    font-family: Tajawal, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 15px !important;
}

/* تنسيق النموذج */
.categories_management_form {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
}

/* تنسيق حقول الإدخال */
.categories_management_form input[type="text"] {
    width: 360px;
    padding: 8px;
    margin-bottom: 10px;
    font-family: Tajawal, sans-serif;
    font-size: 12px;
    text-align: right;
    direction: rtl;
}

/* تنسيق حقول التصنيفات الفرعية */
.sub-category-row {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.sub-category-row input[type="text"] {
    width: 360px;
}

/* تنسيق زر الإرسال */
.categories_management_form input[type="submit"] {
    padding: unset;
    width: 120px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: Tajawal, sans-serif;
    font-size: 12px;
}

/* تنسيق زر الإرسال عند التحويم */
.categories_management_form input[type="submit"]:hover {
    background: #005a87;
}

/* تنسيق زر الإلغاء */
.categories_management_form button {
    width: 120px;
    background: #f1f1f1;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-family: Tajawal, sans-serif;
    font-size: 12px;
}

/* تنسيق زر الإلغاء عند التحويم */
.categories_management_form button:hover {
    background: #e0e0e0;
}

/* تنسيق النصوص التوضيحية */
p.description {
    font-family: Tajawal, sans-serif;
    font-size: 12px;
    margin-top: 10px;
    line-height: 2;
    color: #333;
}

/* تنسيق الجدول */
.widefat.fixed {
    width: 100%;
    margin-top: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* تنسيق رؤوس الجدول */
.widefat.fixed th {
    font-family: Tajawal, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    background: #f1f1f1;
    text-align: right;
    padding: 8px;
}

/* تنسيق خلايا الجدول */
.widefat.fixed td {
    font-family: Tajawal, sans-serif;
    font-size: 12px;
    padding: 8px;
    text-align: right;
    border-bottom: 1px solid #ddd;
}

/* تنسيق زر تحرير */
.widefat.fixed .button-primary {
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: Tajawal, sans-serif;
    font-size: 12px;
    margin-right: 5px;
}

.widefat.fixed .button-primary:hover {
    background: #005a87;
}

/* تنسيق زر الحذف (X) */
.widefat.fixed .button-secondary {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: Tajawal, sans-serif;
    font-size: 12px;
}

.widefat.fixed .button-secondary:hover {
    background: #c82333;
}

/* تنسيق نموذج التحرير عند الظهور */
#edit-sub-categories-form {
    margin-top: 20px;
}

/* تنسيق جدول التصنيفات الفرعية */
.sub-categories-table {
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

/* تنسيق حقول التصنيفات الفرعية */
.sub-categories-table input[type="text"] {
    width: 200px;
    padding: 6px;
    font-family: Tajawal, sans-serif;
    font-size: 12px;
    text-align: right;
    direction: rtl;
}

/* تنسيق زر الإضافة (+) */
.add-sub-category {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    padding: 0;
    background: #28a745;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: Tajawal, sans-serif;
    font-size: 14px;
}

.add-sub-category:hover {
    background: #218838;
}

/* تنسيق صفوف الجدول */
.sub-categories-table tr {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

.sub-categories-table tr:last-child {
    border-bottom: none;
}

/* تنسيق أزرار التصنيفات الديناميكية */
.ee-channel-buttons {
    text-align: center;
}

.ee-sub-categories {
    margin-top: 10px;
}

.ee-main-category-button, .ee-sub-category-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: Tajawal, sans-serif;
    font-size: 12px;
    font-weight: 500;
    margin: 5px;
    width: 110px;
}

.ee-main-category-button:hover, .ee-sub-category-button:hover {
    background: #005a87;
}

.ee-sub-category-button {
    background: #257d5d;
    width: 115px;
}

.ee-sub-category-button:hover {
    background: #218838;
}
.ee-sub-categories {
    display: none;
}