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;
}


.green-text {
  color: #0bb83f; /* اللون الأخضر المطلوب */
  position: relative;
  display: inline-block;
}

/* تحديد شكل الدائرة الدوارة */
.green-text::before {
  content: "";
  display: block;
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #0bb83f; /* اللون الأخضر المطلوب */
  animation: rotateCircle 1.5s ease-in-out infinite;
  opacity: 0;
  box-shadow: 0 0 10px rgba(11, 184, 63, 0.8); /* تأثير ظل لإضافة عمق */
}

/* تحديد حركة الدائرة الدوارة */
@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: rgba(68, 67, 67, 0.397); /* لون خلفية الهيدر في الوضع الداكن */
  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(1) a {
  color: #e85a4f; /* لون الروابط */
  position: relative; /* إضافة خصائص للوضع النسبي */
}

/* تحسين شكل الزر "صفحة رئيسية" مع حركة للخط */
.main-menu ul li:nth-child(1) 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 {
  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; /* تحديد سمك الخط */
}




    /* أسلوب 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); /* تأثيرات ظلال مختلفة عند تحويل المؤشر فوقه */
    }

/* ستايل للعناصر المطفأة */
.floating-icons {
  position: fixed;
  bottom: 20px; /* التحكم بالارتفاع من الأسفل */
  left: 20px; /* التحكم بالمسافة من اليسار */
  display: flex;
  flex-direction: column;
  z-index: 1000; /* لتظهر فوق أي عناصر أخرى */
  transition: transform 0.3s ease; /* Added transition */
}

.floating-icons.clicked {
  transform: scale(1.1); /* Add your desired animation effect */
}

.floating-icons a {
  display: block;
  text-align: center;
  margin-bottom: 10px; /* المسافة بين الأيقونات */
  background-color: #333; /* لون خلفية الأيقونة */
  color: #fff; /* لون النص */
  width: 40px; /* العرض */
  height: 40px; /* الارتفاع */
  border-radius: 50%; /* لتكون دائرية */
  line-height: 40px; /* لتوسيط الأيقونة داخل دائرة */
  transition: background-color 0.3s ease; /* تأثير تدرج لون الخلفية */
}

.floating-icons a:hover {
  background-color: #555; /* تغيير لون الخلفية عند التحويم */
}
/* Updated styles for the support form */
.support-form-container {
  display: none;
  position: fixed;
  bottom: 80px; /* Adjust as needed */
  left: 80px; /* Adjust as needed */
  z-index: 1001; /* Above the floating icons */
  font-family: Arial, sans-serif;
  opacity: 0; /* Initially set to transparent */
  transition: opacity 0.5s ease; /* Added transition for opacity change */
}


.support-form {
  background-color: #ccc;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 300px; /* Adjust as needed */
}

.support-form h2 {
  font-size: 32px;
  margin-bottom: 25px;
  text-align: center;
  color: #fff;
  position: relative; /* Added for the effect */
}

.support-form h2 i {
  margin-right: 10px;
  color: #f5c518; /* Adjust as needed */
  transition: transform 0.3s ease; /* Added transition */
}

.support-form h2 i:hover {
  transform: scale(1.2); /* Added hover effect */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3); /* Added text shadow */
}

.support-form input[type="email"],
.support-form textarea {
  width: 91%;
  font-weight: bold;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid #777;
  border-radius: 10px;
  background-color: #ccc;
  color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease, border-radius 0.3s ease-in-out;
}

.support-form input[type="email"]:focus,
.support-form textarea:focus {
  outline: none;
  border-color: #fff;
  border-radius: 20px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.support-form textarea {
  height: 100px;
}

.support-form button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  background-color: rgb(119, 117, 117);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, border-radius 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.support-form button:hover {
  background-color: rgba(12, 12, 12, 0.5);
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(197, 192, 192, 0.5);
}

.dark-mode .support-form {
  background-color: #333;
}

.dark-mode .support-form input[type="email"],
.dark-mode .support-form textarea {
  background-color: #444;
}

.dark-mode .support-form button {
  background-color: #111;
}

.dark-mode .support-form button:hover {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.chat-container {
  display: none;
  position: fixed;
  bottom: 80px; /* Adjust as needed */
  left: 80px; /* Adjust as needed */
  z-index: 1001; /* Above the floating icons */
  font-family: Arial, sans-serif;
  opacity: 0; /* Initially set to transparent */
  transition: opacity 0.5s ease; /* Added transition for opacity change */
}

.chat-widget {
  background-color: #ccc;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 300px; /* يمكنك ضبطه حسب الحاجة */
}

.chat-widget h3 {
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
  color: #fff;
  position: relative;
}

.chat-widget input[type="text"],
.chat-widget textarea {
  width: 90%;
  font-weight: bold;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #777;
  border-radius: 10px;
  background-color: #ccc;
  color: #000;
  transition: all 0.3s ease, border-radius 0.3s ease-in-out;
}

.chat-widget input[type="text"]:focus,
.chat-widget textarea:focus {
  outline: none;
  border-color: #fff;
  border-radius: 15px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.chat-widget button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  background-color: rgb(119, 117, 117);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease, border-radius 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.chat-widget button:hover {
  background-color: rgba(12, 12, 12, 0.5);
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(197, 192, 192, 0.5);
}

.dark-mode .chat-widget {
  background-color: #333;
}

.dark-mode .chat-widget input[type="text"],
.dark-mode .chat-widget textarea {
  background-color: #444;
}

.dark-mode .chat-widget button {
  background-color: #111;
}

.dark-mode .chat-widget button:hover {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}


/* CSS Styles */
.message .sender {
  font-weight: bold;
  margin-bottom: 4px;
}

.message.user .sender {
  color: #3498db; /* لون "You" */
}

.message.support .sender {
  color: #27ae60; /* لون "Support" */
}

.message .sender:before {
  font-family: 'Font Awesome 5 Free'; /* يجب أن يكون لديك رابط الخطوط المضافة في الصفحة */
  margin-right: 8px;
  font-weight: 900;
  display: inline-block;
  transition: transform 0.3s ease;
}

.message.user .sender:before {
  content: "\f007"; /* رمز "You" - يمكن تغييره حسب الرمز المطلوب */
}

.message.support .sender:before {
  content: "\f11e"; /* رمز "Support" - يمكن تغييره حسب الرمز المطلوب */
}

/* Animation - تأثير الظهور */
.message {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.chat-widget .messages {
  max-height: 300px; /* يمكن تعديل الحجم حسب الرغبة */
  overflow-y: auto;
  scrollbar-width: thin; /* تمكين شريط التمرير للمتصفحات الحديثة */
}

.chat-widget .messages::-webkit-scrollbar {
  width: 6px; /* عرض شريط التمرير */
}

.chat-widget .messages::-webkit-scrollbar-thumb {
  background-color: #888; /* لون الشريط */
  border-radius: 4px; /* شكل الحواف */
}


