/* 全站 loading 遮罩（wwwroot/js/common/loadingUtil.js）
   層級：Bootstrap Modal 是 1055、SweetAlert2 是 1060 ——
   夾在中間，遮得住 Modal，但成功／錯誤／確認視窗仍在它上面、可以操作。 */
.global-loading {
	position: fixed;
	inset: 0;
	z-index: 1058;
	display: none;
	align-items: center;
	justify-content: center;
	background: transparent;
	cursor: progress;
}

/* is-active：已攔下點擊但仍透明；is-visible：超過延遲後才看得到 */
.global-loading.is-active {
	display: flex;
}

.global-loading.is-visible {
	background: rgba(0, 0, 0, 0.35);
}

.global-loading-box {
	display: none;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	min-width: 10rem;
	padding: 1.5rem 2rem;
	border-radius: 0.5rem;
	background: #fff;
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.2);
}

.global-loading.is-visible .global-loading-box {
	display: flex;
}

.global-loading-spinner {
	width: 2.5rem;
	height: 2.5rem;
	color: var(--bs-primary, #0d6efd);
}

.global-loading-text {
	font-size: 1rem;
	color: #333;
}
