/* تصميم خلفية البوب أب */
.popup-modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
    overflow: auto;
}

/* تصميم المحتوى */
.popup-content {
    position: relative;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    text-align: center;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.3s ease;
}

/* زر الإغلاق */
.popup-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.popup-content .close-btn:hover {
    color: #d9534f;
}

/* أيقونة النجاح */
.popup-content i {
    font-size: 50px;
    color: #4caf50;
}

/* عنوان */
.popup-content h2 {
    font-size: 24px;
    margin: 15px 0;
}

/* نص */
.popup-content p {
    font-size: 16px;
    margin: 10px 0 20px;
    color: #555;
}

/* صورة */
.popup-content img {
    width: 80px;
    height: auto;
    margin: 0 auto 15px;
    display: block;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .popup-content {
        padding: 15px;
        width: 90%;
    }

    .popup-content h2 {
        font-size: 20px;
    }

    .popup-content p {
        font-size: 14px;
    }

    .popup-content .close-btn {
        font-size: 20px;
    }

    .popup-content img {
        width: 60px;
    }
}

/* استجابة للشاشات الصغيرة جدًا */
@media (max-width: 480px) {
    .popup-content {
        padding: 10px;
        width: 95%;
    }

    .popup-content h2 {
        font-size: 18px;
    }

    .popup-content p {
        font-size: 13px;
    }

    .popup-content img {
        width: 50px;
    }
}

/* تأثير الظهور */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
