/* workspace-settings.css - Workspace Settings Modal */

/* Settings rows layout */
.ii-ws-settings-rows {
	display: flex;
	flex-direction: column;
	padding: 4px 0;
}

.ii-ws-settings-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 16px 0;
}

.ii-ws-settings-info {
	flex: 1;
	min-width: 0;
}

.ii-ws-settings-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--ii-text-primary, #111827);
	margin-bottom: 5px;
	font-family: var(--ii-font-body, Inter, sans-serif);
	line-height: 1.5;
}

.ii-ws-settings-desc {
	font-size: 13px;
	color: var(--ii-text-secondary, #4b5563);
	line-height: 1.55;
	font-family: var(--ii-font-body, Inter, sans-serif);
}

/* iOS-style pill toggle */
.ii-ws-toggle {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 24px;
	cursor: pointer;
	margin-top: 2px;
	display: inline-block;
}

.ii-ws-toggle-input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

.ii-ws-toggle-track {
	display: block;
	width: 44px;
	height: 24px;
	border-radius: 100px;
	background: var(--ii-border, #e5e7eb);
	transition: background 0.2s ease;
	position: relative;
}

.ii-ws-toggle-thumb {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ffffff;
	box-shadow:
		0 1px 3px rgba(0, 0, 0, 0.18),
		0 1px 2px rgba(0, 0, 0, 0.12);
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ii-ws-toggle-input:checked ~ .ii-ws-toggle-track {
	background: var(--ii-accent, #2563eb);
}

.ii-ws-toggle-input:checked ~ .ii-ws-toggle-track .ii-ws-toggle-thumb {
	transform: translateX(20px);
}

.ii-ws-toggle:hover .ii-ws-toggle-track {
	opacity: 0.88;
}

/* Dark mode */
[data-theme='dark'] .ii-ws-toggle-track {
	background: var(--ii-dk-border, #28282f);
}

[data-theme='dark'] .ii-ws-toggle-thumb {
	background: #e5e5ea;
}

[data-theme='dark'] .ii-ws-toggle-input:checked ~ .ii-ws-toggle-track {
	background: var(--ii-accent, #3b82f6);
}

[data-theme='dark']
	.ii-ws-toggle-input:checked
	~ .ii-ws-toggle-track
	.ii-ws-toggle-thumb {
	background: #ffffff;
}
