body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    
  }
  
  .container {
    text-align: center;
  }
  
  .content {
    max-width: 600px;
    margin: auto; /* ليتم وضع العناصر في وسط الصفحة */
  }
  
  .toggle-mode {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  
  /* تحديد حركة الدائرة الدوارة */
  @keyframes rotateCircle {
    0%, 50%, 100% {
      transform: translate(-50%, -50%) scale(0);
      opacity: 0;
    }
    25% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 1;
    }
  }
  
  
  .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 {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); 
    background-color: #2196F3;
  }
  
  input:checked + .slider:before {
    transform: translateX(26px);
  }
  
  .dark-mode {
    background-color: #222; /* لون الخلفية في الوضع الداكن */
    color: #fff; /* لون النص في الوضع الداكن */
    /* يمكنك إضافة أي تعديلات أخرى هنا */
  }
  
  /* CSS الحالي هنا */
  
  /* تحسين شكل الهيدر والقائمة */
  /* CSS الحالي هنا */
  
  /* تحسين شكل الهيدر وأزرار القائمة */
  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; /* إخفاء الشريط عند عدم التحميل */
  }
  
  /* styles.css */
  
  /* أنميشن ظهور المربع */
  @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%;
    }
  }
  
  
  .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(4) a {
    color: #e85a4f; /* لون الروابط */
    position: relative; /* إضافة خصائص للوضع النسبي */
  }
  
  /* تحسين شكل الزر "صفحة رئيسية" مع حركة للخط */
  .main-menu ul li:nth-child(4) a::before {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0; /* يبدأ من اليسار بصورة دائمة */
    width: 21%;
    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% - 20px); /* يذهب لليمين حتى نهاية الزر */
    }
  }
  
  
  
  /* تحسين شكل الزر */
  .highlight-button {
    background-color: #e85a4f; /* لون الزر */
    color: #fff; /* لون النص على الزر */
    border: none;
    font-weight: bold;
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
    box-shadow: 0 0 10px #e85a4f; /* تأثير ظل لإضافة عمق */
    
  }
  
  .highlight-button:hover {
    background-color: #0bb83f; /* لون الزر عند التحويم */
    box-shadow: 0 0 10px rgba(11, 184, 63, 0.8); /* تأثير ظل لإضافة عمق */
  }
  
  /* تحسين شكل العناصر الرئيسية */
  .container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
  }
  
  .content {
    max-width: 600px;
  }
  
  /* تحسين شكل النصوص والعناصر العامة */
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0; /* لون خلفية الصفحة */
    color: #333; /* لون النص العام */
  }
  
  /* الستايلات الحالية هنا */
  
  /* إضافة شكل دائري للأيقونات الاجتماعية */
  .social-icons {
    margin-top: 20px;
  }
  
  .social-icons a {
    display: inline-block;
    margin-right: 10px;
    background-color: #0bb83f;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    transition: background-color 0.3s ease-in-out;
    
  }
  
  .social-icons a:hover {
    border-color: #09831d; /* تغيير لون الحدود عند التركيز */
    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);
    }
  }
  
  /* أسلوب CSS لتزيين الـ footer */
  footer {
    margin-top: 40px; /* تعيين هامش أعلى للفوتر */
    background-color: #ccc;
    color: rgb(0, 0, 0); /* لون النص داخل الـ footer */
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
    padding: 0.1px 0; /* مسافة داخلية للـ footer */
    text-align: center; /* توسيط النص في الـ footer */
  }
  
  .footer-content {
    max-width: 1200px; /* أقصى عرض للمحتوى في الـ footer */
    margin: 0 auto; /* توسيط المحتوى في الـ footer */
  }
  
  .dark-mode footer {
    background-color: #333; /* لون خلفية الهيدر في الوضع الداكن */
  box-shadow: 0  0 3px#000;
    color: #fff; /* لون النص في الوضع الداكن */
  }
  
  .footer-content p {
    font-size: 15px; /* حجم الخط */
    font-weight: bold; /* تحديد سمك الخط */
  
  }
  

/* الأسلوب الآخر بقيم الأنواع اللونية وحجم النص */
.links-count {
  background-color: #2ecc71;
  color: #fff;
  padding: 15px;
  font-weight: bold;
  box-shadow: 0px 10px 100px rgba(0, 0, 0, 0.1); /* إضافة ظل */
  text-align: center;
  width: 200px;
  margin: 0 auto; /* هذا يوضع العنصر في الوسط أفقيًا */
  height: auto; /* يمكنك استخدام 'auto' بدلاً من 'none' للارتفاع */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
  font-size: 24px;
  font-family: Arial, sans-serif; /* تغيير الخط */
  border-radius: 100px;
  animation: focusBorder 1.5s infinite; /* تحديد الانميشن */
  padding-bottom: 20px;
}

.links-count span {
  display: block;
  font-size: 39px; /* حجم الرقم */
  font-weight: bold;
  margin-top: 20px; /* إضافة مسافة من الأعلى */
}

#linkStatusChartUp {
  width: 100%; /* يمكنك استخدام نسبة مئوية من العرض */
  max-width: 900px; /* الحد الأقصى للعرض */
  height: auto; /* للحفاظ على نسبة العرض إلى الارتفاع */
  max-height: 300px; /* الحد الأقصى للارتفاع */
  margin: auto; /* لوضع الرسم البياني في وسط الصفحة */
  display: block; /* لضمان وضوح الرسم البياني */
  text-align: center;
  margin-bottom: 100px; /* يضيف مسافة 20 بيكسل من الأسفل لكل div */
}

/* تغييرات للوضع الداكن */
.dark-mode .links-count {
  background-color: #e85a4f;
  animation: focusBorderRed 1.5s infinite;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* إضافة ظل */
  color: #fff;
  font-size: 24px;
  font-family: Arial, sans-serif; /* تغيير الخط في الوضع الداكن */
}

@keyframes focusBorderRed {
  0% {
      box-shadow: 0px 0px 5px 0px rgba(232, 90, 79, 0.7);
  }
  50% {
      box-shadow: 0px 0px 15px 0px rgba(232, 90, 79, 0.7);
  }
  100% {
      box-shadow: 0px 0px 5px 0px rgba(232, 90, 79, 0.7);
  }
}



#linkStatusChartDown {
  width: 100%; /* يمكنك استخدام نسبة مئوية من العرض */
  max-width: 900px; /* الحد الأقصى للعرض */
  height: auto; /* للحفاظ على نسبة العرض إلى الارتفاع */
  max-height: 300px; /* الحد الأقصى للارتفاع */
  margin: auto; /* لوضع الرسم البياني في وسط الصفحة */
  display: block; /* لضمان وضوح الرسم البياني */
  text-align: center;
  margin-bottom: 20px; /* يضيف مسافة 20 بيكسل من الأسفل لكل div */
  
}

.login-box h2 {
  text-align: center; /* توسيط عنوان الصندوق */
  font-size: 36px; /* حجم النص */
  font-family: 'Open Sans', sans-serif;
  color: #ffffff; /* اللون الأخضر المطلوب */
  position: relative;
  
}

.dark-mode .link-details-content h2 {
  color: #0ea13a;
  font-family: 'Open Sans', sans-serif;
}

.dark-mode .link-details-content h2 {
  color: #0ea13a
}


h2 {
  text-align: center;
  margin-bottom: 20px;
}

/* إضافة مسافة بين كلمة "عدد الروابط" والرقم */

.links-number {
  font-size: 39px; /* حجم الرقم */
  font-weight: bold;
  margin-left: 5px; /* إضافة مسافة من اليسار */
  
}


.toggle-button {
  display: block;
  padding: 13px 70px;
  margin: 20px auto;
  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; /* انميشن عند التحويم */
}

.toggle-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); /* تعزيز التأثيرات الظلية عند التحويم */
}


/* استايلات القائمة */
.links-list {
  list-style: none;
  font-weight: bold; /* تحديد سمك الخط */
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  opacity: 0;
}

.links-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ccc;
  margin-bottom: 8px;
  padding: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dark-mode .links-list li {
  background-color: #333; /* لون الخلفية في الوضع الداكن */
  color: #fff; /* لون النص في الوضع الداكن */
  /* يمكنك إضافة أي تعديلات أخرى هنا */
}

.links-list li:hover {
  transform: scale(1.02) translateY(-5px);
  animation: LinksRed 1.5s infinite;
}


@keyframes LinksRed {
  0% {
      box-shadow: 0px 0px 5px 0px rgba(232, 90, 79, 0.7);
  }
  50% {
      box-shadow: 0px 0px 10px 0px rgba(232, 90, 79, 0.7);
  }
  100% {
      box-shadow: 0px 0px 5px 0px rgba(232, 90, 79, 0.7);
  }
}

/* استايلات للقائمة المخفية */
.hidden {
  max-height: 0 !important;
  opacity: 0 !important;
}


/* استايلات النافذة المنبثقة */
.link-details-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(138, 134, 134, 0.8);
  width: 80%;
  max-width: 400px;
  padding: 20px;
  border-radius: 20px;
  z-index: 1000;
  transition: opacity 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
  pointer-events: none; /* يعطل التفاعل أثناء الاختفاء */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.green-text::before,
.red-text::before {
  content: "";
  display: block;
  position: absolute;
  width: 25px; /* تغيير حجم الدائرة إلى 20 بدلاً من 10 */
  height: 25px; /* تغيير حجم الدائرة إلى 20 بدلاً من 10 */
  border-radius: 50%;
  bottom: -48px; /* إضافة لوضع الدائرة أسفل النص */
  animation: rotateCircle 1.5s ease-in-out infinite;
  left: 50%;
  transform: translateX(-50%);
  opacity: 1;
}

.green-text::before {
  background-color: #0bb83f; /* اللون الأخضر المطلوب */
  box-shadow: 0 0 10px rgba(11, 184, 63, 0.8); /* تأثير ظل لإضافة عمق */
}

.red-text::before {
  background-color: #e85a4f; /* اللون الأحمر المطلوب */
  box-shadow: 0 0 10px rgba(232, 90, 79, 0.8); /* تغيير لون الظل */

}


.dark-mode .link-details-overlay {
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  color: #fff; /* لون النص في الوضع الداكن */
  /* يمكنك إضافة أي تعديلات أخرى هنا */
}


#url p {
  word-wrap: break-word; /* هنا تطبيق خاصية word-wrap */
}


.link-details-content {
  color: white;
  text-align: center;
}

.link-details-content h2 {
  margin-bottom: 15px;
}

.link-details-content p {
  margin-bottom: 10px;
}

#closeDetails {
  display: block;
  padding: 6px 50px;
  margin: 10px auto;
  background-color: #e85a4f;
  color: white;
  border: none;
  font-size: 19px; /* حجم الخط */
  font-weight: bold; /* تحديد سمك الخط */
  border-radius: 5px;
  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; /* انميشن عند التحويم */
}

#closeDetails:hover {
  color: #fff; /* تغيير لون النص */
  background-color: #0bb83f; /* تغيير لون الخلفية */
  box-shadow: 0 0 15px rgba(11, 184, 63, 0.8);
  border-radius: 10px; /* جعل الحواف أكثر نعومة عند التحويم */
  transform: scale(1.05); /* زيادة حجم الزر عند التحويم */
  box-shadow: 0 0 10px rgba(11, 184, 63, 0.8); /* تعزيز التأثيرات الظلية عند التحويم */
}

/* عندما تكون النافذة المنبثقة مرئية */
.link-details-overlay:not(.hidden) {
  visibility: visible;
  opacity: 1;
  pointer-events: auto; /* يعيد التفاعل عند الظهور */
}

/* عندما تكون النافذة المنبثقة مخفية */
.link-details-overlay.hidden {
  opacity: 0;
  pointer-events: none; /* يعطل التفاعل أثناء الاختفاء */
}

/* تأخير الانتقال بعد انتهاء الانتقال */
.link-details-overlay.hidden {
  transition-delay: 0.2s;
}

#status p {
  font-size: inherit;
}

    /* أسلوب 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); /* تأثيرات ظلال مختلفة عند تحويل المؤشر فوقه */
    }