﻿/* ===== Modal Root ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

    /* 열렸을 때 */
    .modal.is-open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
    }

/* ===== Backdrop ===== */
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
    opacity:.3;
}

/* ===== header ===== */
.modal-header {
    padding: 8px 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #444;
    border-bottom: 1px solid #ddd;
}

/* ===== Content ===== */
.modal-content {
    position: relative;
    width: 720px;
    max-width: calc(100% - 40px);
    max-height: 80vh;
    background: #fff;
    border-radius: 6px;
    z-index: 1;
    display: inline-block;
    padding: 12px;
}

/* ===== Body ===== */
.modal-body {
    padding: 16px;
    max-height: 70vh;
    overflow-y: auto;
}

/* ===== Footer ===== */
.modal-footer {
    padding: 12px 16px;
    border-top: 1px solid #e5e5e5;
    text-align: right;
}

/* ===== Size Variants ===== */

/* Small */
.modal-sm .modal-content {
    width: 420px;
}

/* Medium (default와 동일해도 명시 가능) */
.modal-md .modal-content {
    width: 720px;
}

/* Large */
.modal-lg .modal-content {
    width: 1000px;
}

/* Full Width */
.modal-xl .modal-content {
    width: calc(100% - 40px);
}

/* Full Screen */
.modal-full .modal-content {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
}

.modal-h-sm .modal-content {
    max-height: 50vh;
}

.modal-h-lg .modal-content {
    max-height: 90vh;
}