/*
 * 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/>.
 */

.container {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.header {
	display: flex;
	flex-direction: column;
}

.title {
	margin-bottom: 0.5rem;
	font-weight: 600;
	font-size: 1.25rem;
	line-height: 1.75rem;
}

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

.spinnerContainer {
	display: flex;
	justify-content: center;
	padding: 2rem 0;
}

.warning {
	border-radius: 0.375rem;
	border: 1px solid rgba(234, 179, 8, 0.5);
	background-color: rgba(234, 179, 8, 0.1);
	padding: 1rem;
}

.warningContent {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.warningIcon {
	margin-top: 0.125rem;
	color: rgb(234, 179, 8);
}

.warningBody {
	flex: 1;
}

.warningTitle {
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: rgb(234, 179, 8);
}

.warningText {
	margin-top: 0.25rem;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-primary-muted);
}

.formCard {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	border-radius: 0.375rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-secondary);
	padding: 1rem;
}

.fieldLabel {
	margin-bottom: 0.5rem;
	display: block;
	font-weight: 600;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.inputRow {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

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

.inputWrapper {
	flex: 1;
}

.helpText {
	margin-top: 0.5rem;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--text-primary-muted);
}

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

.usageValue {
	font-weight: 600;
	color: var(--text-primary);
}

.actions {
	display: flex;
	justify-content: flex-end;
}

.actions > * {
	flex: none;
}
