/* Notification Modal Popup Styles */

#NotificationModelPopup {
    position: absolute;
    z-index: 1001;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 8px;
    width: auto
}

/* Header Styles */
.modal-header-PopUp {
    padding: 6px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F3F4F6;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-header-PopUp p {
    margin: 0;
    padding: 0;
    font-weight: 600;
    font-style:normal;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #51596C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Close Button */
.close-button-PopUp {
    background: transparent;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: #666666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease, color 0.2s ease;
    outline:none;
}

/* Body/Content Styles */
.modal-body-PopUp {
    padding: 6px 12px;
    overflow-y: auto;
    flex: 1;
    line-height: 1.5;
    background-color: #F6F7FA;
    min-height: 120px;
    border: 1px solid var(--Controls-Border, #EDEDED);
    border-radius: 2px;
    margin: 16px 24px;
    max-height: 75vh !important;
    width: 700px !important;
}

.modal-body-PopUp::-webkit-scrollbar {
    width: 6px;
}

.modal-body-PopUp::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-body-PopUp::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.modal-body-PopUp::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Footer/Button Area Styles */
.modal-footer-PopUp {
    padding: 16px 20px;
    display: flex;
    justify-content: center;
    gap: 12px;
    border-top: none;
    background-color: #ffffff;
}

/* Primary Button (Continue/Paste) */
.ContinueButton,
#ContinueButtonPopUp {
    background-color: #0078d4;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 10px 24px;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    min-width: 80px;
    margin: 16px auto;
    font-weight: 700;
    font-style: normal;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0px;
    text-align: center;
    vertical-align: middle;
}

.ContinueButton:hover,
#ContinueButtonPopUp:hover {
    background-color: #106ebe;
}

.ContinueButton:focus,
#ContinueButtonPopUp:focus {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

.ContinueButton:active,
#ContinueButtonPopUp:active {
    background-color: #005a9e;
}

/* Secondary Button (Cancel) */
.CancelButton,
#CancelButtonPopUp {
    background-color: #ffffff;
    color: #0078d4;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    min-width: 80px;
}

.CancelButton:hover,
#CancelButtonPopUp:hover {
    background-color: #f5f5f5;
    border-color: #c1c1c1;
}

.CancelButton:focus,
#CancelButtonPopUp:focus {
    outline: 2px solid #0078d4;
    outline-offset: 2px;
}

/* Center button alignment */
.center-button {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Overlay Styles */
.overlayControl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    #NotificationModelPopup {
        width: calc(100% - 24px);
        max-height: calc(100% - 48px);
    }

    .modal-header-PopUp {
        padding: 12px 16px;
    }

    .modal-body-PopUp {
        padding: 16px;
        margin: 12px 16px;
        min-height: 100px;
    }

    .ContinueButton,
    #ContinueButtonPopUp,
    .CancelButton,
    #CancelButtonPopUp {
        padding: 10px 20px;
        font-size: 14px;
    }
}

body.modal-open *:not(#NotificationModelPopup):not(#NotificationModelPopup *) {
    pointer-events: none !important;
    user-select: none !important;
}
