/**
 * الملف: css/style.css
 * الوظيفة: الخطوط (Cairo) والتنسيقات العامة للموقع. الأصل: src/index.css في المشروع الأصلي.
 *   ألوان وخطوط الثيم (@theme) داخل index.php/index.html في <style type="text/tailwindcss"> لأن Tailwind يقرؤها من هناك.
 *   كلاسات Tailwind نفسها تعمل عبر @tailwindcss/browser 4.2.4 المحمّل في index.php.
 */
/* ===== بداية: الخطوط Cairo ===== */
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/cairo-v31-arabic-200.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/cairo-v31-arabic-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/cairo-v31-arabic-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/cairo-v31-arabic-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/cairo-v31-arabic-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/cairo-v31-arabic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/cairo-v31-arabic-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cairo';
  src: url('../fonts/cairo-v31-arabic-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/tajawal-v12-arabic-200.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/tajawal-v12-arabic-300.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/tajawal-v12-arabic-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/tajawal-v12-arabic-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/tajawal-v12-arabic-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/tajawal-v12-arabic-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('../fonts/tajawal-v12-arabic-900.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
/* ===== نهاية: الخطوط Cairo ===== */

/* ===== بداية: التنسيقات العامة ===== */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: #fdfcfb;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  direction: rtl;
}

/* Hide scrollbar for Chrome, Safari, Edge, Firefox */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.arabic-font {
  font-family: "Cairo", sans-serif;
}

.tajawal-font {
  font-family: "Tajawal", sans-serif;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #e5e7eb;
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #d1d5db;
}
/* ===== نهاية: التنسيقات العامة ===== */

/* ===== بداية: حركة الظهور (بديل مكتبة motion) ===== */
/* شفافية فقط: الحركة بـ transform تجعل النوافذ الثابتة (fixed) تلتصق بالأب بدل الشاشة */
@keyframes mf-anim-in { from { opacity: 0; } to { opacity: 1; } }
.mf-anim-in { animation: mf-anim-in .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .mf-anim-in { animation: none; } }
/* ===== نهاية: حركة الظهور ===== */

/* ===== بداية: أيقونات رسائل التنبيه (toast) ===== */
.mf-toast-icon { width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0; position: relative; display: inline-block; }
.mf-toast-success { background: #61d345; }
.mf-toast-success::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mf-toast-error { background: #ff4b4b; }
.mf-toast-error::before, .mf-toast-error::after { content: ""; position: absolute; left: 9px; top: 4px; width: 2px; height: 12px; background: #fff; transform: rotate(45deg); }
.mf-toast-error::after { transform: rotate(-45deg); }
.mf-toast-loading { border: 2px solid #e0e0e0; border-right-color: #616161; animation: mf-spin 1s linear infinite; }
@keyframes mf-spin { to { transform: rotate(360deg); } }
/* ===== نهاية: أيقونات رسائل التنبيه ===== */
