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

.header {
	display: flex;
	height: 3.5rem;
	flex-shrink: 0;
	align-items: center;
	padding-left: 1rem;
	padding-right: 1rem;
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
	transition-duration: 200ms;
}

.headerContent {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
}

.headerContentRelative {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
}

.bannerTextContainer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.bannerText {
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.bannerTextWhite {
	color: white;
}

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

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

.backButton {
	display: flex;
	height: 2rem;
	width: 2rem;
	align-items: center;
	justify-content: center;
	border-radius: 0.375rem;
	color: var(--text-primary-muted);
	transition-property: transform, background-color;
	cursor: pointer;
}

.backButton:active {
	transform: scale(0.95);
	background-color: var(--background-modifier-hover);
}

.headerTitle {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	font-size: 1rem;
	line-height: 1.5rem;
	color: var(--text-primary);
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.headerSpacer {
	width: 2rem;
}

.icon5 {
	height: 1.25rem;
	width: 1.25rem;
}

.scrollerContainer {
	min-height: 0;
	flex: 1;
	padding: 1rem;
}

.categorySection {
	margin-bottom: 1.5rem;
}

.categorySection:last-child {
	margin-bottom: 0;
}

.categoryTitle {
	margin-bottom: 0.5rem;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	font-weight: 600;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--text-tertiary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.categoryList {
	overflow: hidden;
	border-radius: 0.75rem;
	background-color: var(--background-secondary-alt);
}

.settingsItem {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 1rem;
	background-color: transparent;
	padding: 1rem;
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
	.settingsItem:hover {
		background-color: var(--background-modifier-hover);
	}

	.settingsItem:active {
		background-color: var(--background-modifier-hover);
	}
}

.settingsItemPressed {
	background-color: var(--background-modifier-hover);
}

:global(.theme-light) .settingsItem {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

:global(.theme-light) .settingsItem:hover,
:global(.theme-light) .settingsItem:active,
:global(.theme-light) .settingsItemPressed {
	background-color: color-mix(in srgb, var(--background-modifier-hover) 40%, transparent);
}

.settingsItemIcon {
	height: 1.25rem;
	width: 1.25rem;
	color: var(--text-secondary);
}

.settingsItemContent {
	flex: 1;
	text-align: left;
}

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

.settingsItemSpinner {
	margin-left: 0.25rem;
}

.settingsItemLabel {
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-secondary);
}

.settingsItemArrow {
	height: 1rem;
	width: 1rem;
	transform: rotate(180deg);
	color: var(--text-tertiary);
}

.divider {
	height: 1px;
	margin-left: 1rem;
	margin-right: 1rem;
	background-color: var(--background-header-secondary);
}

.clientInfoContainer {
	padding-bottom: 1.25rem;
}

.contentContainer {
	margin-left: auto;
	margin-right: auto;
	width: 100%;
	max-width: 696px;
	padding-left: 1rem;
	padding-right: 1rem;
	padding-top: 1rem;
	padding-bottom: calc(16px + env(safe-area-inset-bottom, 20px));
}

.scrollerFlex {
	min-height: 0;
	flex: 1;
}
