/* 럭셔리 메시지 박스 스타일 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
/* backdrop-filter 속성 제거 - 흐릿함 문제 해결 */
  will-change: opacity, transform; /* 렌더링 성능 최적화 */
  transform: translateZ(0); /* 하드웨어 가속 활성화 */
  animation: fadeIn 0.3s ease-out;
}

.popup-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  width: 90%;
  max-width: 450px;
  
  overflow: hidden;
  animation: slideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: 'Montserrat', sans-serif;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 20px 25px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.logo-container {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 0;
}

.popup-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-title::before,
.popup-title::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.2), transparent);
  margin: 0 15px;
}

.popup-title.success {
  color: #0c6e38;
}

.popup-title.error {
  color: #a71d2a;
}

.popup-title.warning {
  color: #cf8f00;
}

.popup-content {
  padding: 25px 30px;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  text-align: center;
  max-height: 300px;
  overflow-y: auto;
  font-weight: 400;
  letter-spacing: 0.2px;
}

.popup-footer {
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  gap: 15px;
}

.popup-button {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
  box-shadow: 0 4px 12px rgba(13, 71, 161, 0.2);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.button-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.close-button {
  padding: 15px 35px;
  min-width: 180px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 6px 15px rgba(13, 71, 161, 0.3);
  background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
}

.close-button:hover {
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
}

.button-text {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
}

.popup-button:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.3s;
}

.popup-button:hover {
  background: linear-gradient(135deg, #0a3d8f 0%, #0d47a1 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(13, 71, 161, 0.3);
}

.popup-button:hover:after {
  opacity: 1;
}

.popup-button-custom {
  background: linear-gradient(135deg, #0c6e38 0%, #28a745 100%);
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.2);
}

.popup-button-custom:hover {
  background: linear-gradient(135deg, #0a5a2d 0%, #218838 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(40, 167, 69, 0.3);
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}
