/* The loading screen of the host's index.html, before .NET runs. The host's theme.css sets the --app-startup-* colours,
   light and dark, and supplies the logo */

/* The page takes the screen's background and scheme from the first frame, before Radzen's theme loads */
:root {
	background: var(--app-startup-background);
}

:root[data-theme="dark"] {
	color-scheme: dark;
}

.app-startup {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(var(--app-space-4), 4vw, var(--app-space-8));
	background: var(--app-startup-background);
}

.app-startup-shell {
	width: min(100%, 24rem);
	display: flex;
	flex-direction: column;
	gap: var(--app-space-3);
}

.app-startup-logo {
	width: clamp(10rem, 40vw, 14rem);
	height: auto;
	align-self: center;
	margin-bottom: var(--app-space-1);
}

.app-startup-label {
	margin: 0;
	color: var(--app-startup-text);
	font-size: 0.9375rem;
	font-weight: 600;
	text-align: center;
}

.loading-progress {
	position: relative;
	display: block;
	width: 100%;
	height: 0.25rem;
	overflow: hidden;
	border-radius: 999px;
	background: var(--app-startup-track);
}

	.loading-progress::before {
		content: "";
		position: absolute;
		inset: 0;
		width: var(--blazor-load-percentage, 0%);
		border-radius: inherit;
		background: var(--app-startup-bar);
		transition: width 0.18s ease-out;
	}

.app-startup-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--app-space-2);
}

.loading-progress-text {
	min-width: 3ch;
	color: var(--app-startup-muted);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

	.loading-progress-text::after {
		content: var(--blazor-load-percentage-text, "0%");
	}

@media (max-width: 480px) {
	.app-startup-shell {
		gap: var(--app-space-2);
	}

	.app-startup-logo {
		margin-bottom: 0;
	}

	.app-startup-label {
		font-size: 0.875rem;
	}

	.loading-progress-text {
		font-size: 0.6875rem;
	}
}