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

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

.groupHeader {
	padding-top: 0.75rem;
	padding-bottom: 0.25rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	font-weight: 600;
	font-size: 0.875rem;
	color: var(--text-primary-muted);
}

.membersList {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.virtualListContent {
	position: relative;
	min-height: 100%;
}

.virtualRows {
	display: flex;
	min-width: 0;
	flex-direction: column;
}

.virtualRow {
	display: flex;
	align-items: center;
	height: 42px;
	min-height: 42px;
}

.virtualGroupRow {
	display: flex;
	align-items: flex-end;
	gap: 0.375rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	padding-top: 0;
	padding-bottom: 2px;
	box-sizing: border-box;
	color: var(--text-primary-muted);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1rem;
}

.virtualGroupLabel {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.virtualGroupSeparator {
	flex-shrink: 0;
}

.virtualGroupCount {
	flex-shrink: 0;
}

.groupSpacer {
	height: 0.25rem;
}

.skeletonItem {
	display: grid;
	height: 34px;
	min-width: 0;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 0.25rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	padding-top: 4px;
	padding-bottom: 4px;
	box-sizing: border-box;
}

.virtualRow .skeletonItem {
	height: 34px;
}

.skeletonContent {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 0.625rem;
}

.skeletonAvatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	flex-shrink: 0;
	background: var(--background-modifier-accent);
	opacity: 0.45;
}

.skeletonUserInfoContainer {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex-grow: 1;
	gap: 2px;
}

.skeletonName {
	height: 10px;
	width: 60%;
	border-radius: 2px;
	background: var(--background-modifier-accent);
	opacity: 0.45;
}

.skeletonStatus {
	height: 8px;
	width: 40%;
	border-radius: 2px;
	background: var(--background-modifier-accent);
	opacity: 0.35;
}

.skeletonHeader {
	width: 80px;
	height: 14px;
	border-radius: 4px;
	background: var(--background-modifier-accent);
	opacity: 0.45;
}

.skeleton {
	background: var(--background-modifier-accent);
	opacity: 0.45;
	border-radius: 4px;
}
