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

.modalRoot {
	composes: root default from '@app/components/modals/Modal.module.css';
	width: 580px;
	max-width: min(580px, calc(100vw - 32px));
	min-height: 420px;
	height: 440px;
	max-height: min(480px, calc(100svh - 96px));
	border-radius: 1rem;
	padding: 0;
	overflow: hidden;
	background: var(--background-primary);
}

@media screen and (max-width: 720px) {
	.modalRoot {
		width: min(100%, calc(100vw - 32px));
		min-height: 360px;
		height: auto;
		max-height: calc(100svh - 48px);
	}
}

.modalContent {
	height: 100%;
	padding: 0;
	overflow: hidden;
}

.modalLayout {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	width: 100%;
	height: 100%;
	min-height: 0;
	background: var(--background-primary);
}

.sidebar {
	display: flex;
	flex-direction: column;
	background: var(--background-secondary);
	height: 100%;
	min-height: 0;
	width: 96px;
	min-width: 96px;
}

.reactionFiltersPane {
	flex: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding: 0;
}

.reactionListContainer {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
	padding: 0.45rem;
	padding-top: 0;
	background: var(--background-secondary);
}
