/* Fx / Effects sidebar panel */

.fi-fx-panel {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: 100%;
	padding: 0 0 12px;
}

.fi-fx-panel__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 0 14px 12px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.fi-fx-panel__title-wrap {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.fi-fx-panel__title-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	color: rgba(244, 244, 245, 0.72);
}

.fi-fx-panel__title-icon svg {
	width: 16px;
	height: 16px;
}

.fi-fx-panel__title {
	margin: 0;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(244, 244, 245, 0.88);
}

.fi-fx-panel__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 12px 14px 0;
}

.fi-fx-panel__hint {
	margin: 0 0 14px;
	font-size: 0.74rem;
	line-height: 1.45;
	color: rgba(244, 244, 245, 0.42);
}

.fi-fx-panel__section {
	margin-bottom: 16px;
}

.fi-fx-panel__section-title {
	margin: 0 0 10px;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(244, 244, 245, 0.52);
}

.fi-fx-panel__controls[hidden] {
	display: none;
}

.fi-fx-panel__section--grain {
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 12px;
	background: rgba(0, 0, 0, 0.18);
}

.fi-fx-panel__section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 12px;
}

.fi-fx-panel__section-head .fi-fx-panel__section-title {
	margin: 0;
}

.fi-fx-panel__toggle {
	position: relative;
	flex: 0 0 auto;
	width: 38px;
	height: 22px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	cursor: pointer;
	transition: background 0.15s ease;
}

.fi-fx-panel__toggle::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	transition: transform 0.15s ease;
}

.fi-fx-panel__toggle.is-on {
	background: var(--xfp-accent, #2f6fed);
}

.fi-fx-panel__toggle.is-on::after {
	transform: translateX(16px);
}

.fi-fx-panel__group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fi-fx-panel__group.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}

.fi-fx-panel__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.fi-fx-panel__field-label {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(244, 244, 245, 0.52);
}

.fi-fx-panel__select {
	position: relative;
}

.fi-fx-panel__select::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 12px;
	width: 8px;
	height: 8px;
	margin-top: -5px;
	border-right: 1.5px solid rgba(244, 244, 245, 0.55);
	border-bottom: 1.5px solid rgba(244, 244, 245, 0.55);
	transform: rotate(45deg);
	pointer-events: none;
}

.fi-fx-panel__select select {
	width: 100%;
	height: 36px;
	padding: 0 30px 0 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 9px;
	background: rgba(20, 21, 24, 0.9);
	color: #f4f4f5;
	font-size: 0.78rem;
	font-weight: 500;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.fi-fx-panel__select select:focus {
	outline: none;
	border-color: var(--xfp-accent, #2f6fed);
}
