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

.popoutContainer {
	width: 100%;
	border-radius: 0.5rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-secondary);
	padding: 0.5rem;
	box-shadow:
		0 10px 15px -3px rgb(0 0 0 / 0.1),
		0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.searchContainer {
	margin-bottom: 0.5rem;
}

.scroller {
	max-height: 24rem;
}

.section {
	margin-bottom: 0.5rem;
}

.sectionHeader {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	font-weight: 600;
	color: var(--text-tertiary);
	font-size: 0.75rem;
	line-height: 1rem;
	text-transform: uppercase;
}

.itemButton {
	display: flex;
	width: 100%;
	min-width: 0;
	align-items: center;
	gap: 0.5rem;
	border-radius: 0.25rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	padding-top: 0.375rem;
	padding-bottom: 0.375rem;
	text-align: left;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-primary);
}

.itemButtonActive {
	background-color: var(--background-modifier-selected);
}

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

.roleIndicator {
	height: 0.75rem;
	width: 0.75rem;
	flex-shrink: 0;
	border-radius: 9999px;
}

.itemLabel {
	min-width: 0;
	flex: 1 1 0%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.avatar {
	flex-shrink: 0;
}

.emptyState {
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	padding-top: 1rem;
	padding-bottom: 1rem;
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-primary-muted);
}
