/*
 * 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;
	height: 100%;
	overflow: hidden;
	padding-top: 8px;
}

.subtitle {
	padding: 0 16px;
	margin-bottom: 12px;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.scroller {
	flex: 1;
	overflow-y: auto;
	padding: 0 16px;
}

.optionsContainer {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 40px;
}

.option {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background-color: var(--background-tertiary);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 16px;
	cursor: pointer;
	transition: all 150ms ease;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}

.option:active {
	transform: scale(0.98);
}

@media (hover: hover) {
	.option:hover {
		background-color: var(--background-secondary-hover);
	}
}

.optionSelected {
	border-color: var(--brand-primary-light);
	background-color: color-mix(in srgb, var(--brand-primary-light) 10%, transparent);
}

:global(.theme-light) .optionSelected {
	border-color: var(--brand-primary);
	background-color: color-mix(in srgb, var(--brand-primary) 10%, transparent);
}

@media (hover: hover) {
	.optionSelected:hover {
		background-color: color-mix(in srgb, var(--brand-primary-light) 15%, transparent);
	}

	:global(.theme-light) .optionSelected:hover {
		background-color: color-mix(in srgb, var(--brand-primary) 15%, transparent);
	}
}

.optionLeft {
	display: flex;
	align-items: center;
	gap: 12px;
}

.optionIcon {
	color: var(--text-secondary);
}

.optionIconSelected {
	color: var(--brand-primary-light);
}

:global(.theme-light) .optionIconSelected {
	color: var(--brand-primary);
}

.optionLabel {
	font-size: 1rem;
	color: var(--text-primary);
}

.optionLabelSelected {
	font-weight: 600;
}

.checkIcon {
	color: var(--brand-primary-light);
}

:global(.theme-light) .checkIcon {
	color: var(--brand-primary);
}

.footer {
	display: flex;
	justify-content: flex-end;
	padding: 12px 16px;
	border-top: 1px solid var(--border-color);
}
