/* add-link-styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
  }
 
  .toggle-mode {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  

  .switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
  }
  
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
  }
  
  .switch i {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: .4s;
    color: #fff; /* لون الأيقونات */
  }
  
  /* وضع الأيقونة الشمس */
  .switch i:first-child {
    left: 5px; /* ضع موقع الأيقونة الشمس */
  }
  
  /* وضع الأيقونة القمر */
  .switch i:last-child {
    right: 5px; /* ضع موقع الأيقونة القمر */
  }
  
  /* عند تفعيل الوضع الداكن */
  input:checked + .slider:before {
    transform: translateX(26px);
  }
  
  input:checked + .slider i:first-child {
    opacity: 0; /* إخفاء الأيقونة الشمس في الوضع الداكن */
  }
  
  input:checked + .slider i:last-child {
    opacity: 1; /* إظهار الأيقونة القمر في الوضع الداكن */
  }
  
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
  
input:checked + .slider {
    background-color: #2196F3;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
}
  
  input:checked + .slider:before {
    transform: translateX(26px);
}
  
.dark-mode {
    background-color: #222; /* لون الخلفية في الوضع الداكن */
    color: #fff; /* لون النص في الوضع الداكن */
    /* يمكنك إضافة أي تعديلات أخرى هنا */
}


/* تحسين شكل الهيدر وأزرار القائمة */
header {
  padding: 1px;
  text-align: center;
  background-color: #ccc;
  box-shadow: 0  0 10px#333;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  position: relative; /* تغيير إعدادات الـ position للسماح بتحكم أفضل */
}

.loading-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background-color: #e85a4f;
  box-shadow: 0 0 10px #e85a4f; /* تأثير ظل لإضافة عمق */
  transition: width 0.3s ease-in-out, opacity 0.3s ease-in-out; /* إضافة تأثير للتأكد من سلاسة التحميل */
  z-index: 10;
  opacity: 0; /* إخفاء الشريط عند عدم التحميل */
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.input-group input[type="text"],
.input-group input[type="password"] {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* تنسيق الزر */
#loginForm input[type="submit"] {
  background-color: #4CAF50;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#loginForm input[type="submit"]:hover {
  background-color: #45a049;
}

.light-mode .loading-bar {
  display: none;
}

/* أنيميشن للشريط */
@keyframes moveLoadingBar {
  0% {
    width: 0;
  }
  50% {
    width: 50%;
  }
  100% {
    width: 100%;
  }
}
  
.dark-mode header {
  background-color: #333; /* لون خلفية الهيدر في الوضع الداكن */
  box-shadow: 0  0 10px#000;
  color: #fff; /* لون النص في الوضع الداكن */
}
  
.main-menu {
    position: relative; /* تغيير إعدادات الـ position للسماح بالتعديلات */
}

.main-menu ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: flex-end; /* لوضع الأزرار على المين */
  position: relative; /* تغيير إعدادات الـ position للسماح بالتعديلات */
}

  
.main-menu ul li {
  margin: 0 20px;
  position: relative;
}

.main-menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease-in-out;
}

.dark-mode .main-menu ul li a {
    color: #fff; /* لون الروابط في الوضع الداكن */
  }
  
  /* تحسين شكل الخطوط تحت النصوص */
.main-menu ul li a::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #e85a4f; /* لون الخط الذي يظهر عند التحويم */
    transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
}
  
.main-menu ul li a:hover::before {
    width: 100%;
    left: 0;
}
  
.main-menu ul li a:hover {
    color: #e85a4f; /* لون الروابط عند التحويم */
}
  
  /* تحسين شكل الزر "صفحة رئيسية" */
.main-menu ul li:nth-child(3) a {
    color: #e85a4f; /* لون الروابط */
    position: relative; /* إضافة خصائص للوضع النسبي */
  }
  
  /* تحسين شكل الزر "صفحة رئيسية" مع حركة للخط */
.main-menu ul li:nth-child(3) a::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0; /* يبدأ من اليسار بصورة دائمة */
    width: 22%;
    height: 3px;
    background-color: #e85a4f; /* لون الخط أسفل الزر */
    transition: left 2s ease-in-out; /* حركة الخط */
    animation: moveLine 2s infinite alternate; /* حركة الخط بين اليمين والشمال */
}
  
  /* الأنيميشن لحركة الخط */
  @keyframes moveLine {
    0% {
      left: 0;
    }
    100% {
      left: calc(100% - 19px); /* يذهب لليمين حتى نهاية الزر */
    }
  }



.container {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  padding: 0;
  font-family: Arial, sans-serif;
}
  
.content {
   max-width: 600px;
}

.login-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.login-box {
  background-color: #ccc; /* يمكنك استخدام أي لون يتناسب مع الخلفية الداكنة */
  padding: 20px;
  border-radius: 20px;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 400px;
  max-width: 90%;
  text-align: right; /* نقل النص إلى اليمين */
  direction: rtl; /* توجيه النص إلى اليمين */
}


.login-box h2 {
  text-align: center; /* توسيط عنوان الصندوق */
  font-size: 36px; /* حجم النص */
  font-family: 'Open Sans', sans-serif;
  color: #ffffff; /* اللون الأخضر المطلوب */
  position: relative;
  
}

.dark-mode .login-box h2 {
  color: #0ea13a;
  font-size: 36px; /* حجم النص */
  font-family: 'Open Sans', sans-serif;
}

.dark-mode .login-box {
  background-color: #333; 
  color: #fff; /* لون النص في الوضع الداكن */
  /* يمكنك إضافة أي تعديلات أخرى هنا */
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 15px;
}


/* اختصارات الـ input */
input[type="text"],
input[type="password"] {
  padding: 10px;
  border-radius: 20px;
  border: 2px solid rgb(175, 171, 171);
  width: 360px; /* العرض الافتراضي */
  font-size: 16px;
  transition: all 0.3s ease-in-out; /* انتقال تدريجي لكل الخصائص */
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.1); /* إضافة ظل */
  margin-bottom: 20px;
  transition: border-color 0.3s ease-in-out, width 0.3s ease-in-out; /* تحديد الانتقالات */
}

input[type="text"],
input[type="password"]:focus {
  width: 365px; /* العرض الجديد عند التركيز */
  border-color: #0a8a20; /* تغيير لون الحدود عند التركيز */
  outline: none; /* إزالة الـ outline الافتراضي */
  animation: focusBorder 1.5s infinite; /* تحديد الانميشن */
}

@keyframes focusBorder {
  0% {
      box-shadow: 0px 0px 5px 0px rgba(0, 255, 0, 0.7);
  }
  50% {
      box-shadow: 0px 0px 15px 0px rgba(0, 255, 0, 0.7);
  }
  100% {
      box-shadow: 0px 0px 5px 0px rgba(0, 255, 0, 0.7);
  }
}

/* أضف تأثير انتقالي عند التغيير */
input[type="text"],
input[type="password"] {
  transition: all 0.3s ease-in-out;
}

/* تحسين شكل الحقل عند التحوم بالفأرة */
input[type="text"],
input[type="password"]:hover {
  border-color: #999; /* تغيير لون الحدود عند التحوم */
}

/* اختصارات الـ input */
input[type="email"] {
  padding: 10px;
  border-radius: 20px;
  border: 2px solid rgb(175, 171, 171);
  width: 360px; /* العرض الافتراضي */
  font-size: 16px;
  transition: all 0.3s ease-in-out; /* انتقال تدريجي لكل الخصائص */
  box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.1); /* إضافة ظل */
  margin-bottom: 20px;
  transition: border-color 0.3s ease-in-out, width 0.3s ease-in-out; /* تحديد الانتقالات */
}

/* تحسين الشكل عند التركيز */
input[type="email"]:focus {
  width: 365px; /* العرض الجديد عند التركيز */
  border-color: #0a8a20; /* تغيير لون الحدود عند التركيز */
  outline: none; /* إزالة الـ outline الافتراضي */
  animation: focusBorder 1.5s infinite; /* تحديد الانميشن */
}

@keyframes focusBorder {
  0% {
      box-shadow: 0px 0px 5px 0px rgba(0, 255, 0, 0.7);
  }
  50% {
      box-shadow: 0px 0px 15px 0px rgba(0, 255, 0, 0.7);
  }
  100% {
      box-shadow: 0px 0px 5px 0px rgba(0, 255, 0, 0.7);
  }
}

/* أضف تأثير انتقالي عند التغيير */
input[type="email"] {
  transition: all 0.3s ease-in-out;
}

/* تحسين شكل الحقل عند التحوم بالفأرة */
input[type="email"]:hover {
  border-color: #999; /* تغيير لون الحدود عند التحوم */
}

.form-group {
  margin-bottom: 20px; /* زيادة المسافة بين كل حقل وآخر */
}

.form-group label {
  margin-left: 0; /* إلغاء المسافة من اليسار */
  margin-right: 12px; /* إضافة مسافة إلى اليمين */
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  margin-right: 5px; /* زيادة المسافة من اليسار */
}

/* يمكنك استخدام الألوان والأنماط التي تناسب استايل صفحتك */
.additional-options {
  font-weight: bold;
  text-align: center; /* توسيط النص */
  font-family: 'Montserrat', sans-serif;
  margin-top: 20px;
  font-size: 17px;;
}

.additional-options a {
  color: #e85a4f; /* تغيير لون الروابط */
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  text-decoration: none; /* إزالة تنسيق الرابط الافتراضي */
  transition: color 0.3s ease-in-out; /* تحسين تأثير التحويل */
  margin-right: 7px; /* إضافة مسافة إلى اليمين */
}

.additional-options a:hover {
  color: #45a049; /* تغيير لون الرابط عند التحوم */
}

/* تحديد موقع العين داخل الحقل */
.password-field {
  position: relative;
}


.button-container {
  text-align: center;
}

button {
  padding: 13px 70px;
  background-color: #e85a4f;
  color: white;
  border: none;
  font-size: 19px; /* حجم الخط */
  font-weight: bold; /* تحديد سمك الخط */
  border-radius: 13px;
  cursor: pointer;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* إضافة ظل */
  transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-radius 0.3s ease-in-out; /* تحسين تأثيرات التحويم */
  animation: scaleButton 0.3s ease-in-out; /* انميشن عند التحويم */
}

button:hover {
  color: #fff; /* تغيير لون النص */
  background-color: #0bb83f; /* تغيير لون الخلفية */
  box-shadow: 0 0 15px rgba(11, 184, 63, 0.8);
  border-radius: 20px; /* جعل الحواف أكثر نعومة عند التحويم */
  transform: scale(1.05); /* زيادة حجم الزر عند التحويم */
  box-shadow: 0 0 10px rgba(11, 184, 63, 0.8); /* تعزيز التأثيرات الظلية عند التحويم */
}


/* اشعارات CSS */

.notification {
  /* الأسلوب العام للإشعار */
  position: fixed;
  bottom: 20px;
  font-weight: bold;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  box-shadow: 0 0 10px #ad2b38; /* تأثير ظل لإضافة عمق */
  border-radius: 100px;
  padding: 7px 12px;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex; /* جعل الإشعار عبارة عن عنصر من نوع الفليكس */
  align-items: center; /* توسيط العناصر داخل الفليكس */
}

/* الدائرة التي تحمل الأيقونة */
.notification .icon-circle {
  width: 40px; /* حجم الدائرة */
  height: 40px; /* حجم الدائرة */
  border-radius: 50%; /* جعل الدائرة دائرية */
  display: flex; /* جعل الدائرة عبارة عن عنصر من نوع الفليكس */
  align-items: center; /* توسيط العناصر داخل الفليكس */
  justify-content: center; /* توسيط العناصر داخل الفليكس */
  margin-right: 10px; /* تباعد بين الدائرة ونص الإشعار */
  background-color: #28a745; /* لون الدائرة في حالة النجاح */
}

/* الأيقونة داخل الدائرة */
.notification .icon-circle i {
  color: white; /* لون الأيقونة */
  font-size: 24px; /* حجم الأيقونة */
}


.notification.success {
  /* لون الإشعار بنجاح */
  background-color: #28a745;
  box-shadow: 0 0 10px #1e7c34; /* تأثير ظل لإضافة عمق */
  color: white;
}

.notification.error {
  /* لون الإشعار في حالة الخطأ */
  background-color: #dc3545;
  color: white;
  box-shadow: 0 0 10px #ad2b38; /* تأثير ظل لإضافة عمق */
}

/* الأنيميشن لظهور الإشعار */
.notification.show {
  opacity: 1;
}

/* أسلوب الإشعار بالنقر */
.notification.show {
  animation: fadeInScale 0.5s ease forwards, fadeOutScale 0.5s 2.5s ease forwards;
}

/* لظهور الإشعار */
@keyframes fadeInScale {
  0% {
    transform: translateX(-50%) translateY(100%) scale(0.5); /* ابتداءً من الحجم الأصغر */
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) translateY(0) scale(1); /* الحجم الكامل */
    opacity: 1;
  }
}

/* للاختفاء */
@keyframes fadeOutScale {
  0% {
    transform: translateX(-50%) translateY(0) scale(1); /* الحجم الكامل */
    opacity: 1;
  }
  100% {
    transform: translateX(-50%) translateY(100%) scale(0.5); /* الحجم الأصغر */
    opacity: 0;
  }
}

/* تعريف الـ keyframes لحركة الاهتزاز */
@keyframes shake {
  0% {
    transform: rotate(0deg); /* بداية الحركة */
  }
  25% {
    transform: rotate(-10deg); /* اهتزاز لليسار */
  }
  50% {
    transform: rotate(10deg); /* اهتزاز لليمين */
  }
  75% {
    transform: rotate(-5deg); /* اهتزاز لليسار */
  }
  100% {
    transform: rotate(0deg); /* العودة إلى الموضع الأصلي */
  }
}

/* تطبيق الحركة على الأيقونة داخل الدائرة */
.notification .icon-circle i {
  color: white;
  font-size: 32px; /* زيادة حجم الرمز */
  display: inline-block;
  animation: shake 0.5s 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite; /* استخدام cubic-bezier لحركة أكثر نعومة */
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 352px; /* تم تحديد المسافة إلى الشمال */
  transform: translateY(-50%);
  font-size: 20px;
  cursor: pointer;
  color: #999;
  transition: right 0.3s ease-in-out; /* تحديد انتقال عند التركيز */
}

input[type="text"]:focus + .toggle-password,
input[type="password"]:focus + .toggle-password {
  right: 357px; /* المسافة إلى الشمال عند التركيز */
}

    /* أسلوب CSS للوجو النصي */
    .logo {
      position: absolute;
      top: 0;
      left: 20px; /* تعديل المسافة من الحافة اليسرى */
      margin: 14px 0; /* تعديل الهامش العمودي حسب الحاجة */
      font-size: 30px; /* حجم النص */
      font-weight: bold; /* سمك النص */
      color: #e85a4f; /* لون النص */
      text-transform: uppercase; /* تحويل النص إلى حروف كبيرة */
      letter-spacing: 2px; /* مسافات بين الحروف */
      font-family: 'Arial', sans-serif; /* خط النص */
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2), 0 0 25px rgba(0, 0, 0, 0.1); /* ظلال النص */
      opacity: 0; /* الشفافية: النص غير مرئي في البداية */
      animation: fadeIn 1.5s ease-in-out forwards; /* تأثير تلاشي عند دخول الصفحة */
      transition: color 0.3s ease-in-out, text-shadow 0.3s ease-in-out; /* تأثيرات انتقالية */
    }

    /* تأثير تلاشي عند دخول الصفحة */
    @keyframes fadeIn {
      from {
        opacity: 0;
      }
      to {
        opacity: 1;
      }
    }

    /* تغيير لون النص وتأثير الظل عند تحويل المؤشر فوقه */
    .logo:hover {
      color: #0bb83f; /* لون مختلف عند تحويل المؤشر فوقه */
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4), 0 0 35px rgba(0, 0, 0, 0.3); /* تأثيرات ظلال مختلفة عند تحويل المؤشر فوقه */
    }