:root {
    --cui-layout-max-width: 1600px;

}

body {
    font-family: 'Lintel', sans-serif;
    background-color: #e9ecef;
    margin: 0;
    padding: 0;
color: #393939;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
}

.top-bar {
    background-color: #4a4a4a;
    padding: 8px 0;
    
  }
  .top-bar-link {
    color: #ffffff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px; /* مسافة بسيطة بين الأيقونة والنص */
    transition: opacity 0.2s;
  }
  .top-bar-link:hover {
    opacity: 0.85;
    color: #ffffff;
  }
  .top-bar-icon {
    width: 14px;
    height: 14px;
    fill: currentColor; /* تجعل الأيقونة تأخذ اللون الأبيض تلقائياً متناسبة مع النص */
  }

/* الشريط العلوي الرمادي الداكن */
.top-bar {
    background-color: #4a4a4a;
    color: #ffffff;
    padding: 8px 0;

}

.top-bar a {
    color: #ffffff;
    text-decoration: none;
        font-size: 16px;
    font-weight: 600;
}

/* الهيدر الرئيسي الأبيض */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    flex: 1 0;
    height: 6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: var(--cui-layout-max-width);
color: #393939;
}

.nav-links a {
    color: #333333;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    margin-left: 25px;
    transition: color 0.2s;
    height: 100%;
}

.nav-links a:hover {
    color: #0a7161;
}

.snb-logo {
    height: 60px;
}

/* كارت التحقق الرئيسي */
.verify-box {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 50px;
}

/* ترويسة الكارت باللون الأخضر المميز للبنك */
.verify-header {
    background-color: #0A7161;
    /* درجة أخضر البنك الأهلي */
    color: #ffffff;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
}

.nav-link {
  position: relative; 
 
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; /* يلتصق بحافة الهيدر السفلية تماماً كالصورة */
  left: 0;
  width: 100%;
  height: 4px; /* سمك الخط الأخضر */
  background-color: #0a7161; /* درجة أخضر البنك الأهلي المميزة */
  transform: scaleX(0); /* جعل الخط مخفياً عن طريق تصغير عرضه إلى صفر */
  transform-origin: center; /* تمدد الخط يبدأ من المنتصف إلى الأطراف */
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1); /* جعل الخط يظهر بعرضه الكامل (100%) */
}

.nav-link:hover {
  color: #0A7161 !important;
}
.form-label {
    font-size: 15px;
color: #555;
    margin-bottom: 6px;
}

.form-control {
    border: 1px solid #999;
    border-radius: 4px;
    padding: 10px;
}

.form-control:focus {
    border-color: #0a7161;
    box-shadow: 0 0 0 0.2rem rgba(0, 122, 72, 0.15);
}

.text-danger {
    color: #d9534f !important;
}

/* الكابتشا المطابقة تماماً للصورة */
.captcha-container {
    background-color: #000000;
    color: #ffffff;
    border-radius: 4px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
}

.captcha-code {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 5px;
    font-family: 'Courier New', Courier, monospace;
    text-decoration: line-through;
    user-select: none;
}

.refresh-btn {
    color: #ffffff;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* الأزرار الدائرية المطابقة للتصميم */
.btn-action-container {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.btn-continue {
    background-color: #c2dba3;
    /* اللون الأخضر الفستقي الفاتح */
    color: #fff;
    border: none;
    border-radius: 50px;
    /* حواف دائرية كاملة */
    padding: 10px 45px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.btn-continue:hover {
    background-color: #b1cc90;
}

.btn-cancel {
    background-color: #e0e0e0;
    /* الزر الرمادي الدائري */
    color: #333333;
    border: none;
    border-radius: 50px;
    padding: 10px 45px;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.btn-cancel:hover {
    background-color: #d2d2d2;
}

.captcha-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 50px;
  background: #000;
  border: 1px solid #ccc;
  overflow: hidden;
  border-radius: 3px;
}

.refresh-btn {
  width: 55px;
  height: 100%;
  border: none;
  background: #000;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  border-right: 1px solid #444;
  transition: .3s;
}

.refresh-btn:hover {
  background: #111;
}

.refresh-btn i {
  transition: transform .4s;
}

.refresh-btn:hover i {
  transform: rotate(180deg);
}

#captchaCanvas {
  flex: 1;
  height: 100%;
  background: #000;
  display: block;
}
/* تنسيق شريط الفوتر الرئيسي */
.custom-footer {
  background-color: #3e3e3e !important; /* اللون الرمادي الداكن المطابق للصورة */
  color: #ffffff !important;
}

/* تنسيق النصوص والروابط في الجهة اليمنى */
.footer-link {
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.8;
}

/* نص حقوق الحفظ الرمادي الفاتح قليلاً */
.copyright-text {
  font-size: 13.5px;
  color: #e0e0e0;
  font-weight: 400;
}

/* تنسيق زر الأهلي إي كورب */
.btn-e-corp {
  background-color: #000000 !important; /* خلفية سوداء داكنة */
  color: #ffffff !important;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  padding: 6px 16px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background-color 0.2s ease;
}

.btn-e-corp:hover {
  background-color: #222222 !important;
}

/* تنسيق أيقونات السوشيال ميديا الدائرية البيضاء */
.social-link {
  width: 32px;
  height: 32px;
  background-color: #ffffff; /* الدائرة بيضاء بالكامل */
  color: #3e3e3e !important; /* لون الأيقونة رمادي داكن مثل لون الفوتر */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background-color: #f1f1f1;
}
@media (max-width: 991.98px) {
 
  nav.navbar {
    height: 80px !important;
    position: relative !important;
  }

  .navbar-collapse.collapse.show,
  .navbar-collapse.collapsing {
    display: block !important;
    position: fixed !important; /* ثابتة بالنسبة للشاشة لكي لا تدفع محتوى الصفحة لأسفل */
    top: 81px !important; /* تبدأ بدقة أسفل الهيدر مباشرة */
    right: 0 !important; /* تنبثق من اليمين */
    width: 320px !important; /* العرض مطابق تماماً للصورة */
    max-width: 80% !important;
    height: calc(100vh - 81px) !important; /* تأخذ باقي طول الشاشة فقط */
    background-color: #ffffff !important;
    
    /* حواف دائرية ناعمة من جهة اليسار فقط مثل الصورة */
    border-bottom-left-radius: 12px !important;
    border-top-left-radius: 12px !important;
    
    /* ظل جانبي وسفلي قوي لتبدو طائرة فوق محتوى الصفحة */
    box-shadow: -8px 10px 30px rgba(0, 0, 0, 0.18) !important; 
    
    z-index: 9999 !important; /* رقم عالي جداً لتكون فوق كل عناصر الصفحة */
    padding: 24px !important;
    overflow-y: auto !important; /* إذا كانت الروابط كثيرة تدعم السكرول الداخلي فقط */
    
    /* تأثير الحركة الانسيابية الناعمة من اليمين */
    animation: slideFromRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  /* 3. ترتيب القائمة عمودياً ومحاذاة النصوص لليمين */
  .navbar-collapse .navbar-nav {
    flex-direction: column !important;
    align-items: flex-end !important; /* الكلمات تبدأ من اليمين */
    gap: 0 !important; 
    height: auto !important; 
    width: 100% !important;
  }

  /* 4. تنسيق الروابط وتباعدها الداخلي */
  .navbar-collapse .nav-link {
    width: 100% !important;
    height: auto !important; 
    padding: 16px 0 !important; /* مسافات عمودية متناسقة كالصورة */
    justify-content: flex-end !important; 
    color: #444444 !important;
    font-weight: 500 !important;
    font-size: 15.5px !important;
    border-bottom: none !important; /* بدون خطوط فاصلة */
    transition: color 0.2s ease;
  }

  /* عند وقوف الماوس أو اللمس */
  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link.active {
    color: #007a48 !important;
    background: transparent !important;
  }

  /* حركة الانزلاق الجانبية */
  @keyframes slideFromRight {
    from {
      transform: translateX(100%);
      opacity: 0.5;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
}
