@import 'bootstrap/dist/css/bootstrap.min.css';
/* أي تنسيقات تانية هنا */

body {
    /* font-family: 'Cairo', sans-serif !important; */
    font-family: 'Almarai', sans-serif !important;
}

/* ده هيحل مشكلة "الشاشة بتسود والموديل وراها" في الموبايل */
.modal {
    z-index: 1070 !important;
}
.modal-backdrop {
    z-index: 1060 !important;
}

/* حل إضافي للموبايل عشان الكيبورد مبيغطيش الموديل */
.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    box-shadow: 0 0 20px rgba(0,0,0,0.5) !important;
    border: 1px solid #25d366 !important; /* لون أخضر خفيف للواتساب */
}

/* إصلاح محاذاة السهم والنص في حقول الاختيار لنظام الـ RTL */
.micro-floating select.form-select.custom-form-element,
select.custom-form-element {
    padding-right: 1.8rem !important; /* مسافة أمان تمنع النص من الدخول تحت السهم يميناً */
    padding-left: 0.5rem !important;  /* مسافة مريحة من اليسار */
    background-position: left 0.5rem center !important; /* نقل السهم الافتراضي لليسار لو لم تكن مفعلة حزمة RTL كاملة */
}

/* إذا كان المتصفح يقرأ الـ RTL الخاص بـ Bootstrap 5 بشكل قياسي */
[dir="rtl"] .form-select, 
.dir-rtl .form-select {
    background-position: left 0.5rem center !important;
    padding-right: 1.8rem !important;
    padding-left: 0.5rem !important;
}

/* لموازنة السهم الصغير داخل حقول المواعيد (اليوم الرئيسي) */
.micro-floating select.form-select {
    font-size: 0.72rem !important;
}

/* الأزرار الصغيرة المضغوطة للموبايل والويب */
.btn-action-sm {
    display: inline-flex;
    align-items: center;
    gap: 4px; /* مسافة صغيرة جداً */
    padding: 0.4rem 0.75rem; /* بادينج صغير جداً لتوفير المساحة */
    font-size: 0.85rem; /* حجم خط مناسب ومقروء للموبايل */
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-decoration: none;
}

/* إخفاء شريط التمرير في الموبايل مع الحفاظ على ميزة السحب لجنب */
.scrollbar-hidden::-webkit-scrollbar {
    display: none;
}
.scrollbar-hidden {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* 🔵 ألوان صفحة الطلاب (مستوحاة من درجات الأزرق) */
.btn-student-primary { background-color: #0d6efd; color: #fff; }
.btn-student-primary:hover { background-color: #0b5ed7; color: #fff; }

.btn-student-outline { background-color: #fff; color: #0d6efd; border-color: #0d6efd; }
.btn-student-outline:hover { background-color: #f8f9fa; color: #0b5ed7; }

.btn-student-success { background-color: #3182ce; color: #fff; }
.btn-student-success:hover { background-color: #2b6cb0; color: #fff; }

.btn-student-archive { background-color: #6c757d; color: #fff; }
.btn-student-archive:hover { background-color: #5c636a; color: #fff; }

/* 🟢 ألوان صفحة المدرسين (مستوحاة من درجات الأخضر) */
.btn-teacher-primary { background-color: #1e4620; color: #fff; }
.btn-teacher-primary:hover { background-color: #153216; color: #fff; }

.btn-teacher-outline { background-color: #fff; color: #1e4620; border-color: #1e4620; }
.btn-teacher-outline:hover { background-color: #f4f6f4; color: #153216; }

.btn-teacher-success { background-color: #2e7d32; color: #fff; }
.btn-teacher-success:hover { background-color: #1b5e20; color: #fff; }

/* تأثيرات عامة عند الضغط على الموبايل */
.btn-action-sm:active {
    transform: scale(0.96);
}