/* تنسيق جدول مواصفات الهاتف */
.phone-specs-table {
    margin: 20px 0;
    max-width: 100%;
    overflow-x: auto;
}

.phone-specs {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    background-color: #fff;
    direction: rtl;
    text-align: right;
}

.phone-specs thead th {
    background-color: #2c3e50;
    color: #fff;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

.phone-specs tbody tr {
    border-bottom: 1px solid #ddd;
}

.phone-specs tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.phone-specs tbody tr:hover {
    background-color: #f5f5f5;
}

.phone-specs td {
    padding: 12px 15px;
    font-size: 15px;
}

.phone-specs .spec-label {
    font-weight: bold;
    background-color: #ecf0f1;
    width: 35%;
    color: #2c3e50;
}

.phone-specs .spec-value {
    color: #333;
}

/* التجاوب مع الشاشات الصغيرة */
@media screen and (max-width: 768px) {
    .phone-specs {
        font-size: 14px;
    }
    
    .phone-specs td {
        padding: 10px;
    }
    
    .phone-specs .spec-label {
        width: 40%;
    }
}

@media screen and (max-width: 480px) {
    .phone-specs {
        font-size: 13px;
    }
    
    .phone-specs td {
        padding: 8px;
    }
}

/* تنسيق نافذة TinyMCE للغة العربية */
.mce-window {
    direction: rtl !important;
}

.mce-window .mce-container-body {
    direction: rtl !important;
}

.mce-window .mce-formitem {
    direction: rtl !important;
    text-align: right !important;
}

.mce-window .mce-label {
    text-align: right !important;
    float: right !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mce-window .mce-textbox {
    direction: rtl !important;
    text-align: right !important;
}

.mce-window .mce-title {
    text-align: center !important;
}

.mce-window .mce-foot {
    direction: rtl !important;
}

/* إصلاح تنسيق الحقول */
.mce-window .mce-formitem {
    margin-bottom: 5px !important;
}
