/* Ongyul 프로젝트 공통 모달 유틸 스타일 */

/* 관리자 커스텀 모달용 (LB.Modal.open 직접 사용) */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 10001;
    animation: fadeIn 0.2s ease;
}

.modal-box {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
    max-height: calc(100dvh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #edf0f3;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f4f5f7;
    color: #6b7280;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #e5e8eb;
    color: #333d4b;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 20px 24px;
}

/* form을 직접 modal-box 안에 쓰는 모달 대응 */
.modal-box > form {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    padding: 20px 24px;
}

.modal-footer {
    padding: 16px 24px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    border-top: 1px solid #edf0f3;
    background: #fff;
    flex-shrink: 0;
}

/* ModalUtil용 (alert/confirm) */
.lb-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lb-modal-box {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lb-modal-body {
    padding: 16px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.lb-modal-footer {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 20px;
}

.lb-modal-footer button {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm {
    background: #3182F6;
    color: white;
}

.btn-confirm:hover {
    background: #1B64DA;
}

.btn-cancel {
    background: #F4F5F7;
    color: #333;
}

.btn-cancel:hover {
    background: #E5E7EB;
}
