/*
 * 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.7);
}

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

.dialog {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	width: 22rem;
	max-width: calc(100% - 2rem);
	margin: 0 1rem;
	padding: 1.25rem;
	border-radius: 0.75rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-primary);
	text-align: center;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.dialogIconCircle {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 3rem;
	width: 3rem;
	border-radius: 0.75rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-secondary);
}

.dialogIcon {
	height: 1.5rem;
	width: 1.5rem;
	color: var(--text-primary-muted);
}

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

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

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

.statusBanner {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.25rem;
	padding: 0.45rem 0.65rem;
	border-radius: 0.5rem;
	font-size: 0.75rem;
}

.statusBannerActive {
	background-color: var(--background-secondary);
	color: var(--text-primary);
}

.statusBannerDefault {
	background-color: var(--background-secondary);
	color: var(--text-primary-muted);
}

.statusIndicator {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 0.35rem;
	border: 1px solid var(--background-modifier-hover);
	background-color: var(--background-primary);
}

.statusIndicatorActive {
	border-color: var(--brand-primary);
	background-color: var(--brand-primary);
}

.statusIcon {
	height: 0.75rem;
	width: 0.75rem;
	color: var(--text-primary-muted);
}

.statusIndicatorActive .statusIcon {
	color: var(--brand-primary-fill);
}
