/* إصلاحات لدعم اللغة العربية والعرض من اليمين إلى اليسار */ /* نقل الشريط الجانبي من اليسار إلى اليمين */ [data-testid="stSidebar"] { right: 0; left: unset !important; } section[data-testid="stSidebarContent"] { direction: rtl !important; text-align: right !important; } /* تعديل الاتجاه للمحتوى الرئيسي */ .main .block-container { direction: rtl; text-align: right; margin-left: 0; margin-right: 21rem; max-width: calc(100% - 21rem); } @media (max-width: 768px) { .main .block-container { margin-right: 0; max-width: 100%; } } /* تصحيح اتجاه النصوص والعناصر */ .streamlit-expanderHeader, .stRadio > div, .stCheckbox > div, .stSelectbox > div, .stTextInput > div { direction: rtl; text-align: right; } /* تعديل قائمة الخيارات في streamlit_option_menu */ .nav-link { text-align: right !important; } /* تحسين ظهور الجداول */ [data-testid="stTable"] { direction: rtl; } /* تصحيح أزرار الأرقام والتواريخ */ .stNumberInput [data-baseweb="input"], .stDateInput [data-baseweb="input"] { direction: ltr; } /* جعل عناصر الملاحظات والخانات النصية تدعم العربية */ [data-testid="stMarkdown"], textarea { direction: rtl; text-align: right; } /* تحسين ظهور قوائم الاختيار */ .stMultiSelect div:first-child, .stSelectbox div:first-child { text-align: right; }