/* add-link-styles.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
  }
/* أسلوب الهيدر في صفحة إضافة الرابط */
.add-link-header {
    padding: 1px;
    text-align: center;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  }
  
  /* أسلوب القائمة في هيدر صفحة إضافة الرابط */
  .add-link-header .main-menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: flex-end;
  }
  
  .add-link-header .main-menu ul li {
    margin: 0 20px;
    position: relative;
  }
  
  .add-link-header .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;
  }
  
  .add-link-header .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;
  }
  
  .add-link-header .main-menu ul li a:hover::before {
    width: 100%;
    left: 0;
  }
  
  .add-link-header .main-menu ul li a:hover {
    color: #e85a4f;
  }
  
  .add-link-header .main-menu ul li:nth-child(1) a {
    color: #e85a4f;
    position: relative;
  }
  
  .add-link-header .main-menu ul li:nth-child(1) a::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 21%;
    height: 2px;
    background-color: #e85a4f;
    transition: left 0.1s ease-in-out;
    animation: moveLine 2s infinite alternate;
  }
  
  @keyframes moveLine {
    0% {
      left: 0;
    }
    100% {
      left: calc(100% - 20px);
    }
  }
  
  .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; /* لون النص في الوضع الداكن */
    /* يمكنك إضافة أي تعديلات أخرى هنا */
}
  
.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; /* إخفاء الشريط عند عدم التحميل */
}

.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(2) a {
    color: #e85a4f; /* لون الروابط */
    position: relative; /* إضافة خصائص للوضع النسبي */
  }
  
  /* تحسين شكل الزر "صفحة رئيسية" مع حركة للخط */
.main-menu ul li:nth-child(2) 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); /* يذهب لليمين حتى نهاية الزر */
    }
  }

.add-link-header {
    padding: 1px;
    text-align: center;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* أسلوب القائمة في هيدر صفحة إضافة الرابط */
/*... الأساليب الأخرى ...*/

/* أنميشن ظهور المربع */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* أنميشن اختفاء المربع */
@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* أنميشن للرسومات عند تحويم الماوس */
@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);
  }
}

/* أسلوب CSS للمربع والانميشن */
#accountDropdown {
  display: none;
  position: absolute;
  top: 60px;
  right: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
  min-width: 150px;
  animation-duration: 0.3s; /* مدة الانميشن */
}

#accountDropdown a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.dark-mode #accountDropdown a {
  color: rgb(0, 0, 0);
}

#accountDropdown a:hover {
  background-color: #f0f0f0;
}


/* تطبيق الانميشن عند الظهور */
.fadeIn {
  animation-name: fadeIn;
}

/* تطبيق الانميشن عند الاختفاء */
.fadeOut {
  animation-name: fadeOut;
}


.light-mode .loading-bar {
  display: none;
}

/* أنيميشن للشريط */
@keyframes moveLoadingBar {
  0% {
    width: 0;
  }
  50% {
    width: 50%;
  }
  100% {
    width: 100%;
  }
}

/* استيل الـ Input */
/* ... الأساليب السابقة ... */

.container {
  display: flex;
  height: 70vh;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.content {
  max-width: 600px;
}

/* Input */
.link {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px; 
  
}


.type-1 {
  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; /* تحديد الانتقالات */
}

.type-1:focus {
  width: 500px; /* العرض الجديد عند التركيز */
  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);
  }
}

.add-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; /* انميشن عند التحويم */
}

.add-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 20px rgba(11, 184, 63, 0.8); /* تعزيز التأثيرات الظلية عند التحويم */
  
}


/* انميشن لزيادة حجم الزر عند التحويم */
@keyframes scaleButton {
  0% {
      transform: scale(1);
  }
  50% {
      transform: scale(1.1);
  }
  100% {
      transform: scale(1);
  }
}

/* اشعارات 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 لحركة أكثر نعومة */
}

    /* أسلوب 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); /* تأثيرات ظلال مختلفة عند تحويل المؤشر فوقه */
    }