/*
 * Copyright (C) 2026 Fluxer Contributors
 *
 * This file is part of Fluxer.
 *
 * Fluxer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Fluxer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
 */

.overlay {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: var(--z-index-modal-swap);
	background-color: rgba(0, 0, 0, 0.85);
}

:global(html.platform-native:not(.platform-macos)) .overlay {
	top: var(--native-titlebar-height);
}

.dialog {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	width: 24rem;
	max-width: calc(100% - 2rem);
	margin: 0 1rem;
	padding: 1.5rem;
	border-radius: 0.5rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-primary);
	text-align: center;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.dialogIconCircle {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 4rem;
	width: 4rem;
	border-radius: 9999px;
	background-color: var(--brand-primary);
}

.dialogIcon {
	height: 2rem;
	width: 2rem;
	color: var(--brand-primary-fill);
}

.dialogTextBlock {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.5rem;
	height: 5rem;
}

.dialogTitle {
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--text-primary);
}

.dialogDescription {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text-primary-muted);
}

.statusBanner {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: 2.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.375rem;
	font-size: 0.75rem;
	transition:
		background-color 0.2s ease,
		color 0.2s ease,
		box-shadow 0.2s ease;
}

.statusBannerActive {
	background-color: var(--brand-primary);
	color: var(--brand-primary-fill);
	box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.statusBannerDefault {
	background-color: var(--background-secondary);
	color: var(--text-primary-muted);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.statusIndicator {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 0.375rem;
	border: 1px solid var(--background-modifier-hover);
	background-color: var(--background-primary);
	transition:
		border-color 0.2s ease,
		background-color 0.2s ease,
		opacity 0.2s ease,
		box-shadow 0.2s ease;
}

.statusIndicatorActive {
	border-color: var(--brand-primary-light);
	background-color: var(--brand-primary-light);
	opacity: 0.4;
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
}

.statusIndicatorDefault {
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.statusIcon {
	height: 0.75rem;
	width: 0.75rem;
}
