/*
 * 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;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.buttonContainer {
	position: relative;
	display: flex;
	align-items: center;
}

.button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	background: none;
	transition-duration: 150ms;
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
}

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

.button:disabled {
	cursor: not-allowed;
	opacity: 0.75;
}

.buttonMuted {
	background-color: rgb(239 68 68 / 0.2);
	color: rgb(239 68 68);
}

.buttonMuted:hover {
	background-color: rgb(239 68 68 / 0.3);
}

.buttonUnmuted {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

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

.buttonDeafened {
	background-color: rgb(239 68 68 / 0.2);
	color: rgb(239 68 68);
}

.buttonDeafened:hover {
	background-color: rgb(239 68 68 / 0.3);
}

.buttonUndeafened {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

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

.buttonCameraOn {
	background-color: rgb(34 197 94 / 0.2);
	color: rgb(34 197 94);
}

.buttonCameraOn:hover {
	background-color: rgb(34 197 94 / 0.3);
}

.buttonCameraOff {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

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

.buttonScreenShareOn {
	background-color: rgb(34 197 94 / 0.2);
	color: rgb(34 197 94);
}

.buttonScreenShareOn:hover {
	background-color: rgb(34 197 94 / 0.3);
}

.buttonScreenShareOff {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

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

.buttonMoreOptions {
	background-color: var(--background-modifier-hover);
	color: var(--text-primary);
}

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

.buttonDisconnect {
	background-color: rgb(239 68 68 / 0.2);
	color: rgb(239 68 68);
}

.buttonDisconnect:hover {
	background-color: rgb(239 68 68 / 0.3);
}

.settingsButton {
	position: absolute;
	top: -4px;
	right: -4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 9999px;
	background-color: var(--background-tertiary);
	color: var(--text-primary);
	box-shadow: 0 0 0 2px var(--background-primary);
	border: none;
	cursor: pointer;
	transition-duration: 150ms;
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
}

.settingsButton:hover {
	background-color: var(--background-secondary);
}

.icon {
	width: 28px;
	height: 28px;
}

.iconSmall {
	width: 12px;
	height: 12px;
}
