﻿/* Minimal, non-blocking centered spinner for Dashboard.IsLoading.
   No overlay background or blur — spinner floats in the middle while keeping the page visible.
   Keeps existing spinner sizes but uses fallbacks for CSS variables if they are not defined elsewhere.
*/
.dashboard-loading {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 2147483647 !important;
	pointer-events: all;
	background: transparent;
	backdrop-filter: none;
}

	/* Scoped spinner styling only for the floating spinner */
	.dashboard-loading .spinner-border {
		pointer-events: auto; /* spinner itself does not block pointer events globally */
		width: 56px;
		height: 56px;
		border-width: 6px;
		border-radius: 50%;
		border-style: solid;
		border-color: var(--ek-red) transparent transparent transparent;
		animation: eckoo-spin 1s linear infinite;
		box-shadow: 0 6px 18px rgba(0,0,0,0.06);
		z-index:99999;
	}

	/* Optional small loading text below spinner (kept visually hidden by default in markup) */
	.dashboard-loading .loading-text {
		margin-top: 0.5rem;
		color: var(--eckoo-red-ghost);
		font-size: 0.95rem;
		line-height: 1;
		opacity: 0.95;
		pointer-events: none;
		z-index:99999;
	}

	.dashboard-loading .loading-compact {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: .6rem;
		background: rgba(255,255,255,0.95);
		padding: 1rem 1.5rem;
		border-radius: 16px;
		box-shadow: 0 10px 30px rgba(0,0,0,0.12);
		pointer-events: auto;
	}

/* Spinner rotation animation */
@keyframes eckoo-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
	.dashboard-loading .spinner-border {
		animation: none !important;
	}
}

/* Slightly smaller on small viewports */
@media (max-width: 420px) {
	.dashboard-loading .spinner-border {
		width: 44px;
		height: 44px;
		border-width: 5px;
	}
}
