/* ============================================================
   PUPLECOVE — SweetAlert2 커스텀 테마
   Layout.php 에서 puplecove.com 도메인일 때만 로드됨 (전역 오버라이드 안전)
   ============================================================ */

/* 팝업 컨테이너 */
.swal2-popup {
    position: relative;
    border-radius: 8px;
    font-family: 'Poppins', 'Noto Sans KR', -apple-system, sans-serif;
    padding: 2.2em 1.8em 1.8em;
    box-shadow: 0 24px 60px rgba(156, 51, 242, 0.16);
}

/* 상단 퍼플 라인 액센트 */
.swal2-popup::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, #9c33f2, #b363f5);
    border-radius: 8px 8px 0 0;
}

/* 타이틀 / 본문 */
.swal2-title {
    color: #1a1523;
    font-weight: 600;
    font-size: 1.35em;
    letter-spacing: -0.01em;
}
.swal2-html-container,
.swal2-html-container p {
    color: #5f596f;
    font-size: 1em;
    line-height: 1.6;
}

/* ---- 버튼 : 확인(퍼플) ---- */
.swal2-actions .swal2-confirm,
.swal2-actions .swal2-confirm.btn-info,
.swal2-actions .swal2-confirm.btn-primary,
.swal2-actions .swal2-confirm.btn-danger,
.swal2-styled.swal2-confirm {
    background: #9c33f2 !important;
    background-color: #9c33f2 !important;
    border: 1px solid #9c33f2 !important;
    color: #fff !important;
    border-radius: 4px !important;
    padding: 0.72em 1.7em !important;
    font-weight: 600 !important;
    letter-spacing: 0.4px;
    box-shadow: none !important;
    transition: all 0.2s ease;
}
.swal2-actions .swal2-confirm:hover,
.swal2-styled.swal2-confirm:hover {
    background: #840fe3 !important;
    border-color: #840fe3 !important;
    color: #fff !important;
}
.swal2-styled.swal2-confirm:focus {
    box-shadow: 0 0 0 3px rgba(156, 51, 242, 0.28) !important;
}

/* ---- 버튼 : 취소(고스트) ---- */
.swal2-actions .swal2-cancel,
.swal2-actions .swal2-cancel.btn-warning,
.swal2-styled.swal2-cancel {
    background: #fff !important;
    color: #5f596f !important;
    border: 1px solid #e7e2ef !important;
    border-radius: 4px !important;
    padding: 0.72em 1.7em !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}
.swal2-actions .swal2-cancel:hover,
.swal2-styled.swal2-cancel:hover {
    background: #faf7ff !important;
    color: #1a1523 !important;
    border-color: #d9cdf0 !important;
}

/* ---- 아이콘 : info / question / success 퍼플 톤 (error/warning 은 시맨틱 유지) ---- */
.swal2-icon.swal2-info,
.swal2-icon.swal2-question {
    border-color: rgba(156, 51, 242, 0.3) !important;
    color: #9c33f2 !important;
}
/* success 아이콘 퍼플 (링 + 체크 라인) */
.swal2-icon.swal2-success { border-color: rgba(156, 51, 242, 0.3) !important; color: #9c33f2 !important; }
.swal2-icon.swal2-success .swal2-success-ring { border-color: rgba(156, 51, 242, 0.3) !important; }
.swal2-icon.swal2-success .swal2-success-line-tip,
.swal2-icon.swal2-success .swal2-success-line-long { background-color: #9c33f2 !important; }
/* error 아이콘 퍼플 (링 + X 마크) */
.swal2-icon.swal2-error { border-color: rgba(156, 51, 242, 0.3) !important; color: #9c33f2 !important; }
.swal2-icon.swal2-error .swal2-x-mark-line-left,
.swal2-icon.swal2-error .swal2-x-mark-line-right { background-color: #9c33f2 !important; }

/* ---- Toast 형태 (swal) ---- */
.swal2-popup.swal2-toast { box-shadow: 0 8px 24px rgba(156, 51, 242, 0.18); }
.swal2-popup.swal2-toast::before { height: 3px; }
.swal2-popup.swal2-toast .swal2-title { font-size: 0.95em; }

/* ============================================================
   Toastr 알림 커스텀 (toastrWarning / toastrFail / toastrSuccess 등)
   ============================================================ */
#toast-container > div {
    border-radius: 8px;
    font-family: 'Poppins', 'Noto Sans KR', sans-serif;
    box-shadow: 0 12px 30px rgba(156, 51, 242, 0.20) !important;
    opacity: 1;
    padding: 16px 18px 16px 50px;
}
#toast-container > div:hover { box-shadow: 0 16px 38px rgba(156, 51, 242, 0.28) !important; }
.toast-title { font-weight: 700; letter-spacing: -0.01em; }
.toast-message { font-size: 13px; line-height: 1.5; }
/* info · warning · error 브랜드 퍼플로 통일 (styles.css 의 !important 규칙을 이기려 !important + 높은 우선순위) */
#toast-container > .toast-info,
#toast-container > .toast-warning,
#toast-container > .toast-error { background-color: #9c33f2 !important; }
.toast-progress { background-color: rgba(255, 255, 255, 0.45); opacity: 0.7; }
