/**
 * =============================================================================
 * Form Components Styles - TopSadad Admin Panel
 * =============================================================================
 * ملف التنسيقات العامة لصفحات النماذج (الإضافة والتعديل)
 * يمكن استخدامه في أي صفحة تحتوي على نماذج إدخال بيانات
 * =============================================================================
 */

/* =============================================================================
   Form Label Group - مجموعة العنوان مع أيقونة المساعدة
   ============================================================================= */
.form-label-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* =============================================================================
   Help Icon - أيقونة المساعدة (Tooltip)
   ============================================================================= */
.help-icon {
    color: #8094ae;
    font-size: 14px;
    cursor: help;
    transition: color 0.2s;
}

.help-icon:hover {
    color: #6576ff;
}

/* =============================================================================
   Tooltip Styles - تنسيقات التلميحات
   ============================================================================= */
.tooltip-inner {
    max-width: 280px;
    padding: 10px 14px;
    text-align: right;
    font-size: 13px;
    line-height: 1.5;
    background: #1c2b46;
    border-radius: 6px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #1c2b46;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #1c2b46;
}

/* =============================================================================
   Section Card - بطاقات الأقسام
   ============================================================================= */
.section-card {
    margin-bottom: 24px;
}

.section-card .card-inner {
    padding: 20px;
}

/* =============================================================================
   Section Header - رأس القسم مع الأيقونة
   ============================================================================= */
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e9f2;
    margin-bottom: 20px;
}

.section-header .icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.section-header h6 {
    margin: 0;
    font-weight: 600;
}

/* =============================================================================
   Switch Group - مجموعة أزرار التبديل
   ============================================================================= */
.switch-group {
    background: #f5f6fa;
    border-radius: 8px;
    padding: 15px;
}

.switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e9f2;
}

.switch-item:last-child {
    border-bottom: none;
}

.switch-info h6 {
    margin: 0 0 3px 0;
    font-size: 14px;
}

.switch-info p {
    margin: 0;
    font-size: 12px;
    color: #8094ae;
}

/* =============================================================================
   Description Add Form - نموذج إضافة الوصف/المميزات
   ============================================================================= */
.desc-add-form {
    background: linear-gradient(135deg, #f8f9fc 0%, #eef0f6 100%);
    border: 1px dashed #c4cdd5;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

/* =============================================================================
   Description Items Container - حاوية عناصر الوصف
   ============================================================================= */
.desc-items-container {
    min-height: 100px;
}

/* =============================================================================
   Description Item - عنصر الوصف/الميزة
   ============================================================================= */
.desc-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.desc-item:hover {
    border-color: #6576ff;
    box-shadow: 0 2px 8px rgba(101, 118, 255, 0.1);
}

.desc-item .desc-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.desc-item .desc-content {
    flex: 1;
}

.desc-item .desc-type {
    font-size: 11px;
    color: #8094ae;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.desc-item .desc-text {
    font-size: 14px;
    color: #364a63;
    font-weight: 500;
}

.desc-item .desc-remove {
    opacity: 0;
    transition: opacity 0.2s;
}

.desc-item:hover .desc-remove {
    opacity: 1;
}

/* =============================================================================
   Empty Description State - حالة عدم وجود عناصر
   ============================================================================= */
.empty-desc {
    text-align: center;
    padding: 30px;
    color: #8094ae;
}

.empty-desc em {
    font-size: 40px;
    opacity: 0.3;
    margin-bottom: 10px;
}

/* =============================================================================
   Info Card - بطاقة المعلومات الجانبية
   ============================================================================= */
.info-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.info-card-header .user-avatar {
    margin-left: 8px;
}

.info-card-header span {
    font-weight: 600;
}

/* =============================================================================
   Tips Card - بطاقة النصائح
   ============================================================================= */
.tips-list {
    padding-right: 1rem;
    font-size: 13px;
}

.tips-list li {
    margin-bottom: 8px;
}

.tips-list li:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   Action Buttons Card - بطاقة أزرار الإجراءات
   ============================================================================= */
.action-buttons-card .card-inner {
    padding: 12px 20px;
}

.action-buttons-card .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* =============================================================================
   Form Section Divider - فاصل الأقسام
   ============================================================================= */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e9f2, transparent);
    margin: 24px 0;
}

/* =============================================================================
   Responsive Adjustments - تعديلات الاستجابة
   ============================================================================= */
@media (max-width: 991.98px) {
    .section-card {
        margin-bottom: 16px;
    }
    
    .section-card .card-inner {
        padding: 16px;
    }
    
    .section-header {
        padding-bottom: 12px;
        margin-bottom: 16px;
    }
    
    .desc-add-form {
        padding: 15px;
    }
    
    .desc-item {
        padding: 10px 12px;
    }
}

@media (max-width: 575.98px) {
    .section-header .icon-box {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .desc-item .desc-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .switch-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
