/* حاوية الرسائل المنبثقة */
.message-box-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);  /* خلفية مظللة */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* تأكد من أن النافذة المنبثقة في أعلى الصفحة */
    font-family: 'Roboto', sans-serif;  /* تغيير الخط العام */
}

/* تصميم نافذة الرسالة */
.message-box {
    background-color: #ffffff;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    text-align: center;
    max-width: 420px;
    width: 100%;
    font-family: 'Arial', sans-serif; /* استخدام خط بديل */
    color: #333; /* جعل النص داكن لسهولة القراءة */
}

/* العنوان في النافذة */
.message-box h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}

/* النص داخل الرسالة */
.message-box p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
}

/* أزرار الخيارات */
.message-box-buttons {
    display: flex;
    justify-content: space-around;
    gap: 15px;  /* إضافة تباعد بين الأزرار */
}

/* زر "نعم" */
.message-box .btn-yes {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    background-color: #4CAF50;  /* أخضر */
    color: white;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.message-box .btn-yes:hover {
    background-color: #45a049;
    transform: translateY(-3px);  /* تأثير رفع الزر عند التمرير */
}

/* زر "إلغاء" */
.message-box .btn-no {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    background-color: #f44336;  /* أحمر */
    color: white;
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.message-box .btn-no:hover {
    background-color: #e53935;
    transform: translateY(-3px);  /* تأثير رفع الزر عند التمرير */
}

/* تأثير الإخفاء */
.message-box .hiding {
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

/* تأثير التظليل عند التفاعل مع الأزرار */
.message-box .btn-yes:active,
.message-box .btn-no:active {
    transform: scale(0.95);  /* تصغير الزر عند النقر */
}

/* إضافة بعض الظلال في الخلفية */
.message-box-container .message-box {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
