@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200..1000&family=Rubik:ital,wght@0,300..900;1,300..900&family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

html, body,h1, h2, h3, h4, h5, h6, p,span, div, a, ul, li, ol, input, textarea{
  font-family: 'Rubik', sans-serif !important;

}
.menu-inner .menu-item i {
  margin-inline-end: 0.5rem;
  text-align: center;
  width: 1.25em;
}

.btn-custom {
  background-color: var(--bs-primary) !important;
  border-color: var(--bs-primary) !important;
}

#loading {
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999999999999;
    background: var(--bs-body-bg);
    display: flex;
    justify-content: center;
    align-items: center;
}

div.dt-container div.dt-paging ul.pagination {
    justify-content: end;
}

/* إخفاء سهم Bootstrap الافتراضي لأزرار القوائم المنسدلة الأيقونية (مستخدمة في أكثر من صفحة) */
.dropdown-toggle-no-caret::after {
    display: none;
}

/* ===== مودال SweetAlert2 العادي =====
   العنوان الافتراضي 38px وهو ضخم جدًا لرسائل التأكيد القصيرة، بيخلي المودال
   يبان كأنه صفحة كاملة. بنصغّره لحجم منطقي مع باقي عناصر المودال. */
.swal2-popup:not(.swal2-toast) {
    width: 30rem;
    max-width: 92vw;
    padding: 1.5rem;
    font-size: 0.95rem;
}

.swal2-popup:not(.swal2-toast) .swal2-title {
    font-size: 1.25rem !important;
    font-weight: 600;
    line-height: 1.5;
    padding: 0;
    margin: 0 0 0.5rem;
}

.swal2-popup:not(.swal2-toast) .swal2-html-container {
    font-size: 0.95rem !important;
    line-height: 1.6;
    margin: 0.25rem 0 0;
}

.swal2-popup:not(.swal2-toast) .swal2-icon {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0.5rem auto 1rem;
    border-width: 3px;
}

.swal2-popup:not(.swal2-toast) .swal2-icon .swal2-icon-content {
    font-size: 2.2rem;
}

.swal2-popup:not(.swal2-toast) .swal2-actions {
    margin-top: 1.25rem;
    gap: 0.5rem;
}

/* ===== توست SweetAlert2 =====
   التوست الافتراضي بيتمدد بارتفاع الشاشة كلها تقريبًا (بسبب حاوية grid بتاعته)
   ويغطي جزءًا كبيرًا من الواجهة، وهو بيظهر بشكل متكرر جدًا داخل صفحة الحصة
   (كل تفاعل/حفظ)، فنضبطه ليكون إشعارًا جانبيًا صغيرًا لا يقطع عمل المدرس. */
.swal2-container.swal2-top-end,
.swal2-container.swal2-top-start {
    /* الحاوية بتاخد ارتفاع الشاشة كامل وبتمدد التوست معاها */
    height: auto;
    align-items: flex-start;
    /* من غير الهامش ده التوست بيتقصّ من فوق تحت الـ navbar الثابت */
    padding-top: 4.5rem;
    padding-inline-end: 1rem;
}

.swal2-popup.swal2-toast {
    height: auto !important;
    min-height: 0 !important;
    width: auto !important;
    max-width: 22rem;
    padding: 0.6rem 0.85rem !important;
    row-gap: 0;
    column-gap: 0.55rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.14);
}

.swal2-popup.swal2-toast .swal2-title {
    font-size: 0.85rem !important;
    font-weight: 500;
    line-height: 1.5;
    margin: 0 !important;
    padding: 0 !important;
    text-align: start;
}

/*
   الأيقونة: **متلمسهاش**.

   علامة الصح في SweetAlert2 مرسومة من دوائر وخطوط كل إحداثياتها بـ em
   نسبةً لخط الأيقونة، والمكتبة أصلًا بتحدد أيقونة التوست بـ 2em.
   أي width/height/font-size بنفرضه هنا بيكسر هندسة الرسم فالعلامة
   بتختفي وتفضل دايرة فاضية.

   اتجرّب أكتر من مرة (تصغير بـ width/height، وبعدين بـ font-size) —
   الاتنين كسروا العلامة. الحل النهائي: سيبها للمكتبة.
*/


.swal2-popup.swal2-toast .swal2-timer-progress-bar {
    height: 0.18rem;
}
