/* modules/toast.css - 토스트 UI 전용 스타일 */

#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  min-width: 280px;
  max-width: 400px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #f8fafc;
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: auto;
  
  /* 애니메이션 */
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.toast-message {
  flex-grow: 1;
  line-height: 1.4;
}

/* 토스트 종류별 컬러 설정 (Green, Yellow, Red) */
.toast-success {
  border-left: 4px solid #00A896;
}
.toast-success .toast-icon {
  color: #02C39A;
}

.toast-warning {
  border-left: 4px solid #F59E0B;
}
.toast-warning .toast-icon {
  color: #F59E0B;
}

.toast-error {
  border-left: 4px solid #EF4444;
}
.toast-error .toast-icon {
  color: #EF4444;
}

/* ====================================================
   ★ 중앙 완료 팝업 모달 (Center Success Modal) 스타일
   ==================================================== */
.center-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 11000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.center-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.center-modal-content {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  width: 90%;
  max-width: 440px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.center-modal-overlay.active .center-modal-content {
  transform: scale(1) translateY(0);
}

/* SVG 체크마크 드로잉 애니메이션 */
.center-modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px auto;
}

.checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #E5C158; /* 기본 골드 테마 강조색 */
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px rgba(229, 193, 88, 0);
  animation: fillGold .4s ease-in-out .4s forwards, scale .3s ease-in-out 0s both;
}

/* 테마가 틸일 때 아이콘 컬러 변경 */
.theme-teal .checkmark {
  stroke: #02C39A;
  box-shadow: inset 0px 0px 0px rgba(2, 195, 154, 0);
  animation: fillTeal .4s ease-in-out .4s forwards, scale .3s ease-in-out 0s both;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #E5C158;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.theme-teal .checkmark__circle {
  stroke: #02C39A;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke: #E5C158;
  fill: none;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.theme-teal .checkmark__check {
  stroke: #02C39A;
}

@keyframes stroke {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}

@keyframes fillGold {
  100% {
    box-shadow: inset 0px 0px 0px 40px rgba(229, 193, 88, 0.1);
  }
}

@keyframes fillTeal {
  100% {
    box-shadow: inset 0px 0px 0px 40px rgba(2, 195, 154, 0.1);
  }
}

.center-modal-title {
  color: #f8fafc;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.center-modal-message {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 30px;
  word-break: keep-all;
}

.center-modal-btn {
  background: linear-gradient(135deg, #E5C158, #C5A038); /* 골드 그라디언트 */
  color: #0b0f19;
  border: none;
  padding: 14px 36px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 193, 88, 0.25);
}

/* 틸 테마 그라디언트 및 섀도우 대응 */
.theme-teal .center-modal-btn {
  background: linear-gradient(135deg, #02C39A, #00A896);
  color: #0b0f19;
  box-shadow: 0 4px 15px rgba(2, 195, 154, 0.25);
}

.center-modal-btn:hover {
  transform: translateY(-2px);
}

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

/* ====================================================
   ★ 대형 완료 모달 내 버튼 그룹 (CTA 최적화)
   ==================================================== */
.modal-btn-group {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.modal-btn-group .center-modal-btn {
  margin-bottom: 0 !important;
}

.center-modal-btn.btn-edu-modal {
  background: linear-gradient(135deg, #02C39A, #00A896) !important;
  color: #0b0f19 !important;
  box-shadow: 0 4px 15px rgba(2, 195, 154, 0.25) !important;
  flex: 1.5;
}

.center-modal-btn.btn-edu-modal:hover {
  transform: translateY(-2px) !important;
  filter: brightness(1.1) !important;
}

.center-modal-btn.btn-edu-modal:active {
  transform: translateY(0) !important;
}

.center-modal-btn.btn-close-modal {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
  box-shadow: none !important;
  flex: 1;
}

.center-modal-btn.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* 라이트 테마 하에서의 완료 모달 버튼 그룹 스타일링 */
.rpa-light-theme .center-modal-btn.btn-close-modal {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: none !important;
}

.rpa-light-theme .center-modal-btn.btn-close-modal:hover {
  background: #e2e8f0 !important;
}

.rpa-light-theme .center-modal-btn.btn-edu-modal {
  background: linear-gradient(135deg, #02c39a, #00a896) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(2, 195, 154, 0.2) !important;
}


