/*
 * 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: grid;
	height: 100%;
	min-height: 0;
	width: 100%;
	min-width: 0;
	grid-template-rows: 3.5rem 1fr;
	background-color: var(--background-secondary);
}

.content {
	display: flex;
	height: 100%;
	min-height: 0;
	width: 100%;
	min-width: 0;
	flex-direction: column;
}

.scroller {
	flex: 1;
	padding-left: 1rem;
	padding-right: 1rem;
	padding-top: 1rem;
}

.messageItem {
	position: relative;
	margin-bottom: 1rem;
	cursor: default;
	user-select: none;
	-webkit-user-select: none;
	overflow: hidden;
	flex-shrink: 0;
	border-radius: 0.375rem;
	border-width: 1px;
	border-color: var(--background-header-secondary);
	background-color: var(--background-secondary);
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.endState {
	display: flex;
	height: 100%;
	min-height: 200px;
	align-items: center;
	justify-content: center;
	padding-bottom: 2rem;
}

.endStateContent {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.endStateIcon {
	height: 3rem;
	width: 3rem;
	color: var(--text-primary-muted);
}

.endStateText {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	text-align: center;
}

.endStateTitle {
	font-weight: 600;
	color: var(--text-primary);
	font-size: 1.25rem;
}

.endStateDescription {
	font-size: 0.875rem;
	color: var(--text-primary-muted);
}

.emptyState {
	display: flex;
	height: 100%;
	min-height: 0;
	align-items: center;
	justify-content: center;
}

.emptyStateContent {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.emptyStateIcon {
	height: 5rem;
	width: 5rem;
	color: var(--text-primary-muted);
}

.emptyStateText {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	text-align: center;
}

.emptyStateTitle {
	font-weight: 600;
	color: var(--text-primary);
	font-size: 1.25rem;
}

.emptyStateDescription {
	font-size: 0.875rem;
	color: var(--text-primary-muted);
}

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

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