.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  width: 60%;
  max-width: 600px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  color: #fff;
  animation: fadeIn 0.3s ease-in-out;
  overflow: hidden; /* التأكد من عدم تجاوز الصور للحدود */
}

/* إضافة صورة في الأعلى */
.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/regular-table-top.png') no-repeat top;
  background-size: cover;
  pointer-events: none; /* تعطيل التفاعل مع الصور */
}

/* إضافة صورة في الأسفل */
.modal-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/regular-table-bottom.png') no-repeat bottom;
  background-size: cover;
  pointer-events: none; /* تعطيل التفاعل مع الصور */
}

/* تحسين النص داخل النافذة */
#modal-title {
  font-size: 26px;
  font-weight: bold;
  color: #4b8ef1;
  margin-bottom: 5px;
}

#modal-description {
  font-size: 18px;
  text-align: justify;
  padding: 0 20px;
  font-weight: bold;
}

/* تحسين زر الإغلاق */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
  background: linear-gradient(135deg, #ff4b5c, #c0392b);
  padding: 7px 15px;
  border-radius: 10px;
  border: none;
  transition: all 0.3s ease-in-out;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  z-index: 1001;
}

/* تأثير عند التمرير */
.close:hover {
  background: linear-gradient(135deg, #ff6b7f, #e74c3c);
  transform: scale(1.1);
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
}

/* تحسين الأيقونة داخل الزر */
.close i {
  font-size: 24px;
}

/* تحسين حجم أيقونة Lottie */
#lottie-container {
  width: 200px;
  height: 200px;
  margin: auto;
  margin-top: 10px;
}

/* تأثير ظهور النافذة */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* Media Queries للتجاوب على الشاشات الصغيرة */
@media (max-width: 768px) {
  .modal-content {
    width: 80%;
    max-width: 100%;
    height: auto;
    padding: 20px;
  }

  #modal-title {
    font-size: 22px;
  }

  #modal-description {
    font-size: 16px;
    padding: 0 10px;
  }

  #lottie-container {
    width: 150px;
    height: 150px;
  }
}

@media (max-width: 480px) {
  .modal-content {
    width: 90%;
  }

  #modal-title {
    font-size: 20px;
  }

  #modal-description {
    font-size: 14px;
  }

  #lottie-container {
    width: 120px;
    height: 120px;
  }
}
