[dir="ltr"] .phone{
  display: flex;
  flex-direction: row-reverse;

}


[dir="ltr"] .form-check{
  padding-left: 2em;
  padding-right: 0em;
}


[dir="ltr"] .circle-effect{
 
left: -33.5px !important;
 right:auto !important;

}


[dir="ltr"] .form-check .form-check-input {
  float: left !important;
  margin-left: -2em !important;
}

[dir="ltr"] .dropdown-toggle{
  padding-left: 12px !important;
  padding-right: 40px !important;
}

[dir="ltr"] .custom-dropdown .dropdown-toggle::before{
  right: 14px !important;
  left: auto !important;

}

[dir="ltr"] .custom-dropdown .dropdown::before {
  left: auto;
  right: 14px !important;
}

[dir="ltr"] .custom-dropdown .dropdown-menu .dropdown-item.selected::before {

  left: auto !important;
  right: 12px !important;
}


[dir="ltr"] .dropdown-item {
  text-align: start !important;
}




/* Base style */
.nav-item,
.custom-tab {
  position: relative;
  display: inline-flex;
  height: 72px;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-xs);
  background-color: transparent;
  border-radius: 4px;
  color: #0D121C;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
      align-content: center !important;
    padding-left: 12px !important;
    padding-right: 12px!important;
}

/* Padding only for custom tabs */
.custom-tab {
  padding: 8px 16px;
}

/* ✅ Hover — green background + white text */
.nav-item:hover .nav-link,
.nav-item .nav-link:hover,
.custom-tab:hover {
  background-color: #176A4C;
  color: #FFFFFF !important;
}

/* ✅ Pressed (mousedown) — darker green */
.nav-item:active .nav-link,
.nav-item .nav-link:active,
.custom-tab:active {
  background-color: #104631 !important;
  color: #FFFFFF !important;
}

/* ✅ Focus — black outline + green underline */
.nav-item:focus .nav-link,
.nav-item .nav-link:focus,
.custom-tab:focus {
  outline: 2px solid #161616 !important;
  outline-offset: 2px;
  background-color: #1B8354;
  color: #FFFFFF !important;
}

.nav-item:focus .nav-link::after,
.nav-item .nav-link:focus::after,
.custom-tab:focus::after {
  content: "";
  display: block;
  width: calc(100% - 16px);
  height: 6px;
  border-radius: 999px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #54C08A; /* ✅ Green underline on focus */
}

/* ✅ Active (current page) */
.nav-item.active .nav-link,
.custom-tab.active {
  color: #0D121C;
  font-weight: 700;
}

/* ✅ Underline for active */
.nav-item.active .nav-link::after,
.custom-tab.active::after {
  content: "";
  display: block;
  width: calc(100% - 16px);
  height: 8px;
  border-radius: 999px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #54C08A;
}

/* ✅ Underline preview when hovering */
.nav-item .nav-link:hover::after,
.custom-tab:hover::after {
  content: "";
  display: block;
  width: calc(100% - 16px);
  height: 6px;
  border-radius: 999px;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #54C08A;
}

.notification-info{
  background-color: #EFF8FF;
  color: #175CD3;
  border-bottom: #1570EF solid 2px;
  border-radius: 0px 0px 2px 2px;
}

.notification-warning {
    background-color: #FFFAEB;
    color: #B54708;
    border-bottom: #F79009 solid 2px;
    border-radius: 0px 0px 2px 2px;
}

.notification-danger {
    background-color: #FEF3F2;
    color: #B42318;
    border-bottom: #F04438 solid 2px;
    border-radius: 0px 0px 2px 2px;
}

.notification{
  background-color: #FEF3F2;
  color: #B42318;
  border-bottom: #E4685F solid 2px;
  border-radius: 0px 0px 2px 2px;
}
.upload-file{
  background-color:#F3F4F6 ;
  padding: 8px;
  color: #161616;

  border-radius: 4px;
margin-top: 16px;
  border: #D2D6DB solid 1px;
  font-size: 14px;
  font-weight: 500;
}

.upload-file-error{
  background-color:#F3F4F6 ;
 
  color: #161616;

  border-radius: 4px;
margin-top: 16px;
  border:var(--bs-danger) solid 1.5px;
  font-size: 14px;
  font-weight: 500;

}/* Remove Bootstrap's default caret */
.dropdown-toggle::after {
  display: none !important;
}

/* Base toggle button */
.custom-dropdown .dropdown-toggle {
  position: relative;
  background-color: #fff;
  border: 1px solid #9DA4AE;
  border-radius: 5px;
  color: var(--bs-secondary-color);
  font-size: 1rem;
  line-height: 1.5;
  text-align: right; /* RTL */
  padding-right: 12px;
  padding-left: 40px; /* space for arrow */
  cursor: pointer;
  transition: border-color 0.3s ease;
}

/* Base toggle button */
.custom-dropdown .dropdown-toggle:hover {
  
  border-color: #0D121C;
  
}



/* ▼ Default arrow (down) */
.custom-dropdown .dropdown-toggle::before {
  content: "";
  position: absolute;
  left: 14px; /* RTL: arrow on left */
  top: 50%;
  width: 10px;
  height: 10px;
  border-left: 2px solid #0D121C;
  border-bottom: 2px solid #0D121C;
  transform: translateY(-50%) rotate(-45deg); /* ▼ */
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ▲ When dropdown opens (rotates arrow) */
.custom-dropdown.show > .dropdown-toggle::before {
  transform: translateY(-50%) rotate(135deg); /* ▲ */
}

/* Hover effect */
.custom-dropdown .dropdown-toggle:hover::before {
  border-color: #0D121C;
}

/* ===========================
   Dropdown Menu & Items
   =========================== */
.custom-dropdown .dropdown-menu {
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 8px;
  background-color: #fff;
}

.custom-dropdown .dropdown-item {
  position: relative;
  padding: 10px 40px 10px 16px;
  font-size: 15px;
  color: #161616;
  transition: background-color 0.2s ease;
}

/* Check mark for selected item */
.custom-dropdown .dropdown-item.selected::before {
  content: "✓";
  position: absolute;
  left: 12px;
  font-size: 14px;
  color: #0D121C;
}

/* Hover item */
.custom-dropdown .dropdown-item:hover {
  background-color: #F3F4F6;
  color: #0D121C;
}




.user-img {
  border-radius: 50%;
  overflow: hidden;
}
.user-img.size-s {
  width: 90px;
  height: 90px;
}
.user-img.size-m {
  width: 120px;
  height: 120px;
}

.user-img.size-l {
  width: 140px;
  height: 140px;
}

.user-img img {
  transition: filter 0.5s ease;
}

.zoom-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  /* Zoom level */
}

.icon-circle {
  width: 48px;
  height: 48px;
  background-color: #e8f5ef;
  /* light green background */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1b8354;
  /* main green icon color */
  font-size: 25px;
}

.icon-circle.lg {
  width: 62px;
  height: 62px;
  font-size: 28px;
}

.icon-circle.danger {
  color: #912018;
  background-color: #fef3f2;
}
/* شكل السويتش الأساسي */
.custom-switch-rtl .form-check-input {
  width: 50px;
  height: 28px;
  background-color: #fff;
  border: none;
  border-radius: 50px;
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 1);
  direction: rtl;
  /* اتجاه السويتش */
}

/* الزر الداخلي (الدائرة) */
.custom-switch-rtl .form-check-input::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  /* تبدأ من اليمين */
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background-color: #1b1b1b;
  border-radius: 50%;
  transition: transform 0.3s ease, background-color 0.3s ease, right 0.3s ease;
}

/* عند التفعيل */
.custom-switch-rtl .form-check-input:checked {
  background-color: #145c43;
  box-shadow: 0 0 0 1px #145c43;
}

.custom-switch-rtl .form-check-input:checked::before {
  right: 26px;
  /* تتحرك إلى اليسار عند التفعيل */
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* عند الضغط */
.custom-switch-rtl .form-check-input:active::before {
  transform: translateY(-50%) scale(1.1);
}

/* QR Code Styling */
.qr-code img {
  max-width: 120px;
  border: 4px solid #165f45;
  padding: 8px;
  border-radius: 0.75rem;
}

/* Card Background Styling */
.bg-card {
  background-image: url(../img/bg-card.svg);
  background-repeat: no-repeat;
  background-size: 133%;
  background-position: -53px -25px;
}

.interactive-card {
  transition: transform 0.3s ease, box-shadow 0.4s ease;
  border-radius: 1rem;
  cursor: pointer;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.04);
}

.interactive-card:hover {
  transform: scale(1.05) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* عند الضغط */
.interactive-card:active {
  transform: scale(0.97) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.custom-tabs .nav-link {
  text-align: center;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-weight: 400;
  background-color: #f3f4f6;
  /* اللون الرمادي الفاتح */
  color: #111827;
  /* لون النص */
  transition: all 0.3s ease;
}

.custom-tabs .nav-link:hover {
  opacity: 0.9;
}

/* Modal handle bar */
.modal-handle {
  width: 40px !important;
  height: 5px !important;
  background-color: #ccc !important;
  border-radius: 5px !important;
}

/* Animate backdrop smoothly */
.modal-backdrop {
  transition: opacity 0.4s ease, backdrop-filter 0.4s ease;
  opacity: 0;
  backdrop-filter: blur(0px);
}

.modal-backdrop:not(.show) {
  backdrop-filter: blur(0px);
  background-color: rgba(0, 0, 0, 0); /* fully transparent */
}
/* When modal is open */
.modal.show ~ .modal-backdrop,
.modal.fade.show + .modal-backdrop,
.modal-backdrop.show {
  opacity: 1 !important;
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.281);
}

.modal-dialog {
  align-content: end !important;
}

/* Bottom sheet animation */
.bottom-sheet .modal-dialog {
  transform: translateY(20%) !important;
  transition: transform 0.7s ease-in-out !important;
}

.bottom-sheet.show .modal-dialog {
  transform: translateY(0%) !important;
  pointer-events: auto !important;
}

/* Modal content rounded top and scroll */
.bottom-sheet .modal-content {
  border-radius: 1.5rem 1.5rem 0 0 !important;
  height: auto !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
}

.clickable-link {
  display: block;
  padding: 0.75rem 1.5rem;
  text-align: right;
  text-decoration: none;
  color: inherit;
  border-radius: 0.5rem;
}

.clickable-link:focus,
.clickable-link:focus-visible {
  outline: 2px solid #161616;
}

.card-scale-animate {
  opacity: 0;
  transform: scale(0.95);
  animation: scaleUp 0.6s ease-out 1s forwards;
  /* 1s delay */
}

@keyframes scaleUp {
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

.green {
  display: inline-block;
  /* Required for text clip */
  background: linear-gradient(-45deg, #e6c75e, #e5b800, #cc9200, #e6c75e);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 2s ease infinite;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.green {
  display: inline-block;
  /* Required for text clip */
  background: linear-gradient(-45deg, #e6c75e, #e5b800, #cc9200, #e6c75e);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient 4s ease infinite;
}

.card-gradient-border {
  position: relative;
  border-radius: 20px;
  padding: 1px;
  background: white;
  /* Card inner bg */
  z-index: 1;
}

.s14 {
  font-size: 14px !important;
}
.card-gradient-border::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(-45deg, #ffd23f, #e5b800, #a3780c, #e6c75e);
  background-size: 400% 400%;
  animation: gradient-border 7s ease infinite;
}

.start-70 {
  right: 70% !important;
}
@keyframes gradient-border {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #198754;
  border-radius: 50%;
  padding: 10px;
  width: 40px;
  height: 40px;
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-control-prev {
  left: 1rem;
}

.parent-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.flashlight-glow {
  width: 70%;
  height: 70%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, #d6f5e5 0%, rgba(184, 234, 203, 0.2) 70%);
  border-radius: 50%;
  box-shadow: 0 0 40px 15px rgba(184, 234, 203, 0.4);
  animation: smoothGlow 3s ease-in-out infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes smoothGlow {
  0% {
    box-shadow: 0 0 30px 10px rgba(184, 234, 203, 0.4);
    transform: translate(-50%, -50%) scale(1);
  }

  50% {
    box-shadow: 0 0 60px 25px rgba(184, 234, 203, 0.7);
    transform: translate(-50%, -50%) scale(1.05);
  }

  100% {
    box-shadow: 0 0 30px 10px rgba(184, 234, 203, 0.4);
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 768px) {
  .flashlight-glow {
    width: 70%;
    height: 70%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }


  /*
  
  .text-front,
  .text-behind {
    top: 30%;
    font-size: 1.5rem;
  }

  .text-front {
    right: 11% !important;
    width: fit-content;
    z-index: 2;
  }
  
  */
  
}

@media (max-width: 440px) {
  .img {
    background-size: 507px !important;
  }

  .img-container {
    height: 350px;
  }
}
 

.img-container {
  /* make it positioning context */
  background-color: #fff;
  border-radius: 20px;
  border: solid #d2d6db 1px;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /* match your image height */
}

.img-container {
  aspect-ratio: 1 / 1;
  max-height: 500px;
  max-width: 540px;
}

.border2 {
  background-color: #fff;
  border-radius: 20px;
  border: solid #d2d6db 1px;

  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.img  {
 
  height: 90%;
  position: absolute;
  top: 55%;
  left: 47%;
  transform: translate(-50%, -50%);
  z-index: 3
}

.text-front,
.text-behind {
  font-size: clamp(1rem, 5vw, 3rem);
  word-wrap: break-word;
  right: 0%;
  margin: 0px 22px;
  z-index: 2;

}


 

.text-front {
  font-size: clamp(0.5rem, 5vw, 2rem);
  margin: 0px 0px 0px 0px;

}

.text-behind {
 
  font-size: clamp(1rem, 5vw, 3rem);
  color: #9c7a38;
  margin: 70px 0px 20px 0px;
  
}
 

.fade-in {
  opacity: 0;
  animation: fadeIn 2s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.cursor {
  border-left: 3px solid rgba(0, 0, 0, 0.6);
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%,
  100% {
    border-color: rgba(0, 0, 0, 0.6);
  }

  50% {
    border-color: transparent;
  }
}

.link {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  text-align: right;
  color: #384250;
  text-decoration: none;
  transition: color 0.2s ease, border 0.2s ease;
  outline: none;
  padding: 2px 4px;
  /* Optional: small padding for focus ring */
}

.link:hover {
  color: #6c737f;
  text-decoration: underline;
}

.link:active {
  color: #9da4ae;
}

.link:focus {
  border: 2px solid #161616;
  border-radius: 4px;
  /* Optional: rounded corners */
}

.notification-success{

  background-color:#ECFDF3;
  color: #067647;
  border-bottom: #63BE94 solid 2px;
  border-radius: 0px 0px 2px 2px;
}

.ltr-phone{ 
  display: flex;
  flex-direction: row-reverse;

}
.ltr-dropdown{
  padding-left: 12px !important;
  padding-right: 40px !important;
}


.custom-dropdown .ltr-dropdown::before {
  left: auto;
  right: 14px !important;
}

.custom-dropdown .dropdown-menu.ltr-menu .dropdown-item.selected::before {

  left: auto !important;
  right: 12px !important;
}


.form-check .form-check-input.ltr-check {
  float: left !important;
  margin-left: -2em !important;
}


.form-check.ltr-form-check  {
   padding-left: 2em;
}


.circle-effect.ltr-circle{

left: -31.5px !important;
  right:auto !important;
}


/* [dir="ltr"] .form-radio {
  flex-flow: row-reverse;
} */

.form-radio {
  position: relative;
  /* required for absolute .circle-effect */
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
  direction: rtl;
  border-radius: 10px;
  transition: box-shadow 0.2s ease, outline-offset 0.2s ease, background-color 0.2s ease;
  padding: 8px;
}

/* --- visually hide input but keep it accessible --- */
/* recommended pattern for accessible custom controls */
.form-radio input[type="radio"] {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* decorative radio circle */
.form-radio-circle,
.form-radio-circle::after {
  transition: all 0.2s ease-in-out;
}

.form-radio-circle {
  width: 28px;
  height: 28px;
  border: 1px solid #6c737f;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  background: transparent;
  flex: 0 0 auto;
}

/* checked visual */
.form-radio input[type="radio"]:checked+.form-radio-circle {
  border-color: #2e7d5a;
}

.form-radio input[type="radio"]:checked+.form-radio-circle::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 16px;
  height: 16px;
  background-color: #2e7d5a;
  border-radius: 50%;
}

/* label text color */
.form-radio-label {
  color: #1d1d1d;
  z-index: 2;
}

/* change label color when checked */
.form-radio input[type="radio"]:checked~.form-radio-label {
  color: #2e7d5a;
}

/* pressed states */
.form-radio:active .form-radio-circle::after {
  background-color: #166a45;
}


.form-radio-circle {
  width: 28px;
  height: 28px;
  border: 1px solid #6c737f;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  background: transparent;
  flex: 0 0 auto;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}


.form-radio input[type="radio"]:focus-visible + .form-radio-circle::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 36px;
  height: 36px;
  border: 2px solid #000; 
  border-radius:  0px;
  box-sizing: border-box;
}

.form-radio input[type="radio"]:focus + .form-radio-circle::before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  width: 36px;
  height: 36px;
  border: 2px solid #000;
  border-radius: 0px;
  box-sizing: border-box;
}

.form-radio input[type="radio"]:checked + .form-radio-circle {
  border-color: #2e7d5a;
}
.form-radio input[type="radio"]:checked + .form-radio-circle::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  width: 16px;
  height: 16px;
  background-color: #2e7d5a;
  border-radius: 50%;
}

/* ---------- animated background bubble ---------- */
.ircle-effect2 {
  position: absolute;
  top: 21.5px;
  right: 21.5px;
  transform: translate(50%, -50%) scale(0);
  width: 45px;
  height: 45px;
  background-color: #F3F4F6;
  border-radius: 50%;
  opacity: 0;
  z-index: -1;
  transition: all 0.4s ease;
  pointer-events: none;
}



/* Show bubble only on hover */
.form-radio:hover .ircle-effect2 {
  transform: translate(50%, -50%) scale(1);
  opacity: 1;
}

/* Keep visible parts above */
.form-radio>.form-radio-circle,
.form-radio>.form-radio-label {
  position: relative;
  z-index: 2;
}

/* LTR version */
[dir="ltr"] .ircle-effect2 {
  right: auto;
  left: 21.5px;
  transform: translate(-50%, -50%) scale(0);
}

[dir="ltr"] .form-radio:hover .ircle-effect2 {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}