/*
 * 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: var(--voice-status-danger-bg-solid);
	color: var(--voice-status-danger);
}

.buttonMuted:hover {
	background-color: var(--voice-status-danger-bg-strong-solid);
}

.buttonUnmuted {
	background-color: var(--voice-surface-4);
	color: var(--text-primary);
}

.buttonUnmuted:hover {
	background-color: var(--voice-surface-5);
}

.buttonDeafened {
	background-color: var(--voice-status-danger-bg-solid);
	color: var(--voice-status-danger);
}

.buttonDeafened:hover {
	background-color: var(--voice-status-danger-bg-strong-solid);
}

.buttonCameraOn {
	background-color: var(--voice-status-success-bg-solid);
	color: var(--voice-status-success);
}

.buttonCameraOn:hover {
	background-color: var(--voice-status-success-bg-strong-solid);
}

.buttonCameraOff {
	background-color: var(--voice-surface-4);
	color: var(--text-primary);
}

.buttonCameraOff:hover {
	background-color: var(--voice-surface-5);
}

.buttonScreenShareOn {
	background-color: var(--voice-status-success-bg-solid);
	color: var(--voice-status-success);
}

.buttonScreenShareOn:hover {
	background-color: var(--voice-status-success-bg-strong-solid);
}

.buttonScreenShareOff {
	background-color: var(--voice-surface-4);
	color: var(--text-primary);
}

.buttonScreenShareOff:hover {
	background-color: var(--voice-surface-5);
}

.buttonMoreOptions {
	background-color: var(--voice-surface-4);
	color: var(--text-primary);
}

.buttonMoreOptions:hover {
	background-color: var(--voice-surface-5);
}

.buttonDisconnect {
	background-color: var(--voice-status-danger-bg-solid);
	color: var(--voice-status-danger);
}

.buttonDisconnect:hover {
	background-color: var(--voice-status-danger-bg-strong-solid);
}

.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);
}

.stopWatchingButton {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	height: 56px;
	padding: 0 1.25rem;
	border-radius: 9999px;
	border: none;
	cursor: pointer;
	background-color: var(--voice-status-danger-bg-solid);
	color: var(--voice-status-danger);
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	transition-duration: 150ms;
	transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
}

.stopWatchingButton:hover {
	background-color: var(--voice-status-danger-bg-strong-solid);
}

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

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