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

.page {
	--report-max-width: 640px;
	max-width: var(--report-max-width);
	width: 100%;
	margin: 0 auto;
	padding: 1rem 0 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.breadcrumbs {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 0.25rem;
}

.breadcrumbShell {
	position: sticky;
	top: 0;
	z-index: 5;
	padding-top: 0.3rem;
	padding-bottom: 0.5rem;
	margin-bottom: 0.25rem;
	min-height: 2.5rem;
	display: flex;
	align-items: center;
	width: 100%;
}

.breadcrumbPlaceholder {
	width: 100%;
	height: 1.5rem;
}

.breadcrumbStep {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.6rem;
	border-radius: 0.5rem;
	background: none;
	border: none;
	color: var(--text-tertiary);
	font-size: 0.85rem;
	cursor: pointer;
	transition:
		color 0.1s ease,
		background 0.1s ease;
}

.breadcrumbStep:disabled {
	opacity: 0.6;
	cursor: default;
}

.breadcrumbStep:hover:not(:disabled) {
	color: var(--text-secondary);
}

.breadcrumbActive {
	color: var(--text-primary);
	cursor: default;
	background: color-mix(in srgb, var(--background-modifier-accent) 60%, transparent);
}

.breadcrumbActive:hover {
	color: var(--text-primary);
}

.breadcrumbNumber {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 50%;
	background: var(--background-modifier-accent);
	font-weight: 600;
	font-size: 0.8rem;
}

.breadcrumbActive .breadcrumbNumber {
	background: var(--brand-primary);
	color: white;
}

.breadcrumbLabel {
	font-weight: 600;
}

.breadcrumbSeparator {
	color: var(--text-tertiary);
	font-size: 0.9rem;
}

.card {
	background: transparent;
	border: none;
	border-radius: 16px;
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	margin: 0;
	box-shadow: none;
}

.cardHeader {
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
	width: 100%;
}

.cardBody {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	min-height: 1px;
}

.eyebrow {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.75rem;
	color: var(--text-tertiary);
}

.title {
	margin: 0;
	font-size: 1.3rem;
	line-height: 1.6rem;
	font-weight: 700;
	color: var(--text-primary);
}

.description {
	margin: 0.2rem 0 0;
	font-size: 0.95rem;
	line-height: 1.45rem;
	color: var(--text-secondary);
}

.form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: stretch;
}

.footerLinks {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.actionRow {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	width: 100%;
}

@media (min-width: 640px) {
	.actionRow {
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
	}
}

.actionButton {
	align-self: flex-start;
}

.linkRow {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	font-size: 0.9rem;
	color: var(--text-secondary);
}

.linkButton {
	all: unset;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--text-secondary);
	cursor: pointer;
}

.linkButton:hover {
	color: var(--text-primary);
	text-decoration: underline;
}

.linkSeparator {
	color: var(--background-modifier-accent);
}

.link {
	font-size: 0.9rem;
	color: var(--text-tertiary);
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: color 120ms ease;
}

.link:hover {
	color: var(--text-primary);
	text-decoration: underline;
}

.link:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	text-decoration: none;
}

.errorBox {
	padding: 0.75rem 1rem;
	border-radius: var(--radius-lg);
	background-color: color-mix(in srgb, var(--status-danger) 15%, transparent);
	color: var(--status-danger);
	font-size: 0.9rem;
	line-height: 1.3rem;
}

.helperText {
	font-size: 0.8rem;
	color: var(--text-muted);
}

.mainColumn {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	margin: 0;
}
