/**
 * FormSubmitGuard 레이어 팝업 스타일
 * @version 2.0.0
 * @since 2026-01-13
 */

/* 전체 오버레이 컨테이너 */
#formSubmitGuardOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

/* 배경 반투명 레이어 (클릭 차단) */
.fsg-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* 모달 박스 */
.fsg-modal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 40px 60px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 200px;
}

/* 스피너 애니메이션 */
.fsg-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: fsg-spin 1s linear infinite;
}

@keyframes fsg-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 메인 메시지 (저장 중..., 삭제 중...) */
.fsg-message {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

/* 서브 메시지 (잠시만 기다려주세요) */
.fsg-submessage {
    font-size: 14px;
    color: #666;
}

/* 중복 클릭 시 흔들림 효과 */
.fsg-shake {
    animation: fsg-shake 0.5s ease-in-out;
}

@keyframes fsg-shake {
    0%, 100% { transform: translate(-50%, -50%); }
    10%, 30%, 50%, 70%, 90% { transform: translate(-48%, -50%); }
    20%, 40%, 60%, 80% { transform: translate(-52%, -50%); }
}
