/**
 * 커스텀 모달 팝업 스타일
 * www 사용자 페이지 전용
 */

/* 모달 오버레이 */
.custom-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	opacity: 0;
	transition: opacity 0.3s ease;
	justify-content: center;
	align-items: center;
}
.custom-modal-overlay.show {
	display: flex;
	opacity: 1;
}

/* 모달 컨테이너 */
.custom-modal {
	display: none;
	position: relative;
	top: auto;
	left: auto;
	transform: scale(0.9);
	background-color: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	z-index: 9999;
	min-width: 320px;
	max-width: 400px;
	opacity: 0;
	transition: all 0.3s ease;
	margin: 20px;
}
.custom-modal.show {
	display: block;
	opacity: 1;
	transform: scale(1);
}

/* 모달 바디 */
.custom-modal-body {
	padding: 30px 30px 25px;
	text-align: center;
}
.custom-modal-message {
	font-size: 15px;
	color: #333;
	line-height: 1.6;
	word-break: keep-all;
}

/* 모달 푸터 */
.custom-modal-footer {
	padding: 0 20px 25px;
	text-align: center;
}

/* 확인 버튼 - 탄소중립마일리지 테마색 적용 */
.custom-modal-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 40px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	background: linear-gradient(135deg, #29a075 0%, #3cb88a 100%);
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	box-shadow: 0 4px 15px rgba(41, 160, 117, 0.3);
}
.custom-modal-btn:hover {
	background: linear-gradient(135deg, #1e8a63 0%, #29a075 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(41, 160, 117, 0.4);
}
.custom-modal-btn:active {
	transform: translateY(0);
}

/* 컨펌 모달 버튼 래퍼 */
.custom-modal-btn-wrap {
	display: flex;
	justify-content: center;
	gap: 10px;
}

/* 취소 버튼 */
.custom-modal-btn.cancel {
	background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
	box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}
.custom-modal-btn.cancel:hover {
	background: linear-gradient(135deg, #545b62 0%, #6c757d 100%);
	box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* 모바일 대응 */
@media screen and (max-width: 480px) {
	.custom-modal {
		min-width: 280px;
		max-width: calc(100% - 40px);
	}
	.custom-modal-body {
		padding: 25px 20px 20px;
	}
	.custom-modal-footer {
		padding: 0 15px 20px;
	}
	.custom-modal-btn {
		padding: 10px 30px;
		font-size: 13px;
	}
}

/* ============================================
   모던 로딩바 스타일
   ============================================ */
.modern-loading-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(255, 255, 255, 0.9);
	z-index: 99999;
	justify-content: center;
	align-items: center;
}
.modern-loading-overlay.show {
	display: flex;
}
.modern-loading-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 40px 60px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}
.modern-loading-logo {
	margin-bottom: 24px;
	animation: logoPulse 1.5s ease-in-out infinite;
}
.modern-loading-logo img {
	width: 100px;
	height: auto;
	filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}
.modern-loading-spinner {
	width: 50px;
	height: 50px;
	border: 4px solid #e0e0e0;
	border-top-color: #29a075;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin-bottom: 20px;
}
.modern-loading-text {
	font-size: 15px;
	font-weight: 500;
	color: #333;
	letter-spacing: 0.5px;
}

/* 로딩바 애니메이션 */
@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
@keyframes logoPulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.7; transform: scale(0.95); }
}