.editor {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.nameRow {
	display: flex;
	gap: 8px;
}

.nameField {
	flex: 1;
}

.tabs {
	flex: 1;
}

.fields {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	padding-top: 16px;
}

.fieldGroup {
	display: flex;
	flex-direction: column;
	gap: 8px;
	background: var(--gray-2);
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid var(--gray-4);
	transition: border-color 0.2s;

	&:hover {
		border-color: var(--gray-6);
	}
}

.sliderField {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--gray-2);
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid var(--gray-4);
	transition: border-color 0.2s;

	&:hover {
		border-color: var(--gray-6);
	}
}

.fieldLabel {
	font-size: 13px;
	font-weight: 500;
	color: var(--gray-11);
}

.colorField {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: var(--gray-2);
	padding: 12px 16px;
	border-radius: 12px;
	border: 1px solid var(--gray-4);
	transition: border-color 0.2s;

	&:hover {
		border-color: var(--gray-6);
	}
}

.colorSwatch {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;

	&:hover {
		transform: scale(1.05);
		box-shadow: 0 4px 8px rgba(0,0,0,0.15);
	}
}

.colorPopover {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	z-index: 20;
	padding: 16px;
	background: var(--gray-1);
	border: 1px solid var(--gray-6);
	border-radius: 16px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.colorClose {
	display: block;
	width: 100%;
	margin-top: 12px;
	padding: 6px;
	font-size: 13px;
	font-weight: 500;
	border: none;
	border-radius: 8px;
	background: var(--accent-9);
	color: white;
	cursor: pointer;
	transition: background 0.15s;

	&:hover {
		background: var(--accent-10);
	}
}

.editorFooter {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	padding-top: 16px;
	border-top: 1px solid var(--gray-6);
}
