/* 모달 중앙 정렬 및 배경 처리 */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1050;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal.show {
  display: flex;
}

.modal-dialog {
  position: relative;
  width: auto;
  margin: 1.75rem auto;
  pointer-events: none;
  max-width: 500px;
}

.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.3rem;
  outline: 0;
  pointer-events: auto;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  position: relative;
  min-height: 2rem;
}

.bootbox-body {
  font-size: 1.2em;
}

.bootbox-close-button.close,
.bootbox .modal-header .close,
.bootbox .modal-header .btn-close {
  position: absolute;
  top: 1.2rem;
  right: 0.6rem;
  font-size: 1.25rem;
  font-weight: bold;
  color: #000;
  opacity: 0.5;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 1;
}

.bootbox .modal-header .close:hover,
.bootbox .modal-header .btn-close:hover {
  opacity: 0.8;
}

.bootbox .modal-header .close::before,
.bootbox .modal-header .btn-close::before {
  content: "×";
}

/* 내용 영역 */
.modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 2rem 1rem;
}

/* 하단 버튼 영역 */
.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  padding: 0.75rem;
  border-top: 1px solid #dee2e6;
}

/* 버튼 스타일 */
.btn {
  display: inline-block;
  font-weight: 400;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  background-color: #0d6efd;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  transition: background-color 0.15s ease-in-out;
}

.btn:hover {
  background-color: #0b5ed7;
}

.bootbox .btn-primary {
  background-color: #6c757d; /* 회색으로 변경 */
  border-color: #6c757d;
}

.bootbox .btn-primary:hover {
  background-color: #5c636a;
  border-color: #545b62;
}

/* 모달 크기 제한 */
.bootbox .modal-dialog {
  max-width: 400px;
  width: 90%;
}
