@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Loading spinner */

.app-loading {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 2rem 1rem;
	color: #333;
}

.app-spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #e0e0e0;
	border-top-color: #3b82f6;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

.app-loading-text {
	margin-top: 1.5rem;
	font-size: 1rem;
	color: #666;
}

/* Error fallback */

.app-error {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	display: none;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	padding: 2rem 1rem;
	color: #333;
}

.app-error-card {
	max-width: 520px;
	width: 100%;
	text-align: center;
}

.app-error-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	background: #fef2f2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.app-error-icon svg {
	width: 28px;
	height: 28px;
	color: #dc2626;
}

.app-error h1 {
	font-size: 1.25rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
	color: #111;
}

.app-error p {
	font-size: 0.95rem;
	line-height: 1.6;
	margin: 0 0 1rem;
	color: #555;
}

.app-error-steps {
	text-align: left;
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	background: #f8fafc;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}

.app-error-steps h2 {
	font-size: 0.85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
	margin: 0 0 0.75rem;
}

.app-error-steps ol {
	margin: 0;
	padding-left: 1.25rem;
}

.app-error-steps li {
	font-size: 0.9rem;
	line-height: 1.6;
	color: #444;
	margin-bottom: 0.25rem;
}

.app-error-steps li:last-child {
	margin-bottom: 0;
}

.app-error-retry {
	display: inline-block;
	margin-top: 1.25rem;
	padding: 0.6rem 1.75rem;
	background: #3b82f6;
	color: #fff;
	font-size: 0.95rem;
	font-weight: 500;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background 0.15s;
}

.app-error-retry:hover {
	background: #2563eb;
}

.app-error-contact {
	margin-top: 1.5rem;
	font-size: 0.85rem;
	color: #888;
}

.app-error-contact a {
	color: #3b82f6;
	text-decoration: none;
}

.app-error-contact a:hover {
	text-decoration: underline;
}
