/* style.css */
:root {
    /* تغيير اللون الأساسي */
    --bs-primary: #100199 !important;
    --bs-primary-rgb:16, 1, 153 !important;

    --bs-info: #5542FF !important;
    --bs-info-rgb:85, 66, 255 !important;

    --bs-light: #F2F2F2 !important;
    --bs-light-rgb:242, 242, 242 !important;

    --bs-dark: #000 !important;
    --bs-dark-rgb:0, 0, 0 !important;

    --bs-secondary: #A7A4A4 !important;
    --bs-secondary-rgb:167, 164, 164 !important;

    --bs-body-color: #263238;
    --bs-table-color: var(--bs-body-color);

    --bs-danger: #D90000 !important;
    --bs-danger-rgb:217, 0, 0 !important;

    --font-weight-medium: 500; /* تغيير الوزن لاحقًا */
}
/* تحديد القيم الوسيطة بين p-4 (1.5rem) و p-5 (3rem) */
.p-4-5 { padding: 2.25rem !important; }

/* التباعد الأفقي (Left & Right) */
.px-4-5 { 
    padding-left: 2.25rem !important; 
    padding-right: 2.25rem !important; 
}

/* التباعد الرأسي (Top & Bottom) */
.py-4-5 { 
    padding-top: 2.25rem !important; 
    padding-bottom: 2.25rem !important; 
}

/* الحشو العلوي */
.pt-4-5 { padding-top: 2.25rem !important; }

/* الحشو السفلي */
.pb-4-5 { padding-bottom: 2.25rem !important; }

/* الحشو من اليسار (يدعم RTL & LTR) */
.ps-4-5 { padding-left: 2.25rem !important; }

/* الحشو من اليمين (يدعم RTL & LTR) */
.pe-4-5 { padding-right: 2.25rem !important; }



/* يمكنك إضافة المزيد من التعديلات هنا */
body{
     font-family: 'Tajawal', sans-serif;
     background-color: #F2F2F2;
}
/* تطبيق خط Tajawal على جميع النصوص */
body, h1, h2, h3, h4, h5, h6, p, span, label, input, textarea, button, a {
    font-family: 'Tajawal', sans-serif !important;
    color: #263238;
}

.text-primary,.text-primary .form-label{
  color: var(--bs-primary) !important; /* استخدام لون Bootstrap الأساسي */
}
/* تحديد لون الـ placeholder */
input::placeholder,
textarea::placeholder {
    color: #BDBDBD !important; /* اللون المطلوب */
    opacity: 1 !important; /* اجعل اللون واضحًا */
}

/* للتأكد من التوافق مع المتصفحات المختلفة */
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
    color: #BDBDBD !important;
}

input::-ms-input-placeholder,
textarea::-ms-input-placeholder,
.input-group i {
    color: #BDBDBD !important;
}

.gx-6 > * {
    --bs-gutter-x: 3.7rem !important; /* أو أي قيمة أكبر من gx-5 */
}



.login-bg {
    background: url('img/background.png') no-repeat center center fixed;
    background-size: cover;
    align-items: center;
    justify-content: center;
}

.fs-18{
  font-size: 18px;
}


.fs-7{
  font-size: .875rem;
}


/* تنسيق الأيقونات */
.absolute-icon {
    position: absolute;
    top: 50%; /* محاذاة رأسية في منتصف الحقل */
    right: 10px; /* المسافة من الحافة اليمنى */
    transform: translateY(-50%);
    background-size: contain;
    background-repeat: no-repeat;
}

.icon{
  display: inline-block;
  width: 20px; /* حجم الأيقونة */
  height: 20px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle; /* لضمان المحاذاة مع النص */
}

.icon-person {
    background-image: url('img/person-md.svg'); /* استبدل هذا بمسار الأيقونة */
  width: 20px; /* حجم الأيقونة */
  height: 20px;
}

.icon-user{
   background-image: url('img/person-outline-lg.svg');

  width: 100px; /* حجم الأيقونة */
  height: 100px;
}
.user-id-outline{
  background-image: url('img/user-id-outline.svg');

  width: 51px; /* حجم الأيقونة */
  height: 51px;
}
.icon-file{
  background-image: url('img/icon-file.svg');

  width: 51px; /* حجم الأيقونة */
  height: 51px;
}
.card-text-outline{
  background-image: url('img/card-text-outline.svg');

  width: 51px; /* حجم الأيقونة */
  height: 51px;
}/* أيقونة البريد الإلكتروني */
.email-icon {
    background-image: url('img/mail-md.svg');
    width: 20px;
    height: 20px;
}

.profile-icon {
    background-image: url('img/profile-light-md.svg');
    width: 23px;
    height: 23px;
}
/* أيقونة البريد الإلكتروني */ 
/* أيقونة كلمة المرور */
.password-icon {
    background-image: url('img/password-md.svg');
    width: 35px;
    height: 35px;
}
.spacer-8{
    display: block;
    height: 16px;
}
.spacer-16{
    display: block;
    height: 16px;
}
.spacer-24{
    display: block;
    height: 24px;
}

.spacer-28{
    display: block;
    height: 28px;
}

.spacer-32{
    display: block;
    height: 32px;
}

.spacer-40{
    display: block;
    height: 40px;
}


.spacer-64{
    display: block;
    height: 64px;
}


.ps-7 {
    padding-right: 3rem !important; /* يمكنك تعديل القيمة */
}

.ps-8 {
    padding-right: 4rem !important; /* يمكنك تعديل القيمة */
}

form .form-label {
  font-weight: 500;
}
#membershipForm .text-primary input.form-control  {
    color: var(--bs-primary)  ; /* استخدام لون Bootstrap الأساسي */
    border-color: #aaa  ; /* ضبط لون الإطار إذا لزم الأمر */
    font-weight: var(--font-weight-medium)  ;
}
 
.is-invalid {
    border: 1px solid red !important; /* حدود حمراء */
    border-radius: 5px; /* زوايا مستديرة */
    background-color: #fff5f5  !important; /* خلفية خفيفة لتوضيح الخطأ */
}

.is-invalid:focus {
    outline: none; /* إزالة التأثير عند التركيز */
    box-shadow: 0 0 5px red; /* ظل أحمر عند التركيز */
}

.form-control.is-invalid, .was-validated .form-control:invalid {
    background-image: none; /* أزل الصورة */
}




.form-select.is-invalid:not([multiple]):not([size]), 
.form-select.is-invalid:not([multiple])[size="1"], 
.was-validated .form-select:invalid:not([multiple]):not([size]), 
.was-validated .form-select:invalid:not([multiple])[size="1"] {
    --bs-form-select-bg-icon: none; /* إزالة الصورة */
}

#national_id_container {
    direction: ltr; /* إجبار الاتجاه على اليسار إلى اليمين */
}

#national_id_container input {
    text-align: center; /* لضمان أن النص في المنتصف */
}

.form-check-input{
  border-color: #aaa  !important;
  cursor: pointer;
}

div:has(.form-check-input) label{
  cursor: pointer;
}


.form-check-input:checked {
    width: 16px !important;
    height: 16px !important;
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color:  var(--bs-primary) !important;
}

.nav-link:not(.text-danger) {
    color: var(--bs-dark) !important;
}
.nav-link.active {
    color: var(--bs-primary) !important; /* استخدام اللون الأساسي */
}
.nav-link:not(.text-danger):hover {
    color: var(--bs-primary) !important; /* الحفاظ على اللون الأساسي عند التمرير */
}
/* أول صف */
.dashboard-table .first-row th,
.dashboard-table .first-row td {
  padding-top: 1.25rem;
}

/* آخر صف */
.dashboard-table .last-row td {
  padding-bottom: 1.5rem;
}

.dashboard-table tr{
  border-color: #F2F1F1 !important;
}
.dashboard-table td,.dashboard-table th{
  padding : 15px 0;
}
 
.dashboard-table th {
  font-weight: normal !important;
}

.no-outline:focus {
  outline: none; /* إزالة الحدود */
  box-shadow: none; /* إزالة أي ظل قد يكون موجودًا */
}

.input-group-text{
  color: var(--bs-secondary) !important; /* استخدام اللون الأساسي */
}

.bg-primary .btn-close-white{ 
    background-color: transparent;
    border: none;
    color: #fff;
    line-height: 1;
    opacity: 1;
    cursor: pointer; 
}
 
.bg-primary-lighter{
    background-color: #1B02FF !important;
}


.btn-light {
    background-color: white !important;
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* تأثير عند تمرير الماوس (hover) */
.btn-light:hover, .btn-light:hover span{
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
}

/* تأثير عند الضغط (active) */
.btn-light:active, .btn-light:focus {
    background-color: var(--bs-primary) !important;
    color: white !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 5px rgba(var(--bs-primary-rgb), 0.5);
}


/* الحالة الأساسية */
.btn-primary {
    background-color: #1B02FF !important;
    color: white !important;
    border-color: #1B02FF !important;
    transition: background-color var(--bs-transition-duration) ease-in-out, 
            color var(--bs-transition-duration) ease-in-out, 
            border-color var(--bs-transition-duration) ease-in-out;
}

.btn-primary span{
  color: white !important;
}

/* لون أغمق من primary */
.btn-primary-darker {
    background-color: #100199 !important;
}

.bg-danger-darker{
  background-color: #8A1717 !important;
}

.text-danger-darker{
  color: #8A1717 !important;
}

/* تأثير عند تمرير الماوس: يتحول إلى `btn-light` */
.btn-primary:hover, .btn-primary:hover span {
    background-color: white !important;
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
}

/* تأثير عند الضغط (active) أو التركيز (focus) */
.btn-primary:active, .btn-primary:focus {
    background-color: white !important;
    color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    box-shadow: 0 0 5px rgba(27, 2, 255, 0.5); /* تأثير ظل */
}

/* تأثير عند الضغط (active) أو التركيز (focus) */
.btn-primary:active span, .btn-primary:focus span{
    color: var(--bs-primary) !important;
}

 
 .timeline {
        position: relative;
        padding-left: 20px;
        padding-right: 20px;
    }

    .timeline-item {
        position: relative;
        padding-right: 25px;
        padding-bottom: 15px; 
        align-items: flex-start;
    }

    .timeline-dot {
        position: absolute;
        right: -8px; /* نقل النقطة إلى الجهة اليمنى */
        top: 9px;
        width: 10px;
        height: 10px;
        background: #A7A4A4; 
        border-radius: 50%;
    }

    .timeline-line {
        position: absolute;
        right: -4px; /* نقل الخط إلى الجهة اليمنى */
        top: 10px;
        width: 2px;
        height: 100%;
        background: #A7A4A4;
    }

   

    .timeline-item.done .timeline-dot{
        background: #001f99;
    }
    .timeline-item.done .timeline-line{
        background: #001f99;
    }

    .timeline-item.rejected .timeline-dot{
        background: #D90000;
    }
    .timeline-item.rejected .timeline-line{
        background: #D90000;
    }



 /* تعديل شكل حقل الإدخال لجعله يشبه الصورة */
.select2-container .select2-selection--single {
    height: 40px !important; /* تحديد ارتفاع متناسق */ 
    background-color: rgba(242, 242, 242 !important, 1) !important;
    padding: 8px 12px !important; /* تحسين التباعد */
    display: flex;
    align-items: center;
}

/* تعديل الأيقونة الخاصة بالقائمة المنسدلة */
.select2-container .select2-selection__arrow {
    top: 50% !important;
    transform: translateY(-50%) !important;
}

/* تحسين عرض النص داخل `Select2` */
.select2-container .select2-selection__rendered {
    display: none;
}

.bg-primary .form-check-input{
    background-color:inherit;
    border: 2px solid #fff !important;
    width: .85em;
    height: .85em;
    margin-top: .45em;
}