﻿/* 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;
	align-items: center;
	justify-content: center;
	pointer-events: none; 
	z-index: 1200; 
	padding: 0;
	box-sizing: border-box;
	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);
	}

	/* 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;
	}

	/* Keep a compact helper if you want both spinner + small text */
	.dashboard-loading .loading-compact {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: .4rem;
	}

/* 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;
	}
}
