﻿/* Background overlay */
.modalBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Message popup - centered */
.responsive-message-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90% !important;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
    z-index: 9999;
    margin: 0 !important;
}

    .responsive-message-modal .modal-content {
        width: 100%;
        box-sizing: border-box;
        border: none;
        border-radius: 8px;
    }

    .responsive-message-modal .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 15px;
        font-weight: bold;
        border-bottom: 1px solid #ddd;
    }

    .responsive-message-modal .modal-body {
        padding: 20px;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

/* Processing popup - centered */
.responsive-progress-modal {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 180px;
    max-width: calc(100% - 30px);
    box-sizing: border-box;
    padding: 20px 10px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    z-index: 10000;
    margin: 0 !important;
}

.progress-content img {
    max-width: 100%;
    height: auto;
}

.progress-content b {
    display: inline-block;
    margin-top: 10px;
}

/* Mobile */
@media (max-width: 576px) {
    .responsive-message-modal {
        width: calc(100% - 24px) !important;
        max-height: 80vh;
    }

        .responsive-message-modal .modal-header {
            padding: 12px;
        }

        .responsive-message-modal .modal-body {
            padding: 15px;
        }
}
