/* إعدادات عامة للعنصر الرئيسي */
#ftag-admin-options {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin: 20px 0;
}

/* عنوان القسم */
#ftag-admin-options h3 {
    margin-top: 0;
    color: #23282d;
}

/* تقسيم الصفوف والأعمدة */
#ftag-admin-options .ftag-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}
#ftag-admin-options .ftag-col {
    flex: 1 1 220px;
    min-width: 160px;
}
#ftag-admin-options .sections-col {
    flex: 1 1 320px;
}

/* صفوف الـ checkbox بشكل مضغوط */
#ftag-admin-options .checkbox-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

/* أزرار الإجراءات */
#ftag-admin-options .actions-row {
    align-items: center;
}
#ftag-admin-options .buttons-col {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* مجموعات الخيارات */
.option-group {
    margin-bottom: 15px;
}
.option-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* عناصر الإدخال */
.custom-dropdown,
#customIntro {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* مجموعة الـ checkbox */
.checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.checkbox-group {
    display: flex;
    align-items: center;
}
.checkbox-group input {
    margin-right: 5px;
}

/* زر إنشاء المقال */
.create-article {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}
.create-article:hover {
    background: #005a87;
}

/* رسالة منبثقة */
#ftag-popup-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #fff;
    border-left: 4px solid #46b450;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10000;
    max-width: 300px;
}
#ftag-popup-message.error {
    border-left-color: #dc3232;
}

/* أنماط صفحة الإعدادات */
.ftag-settings-wrap .form-table th {
    width: 200px;
}
.ftag-settings-wrap .regular-text {
    width: 100%;
    max-width: 400px;
}

/* معاينة البلوك */
.ftag-block-preview {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fafafa;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}
.ftag-block-preview .block-meta {
    flex: 1;
}
.ftag-block-preview .block-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* تحسين شكل الأزرار ↑ ↓ ✖ */
.ftag-block-preview .block-actions button {
    display: inline-block;
    width: 34px;
    height: 34px;
    line-height: 32px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    cursor: pointer;
    font-weight: 700;
}
.ftag-block-preview .block-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.ftag-block-preview .block-actions button:active {
    transform: translateY(0);
}
.ftag-block-preview .block-actions button.ftag-remove-block {
    color: #b33;
    border-color: rgba(179,51,51,0.12);
}

/* أدوات صغيرة */
.block-sample-list {
    margin: 6px 0 0 18px;
    color: #333;
    font-size: 13px;
}
.block-items-count-display {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
