@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap'); /* RTL Support Base */ html[dir="rtl"] { text-align: right; } html[dir="ltr"] { text-align: left; } body { padding: 0; margin: 0; font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Arial", sans-serif; line-height: 1.6; color: #374151; } /* Arabic Typography Enhancements */ h1, h2, h3, h4, h5, h6 { font-family: 'Tajawal', sans-serif; font-weight: 700; line-height: 1.4; } h1 { font-size: 2em; margin-top: 0; } p { color: rgb(107, 114, 128); font-size: 15px; margin-bottom: 10px; margin-top: 5px; line-height: 1.8; } /* RTL Specific Adjustments */ [dir="rtl"] .space-x-2 > * + * { --tw-space-x-reverse: 1; margin-right: 0; margin-left: 0.5rem; } [dir="rtl"] .space-x-4 > * + * { --tw-space-x-reverse: 1; margin-right: 0; margin-left: 1rem; } [dir="rtl"] .space-x-6 > * + * { --tw-space-x-reverse: 1; margin-right: 0; margin-left: 1.5rem; } [dir="rtl"] .mr-2 { margin-right: 0; margin-left: 0.5rem; } [dir="rtl"] .mr-4 { margin-right: 0; margin-left: 1rem; } [dir="rtl"] .ml-4 { margin-left: 0; margin-right: 1rem; } /* Language Switcher Styles */ .lang-switcher { display: inline-flex; align-items: center; background: #f3f4f6; border-radius: 9999px; padding: 0.25rem; gap: 0.25rem; } .lang-btn { padding: 0.5rem 1rem; border-radius: 9999px; border: none; background: transparent; cursor: pointer; font-family: 'Tajawal', sans-serif; font-weight: 500; transition: all 0.3s ease; color: #6b7280; } .lang-btn.active { background: white; color: #2563eb; box-shadow: 0 1px 3px rgba(0,0,0,0.1); } .lang-btn:hover:not(.active) { color: #374151; } /* Card Component */ .card { max-width: 620px; margin: 0 auto; padding: 16px; border: 1px solid lightgray; border-radius: 16px; background: white; } .card p:last-child { margin-bottom: 0; } /* Arabic Text Justification */ .arabic-text { text-align: justify; text-justify: inter-word; word-spacing: normal; line-height: 1.8; } /* Smooth Scrolling for Arabic Content */ html { scroll-behavior: smooth; } /* Selection Color */ ::selection { background: #3b82f6; color: white; } /* Focus States for Accessibility */ *:focus-visible { outline: 2px solid #3b82f6; outline-offset: 2px; } /* Loading State for Language Switch */ .lang-loading { opacity: 0.7; pointer-events: none; transition: opacity 0.3s ease; }