* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 로딩 */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  z-index: 9999;
  opacity: 0.8;
  transition: 0.5s ease;
  display: none;
}

.loading_box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  background: #bebebe;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.loading_box .loadingIcon {
  z-index: 1;
  border: 2px solid #f3f3f3;
  border-radius: 50%;
  border-top: 2px solid #bebebe;
  width: 24px;
  height: 24px;
  -webkit-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
}

/* 로딩 돌리는거 */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* 모달 백그라운드 (어두운 배경) */
.modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 배경 */
    justify-content: center;
    align-items: center;
}

/* 모달 활성화 시 표시 */
.modal.d-flex {
    display: flex;
}

/* 모달 다이얼로그 (모달 창) */
.modal-dialog {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* 모달 컨텐츠 */
.modal-content {
    padding: 20px;
}

/* 모달 바디 텍스트 */
.modal-body {
    text-align: center;
    font-size: 18px;
    padding: 20px;
}

/* 모달 버튼 영역 */
.modal-footer {
    display: flex;
    justify-content: space-around;
    padding: 10px 20px;
}

/* 버튼 스타일 */
button {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* 기본 버튼 스타일 */
button.common-modal-option, button.common-modal-option-1, button.common-modal-option-2 {
    background-color: #007bff;
    color: white;
}

button.common-modal-option-1 {
    background-color: #f0f0f0;
    color: #333;
}


/* 커스텀 모달 */
/* Overlay 스타일 */
.css-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(175 175 175 / 75%);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1050;
}

/* 모달 내용 컨테이너 */
.css-modal-content {
    background-color: #fff;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 헤더 스타일 */
.css-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
}

.css-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.css-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.css-modal-close:hover {
    color: #007bff;
}

/* 바디 스타일 */
.css-modal-body {
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

/* 로그인 바디 스타일 */
.login-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 로그인 컨테이너 */
.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

/* 로그인 헤더 */
.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.login-header p {
    color: #666;
    font-size: 14px;
}

/* 로그인 폼 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 로그인 버튼 */
.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.messages {
    margin-bottom: 20px;
}

.message {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.message.error {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message.success {
    background-color: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

/* 로그인 푸터 */
.footer {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
}