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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;700&display=swap");
|
| 2 |
+
|
| 3 |
+
/* تحديد لوحة الألوان لتناسق التصميم */
|
| 4 |
+
:root {
|
| 5 |
+
--primary-purple: #5046e5; /* بنفسجي أساسي للأزرار، السلايدر، الحدود */
|
| 6 |
+
--dark-purple: #342d98; /* بنفسجي داكن للخلفيات، العناوين */
|
| 7 |
+
--light-purple: #8e87d1; /* بنفسجي أفتح للأزرار الثانوية */
|
| 8 |
+
--text-color-dark: #191996; /* بنفسجي داكن جداً للنصوص على الخلفية الفاتحة */
|
| 9 |
+
--text-color-light: #ffffff; /* أبيض للنصوص على الخلفية الداكنة */
|
| 10 |
+
--background-light: #f9fafb; /* خلفية فاتحة جداً للتطبيق */
|
| 11 |
+
--border-color: #e5e7eb; /* لون حدود خفيف */
|
| 12 |
+
--shadow-color: rgba(0, 0, 0, 0.08); /* لون الظل */
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
/* الأساسيات: الجسم والحاوية الرئيسية */
|
| 16 |
+
body {
|
| 17 |
+
background: var(--background-light) !important;
|
| 18 |
+
color: var(--text-color-dark) !important; /* لون النص الافتراضي */
|
| 19 |
+
font-family: "Noto Sans Arabic", sans-serif !important;
|
| 20 |
+
}
|
| 21 |
+
|
| 22 |
+
.gradio-container {
|
| 23 |
+
background: var(--background-light) !important;
|
| 24 |
+
font-family: "Noto Sans Arabic", sans-serif !important;
|
| 25 |
+
color: var(--text-color-dark) !important; /* ضمان أن النص الرئيسي بنفسجي */
|
| 26 |
+
/* إزالة تحديد العرض الأقصى إذا كان موجوداً لمنع القص */
|
| 27 |
+
max-width: none !important;
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/* عنوان التطبيق الرئيسي (H1) */
|
| 31 |
+
.gradio-container h1 {
|
| 32 |
+
color: var(--dark-purple) !important; /* جعل العنوان بنفسجي داكن وواضح */
|
| 33 |
+
text-align: center !important;
|
| 34 |
+
margin-top: 30px !important;
|
| 35 |
+
margin-bottom: 30px !important;
|
| 36 |
+
font-size: 32px !important; /* حجم أكبر للعنوان */
|
| 37 |
+
font-weight: 700 !important;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
/* البلوكات والحاويات (اللوحات التي تحتوي على المكونات) */
|
| 41 |
+
.block.svelte-11xb1hd, .gr-box { /* إضافة .gr-box لمزيد من الثبات */
|
| 42 |
+
background: var(--text-color-light) !important; /* خلفية بيضاء للوحات */
|
| 43 |
+
border: 1px solid var(--border-color) !important;
|
| 44 |
+
border-radius: 12px !important; /* حواف مستديرة أكثر */
|
| 45 |
+
overflow: hidden !important; /* لتجنب مشاكل التجاوز */
|
| 46 |
+
box-shadow: 0 4px 10px var(--shadow-color) !important; /* إضافة ظل خفيف */
|
| 47 |
+
padding: 20px !important; /* مسافة داخلية للوحات */
|
| 48 |
+
margin-bottom: 20px !important; /* مسافة بين اللوحات */
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
/* تعطيل خلفية div.svelte-633qhp (الحاوية الداخلية للتخطيط) */
|
| 52 |
+
div.svelte-633qhp {
|
| 53 |
+
background: none !important; /* إزالة أي خلفية داخلية محتملة */
|
| 54 |
+
box-shadow: none !important;
|
| 55 |
+
border: none !important;
|
| 56 |
+
border-radius: 0 !important;
|
| 57 |
+
padding: 0 !important;
|
| 58 |
+
margin: 0 !important;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
/* تسميات المدخلات والمخرجات (مثل "النص", "الملخص") */
|
| 62 |
+
/* استخدام label.gr-label كمحدد أكثر استقراراً بالإضافة إلى المحدد القديم */
|
| 63 |
+
label.gr-label, span.svelte-1gfkn6j {
|
| 64 |
+
background: var(--dark-purple) !important; /* خلفية بنفسجية داكنة */
|
| 65 |
+
color: var(--text-color-light) !important; /* نص أبيض لتباين جيد */
|
| 66 |
+
font-size: 14px !important; /* حجم خط مناسب */
|
| 67 |
+
text-align: center !important;
|
| 68 |
+
display: block !important;
|
| 69 |
+
margin-bottom: 15px !important; /* مسافة تحت التسمية */
|
| 70 |
+
padding: 8px 15px !important; /* بادينغ (مسافة داخلية) جيد */
|
| 71 |
+
border-radius: 8px !important; /* حواف مستديرة */
|
| 72 |
+
width: fit-content !important; /* عرض يناسب المحتوى */
|
| 73 |
+
margin-inline-start: auto !important; /* توسيط لـ RTL */
|
| 74 |
+
margin-inline-end: auto !important; /* توسيط لـ RTL */
|
| 75 |
+
font-weight: 700 !important; /* نص سميك */
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
/* حقول النص (المساحات النصية) */
|
| 79 |
+
textarea.svelte-173056l,
|
| 80 |
+
.gr-textbox > textarea, /* محدد أكثر استقراراً للمساحات النصية */
|
| 81 |
+
input.svelte-173056l.svelte-173056l { /* يشمل حقول الإدخال النصية العامة */
|
| 82 |
+
background: var(--background-light) !important; /* خلفية فاتحة */
|
| 83 |
+
color: var(--text-color-dark) !important; /* نص بنفسجي داكن */
|
| 84 |
+
border: 1px solid var(--border-color) !important; /* حدود خفيفة */
|
| 85 |
+
border-radius: 8px !important; /* حواف مستديرة */
|
| 86 |
+
padding: 12px 15px !important; /* بادينغ (مسافة داخلية) */
|
| 87 |
+
direction: rtl !important;
|
| 88 |
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05) !important; /* ظل داخلي خفيف */
|
| 89 |
+
outline: none !important; /* إزالة الحدود عند التركيز */
|
| 90 |
+
transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
|
| 91 |
+
}
|
| 92 |
+
textarea.svelte-173056l:focus, .gr-textbox > textarea:focus {
|
| 93 |
+
border-color: var(--primary-purple) !important; /* حدود بنفسجية عند التركيز */
|
| 94 |
+
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 3px rgba(80, 70, 229, 0.2) !important;
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
/* مربعات الأرقام (مثل 150, 7, 0.8) */
|
| 99 |
+
input[type="number"].svelte-10lj3xl,
|
| 100 |
+
.gr-number-input input[type="number"] { /* محدد أكثر استقراراً */
|
| 101 |
+
background: var(--primary-purple) !important; /* خلفية بنفسجية أساسية */
|
| 102 |
+
color: var(--text-color-light) !important; /* نص أبيض */
|
| 103 |
+
border: none !important;
|
| 104 |
+
border-radius: 8px !important;
|
| 105 |
+
width: 70px !important; /* عرض أكبر قليلاً */
|
| 106 |
+
text-align: center !important;
|
| 107 |
+
padding: 8px 5px !important;
|
| 108 |
+
font-weight: bold !important;
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
/* زر الريست (إعادة الضبط/التحديث) بجانب مربعات الأرقام */
|
| 112 |
+
.reset-button.svelte-10lj3xl,
|
| 113 |
+
.gr-number-input button { /* محدد أكثر استقراراً */
|
| 114 |
+
padding: 6px 10px !important;
|
| 115 |
+
font-size: 14px !important;
|
| 116 |
+
background: transparent !important;
|
| 117 |
+
border: 1px solid var(--primary-purple) !important; /* حدود بنفسجية */
|
| 118 |
+
color: var(--primary-purple) !important; /* نص بنفسجي */
|
| 119 |
+
border-radius: 8px !important;
|
| 120 |
+
margin-inline-start: 10px !important; /* مسافة عن حقل الرقم */
|
| 121 |
+
cursor: pointer;
|
| 122 |
+
transition: background-color 0.2s ease, color 0.2s ease !important;
|
| 123 |
+
}
|
| 124 |
+
.reset-button.svelte-10lj3xl:hover, .gr-number-input button:hover {
|
| 125 |
+
background-color: var(--primary-purple) !important;
|
| 126 |
+
color: var(--text-color-light) !important;
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
/* السلايدر (المسار والقبضة) */
|
| 130 |
+
input[type="range"] {
|
| 131 |
+
accent-color: var(--primary-purple) !important; /* لون المسار والمؤشر */
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
/* معالجة مشكلة الحاوية المتكررة (أقل أهمية مع التغييرات الأخرى) */
|
| 135 |
+
.form.svelte-633qhp {
|
| 136 |
+
overflow: visible !important;
|
| 137 |
+
margin: 0 !important;
|
| 138 |
+
padding: 0 !important;
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
/* الأزرار: Clear و Submit */
|
| 142 |
+
button.lg.primary, .gr-button.primary { /* زر Submit */
|
| 143 |
+
background-color: var(--primary-purple) !important;
|
| 144 |
+
color: var(--text-color-light) !important;
|
| 145 |
+
border: none !important;
|
| 146 |
+
border-radius: 8px !important;
|
| 147 |
+
padding: 12px 25px !important;
|
| 148 |
+
font-weight: bold !important;
|
| 149 |
+
font-size: 16px !important;
|
| 150 |
+
cursor: pointer;
|
| 151 |
+
transition: background-color 0.2s ease, transform 0.1s ease !important;
|
| 152 |
+
}
|
| 153 |
+
button.lg.primary:hover, .gr-button.primary:hover {
|
| 154 |
+
background-color: #6a5eff !important; /* بنفسجي أفتح عند التحويم */
|
| 155 |
+
transform: translateY(-1px);
|
| 156 |
+
}
|
| 157 |
+
|
| 158 |
+
button.lg.secondary, .gr-button.secondary { /* زر Clear */
|
| 159 |
+
background-color: var(--light-purple) !important; /* بنفسجي أفتح للزر الثانوي */
|
| 160 |
+
color: var(--text-color-light) !important;
|
| 161 |
+
border: none !important;
|
| 162 |
+
border-radius: 8px !important;
|
| 163 |
+
padding: 12px 25px !important;
|
| 164 |
+
font-weight: bold !important;
|
| 165 |
+
font-size: 16px !important;
|
| 166 |
+
cursor: pointer;
|
| 167 |
+
transition: background-color 0.2s ease, transform 0.1s ease !important;
|
| 168 |
+
}
|
| 169 |
+
button.lg.secondary:hover, .gr-button.secondary:hover {
|
| 170 |
+
background-color: #a7a2df !important; /* بنفسجي أفتح عند التحويم */
|
| 171 |
+
transform: translateY(-1px);
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
/* لضمان اتجاه النص من اليمين لليسار */
|
| 175 |
+
.rtl-text {
|
| 176 |
+
direction: rtl;
|
| 177 |
+
text-align: right;
|
| 178 |
+
}
|
| 179 |
+
|
| 180 |
+
/* تحسينات إضافية للمظهر العام */
|
| 181 |
+
/* محاذاة العناوين الفرعية (labels) والتحكم في المساحات */
|
| 182 |
+
.gr-form-group {
|
| 183 |
+
display: flex;
|
| 184 |
+
flex-direction: column;
|
| 185 |
+
align-items: center; /* لتوسيط المكونات داخل مجموعاتها */
|
| 186 |
+
gap: 10px; /* مسافة بين العناصر داخل المجموعة */
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
/* قد تحتاج لتعديل هوامش معينة بناءً على المحتوى الفعلي */
|
| 190 |
+
.gr-button-group {
|
| 191 |
+
display: flex;
|
| 192 |
+
justify-content: center; /* توسيط الأزرار */
|
| 193 |
+
gap: 15px; /* مسافة بين الأزرار */
|
| 194 |
+
margin-top: 20px; /* مسافة فوق مجموعة الأزرار */
|
| 195 |
+
}
|