﻿/* AJAX Call Overlay Modal Form */
.main-overlay-ajax-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 99999;
}

.main-overlay-ajax-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    text-align: center;
    min-width: 220px;
}

/* Confirm Overlay Modal Form */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    transition: opacity 0.15s ease;
}

    .modal-overlay.show {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

    /* Show modal when targeted */
    .modal-overlay:target {
        display: flex;
    }

/* Modal box */
.modal {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalFadeIn 0.2s ease-out;
}

/* Header */
.modal-header {
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
}

    .modal-header h3 {
        margin: 0;
        font-size: 1.1rem;
    }

/* Body */
.modal-body {
    padding: 16px;
    font-size: 0.95rem;
}

/* Footer */
.modal-footer {
    padding: 16px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

    .modal-footer form {
        display: inline-flex;
        gap: 8px;
    }

/* Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
