.auralite-floating-bar-container {
	position: fixed;
	bottom: 60px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
	opacity: 0;
	transform: translateX(-50%) translateY(20px);
}

.auralite-floating-bar-container.visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.auralite-floating-bar {
	background-color: var(--background-secondary);
	border-radius: 20px;
	padding: 10px 20px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 300px;
	max-width: 90vw;
	border: 1px solid var(--background-modifier-border);
}

.auralite-waveform-container,
.auralite-status-container {
	width: 100%;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
}

.auralite-status-container {
	width: 100%;
	height: auto;
	min-height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 14px;
	color: var(--text-normal);
	text-align: center;
	padding: 8px 0;
	line-height: 1.4;
	transition: all 0.3s ease-in-out;
}

/* Diff Review View Styles */
.auralite-diff-container {
	font-family: var(--font-monospace, monospace);
	background: var(--background-secondary);
	border: 1px solid var(--background-modifier-border);
	padding: 12px;
	margin-bottom: 16px;
	max-height: 400px;
	overflow-y: auto;
}
.auralite-diff-row {
	display: flex;
	gap: 8px;
	white-space: pre;
}
.auralite-diff-unchanged {
	color: var(--text-normal);
}
.auralite-diff-removed {
	background: var(--diff-removed-bg);
	color: var(--diff-removed-text);
	text-decoration: line-through;
	padding: 0 2px;
}
.auralite-diff-added {
	background: var(--diff-added-bg);
	color: var(--diff-added-text);
	padding: 0 2px;
}
.auralite-diff-actions {
	display: flex;
	gap: 12px;
	margin-top: 12px;
}

.auralite-diff-cm6-container {
	min-height: 400px;
	height: 400px;
	max-height: 70vh;
	overflow: auto;
	background: var(--background-secondary);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	display: flex;
	flex-direction: column;
	justify-content: stretch;
	margin-bottom: 20px;
}

.auralite-diff-preview-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	width: 100%;
	background: var(--background-secondary);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	padding: 0;
	margin-bottom: 20px;
	min-height: 400px;
	height: 400px;
	max-height: 70vh;
	align-items: stretch;
}
@media (max-width: 900px) {
	.auralite-diff-preview-wrapper {
		grid-template-columns: 1fr;
		gap: 0;
		padding: 0;
		height: auto;
		min-height: 0;
		max-height: none;
	}
}
.auralite-diff-preview-col {
	display: flex;
	flex-direction: column;
	background: var(--background-primary);
	border-radius: 8px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	padding: 18px 14px 14px 14px;
	min-width: 0;
	border: 1px solid var(--background-modifier-border);
	height: 100%;
	min-height: 0;
	max-height: 100%;
	overflow-y: auto;
	overflow-x: hidden;
	word-break: break-word;
	white-space: pre-wrap;
}
.auralite-diff-preview-label {
	font-size: 13px;
	font-weight: 600;
	color: var(--text-faint);
	margin-bottom: 10px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	text-align: left;
}

.auralite-diff-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
	gap: 12px;
}
.auralite-diff-header h2 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
	color: var(--text-normal);
}
.auralite-diff-toggle {
	background: var(--background-modifier-hover);
	border: none;
	border-radius: 6px;
	padding: 6px 12px;
	cursor: pointer;
	color: var(--text-muted);
	font-size: 1rem;
	transition: background 0.15s, color 0.15s;
	display: flex;
	align-items: center;
	gap: 6px;
}
.auralite-diff-toggle:hover,
.auralite-diff-toggle:focus {
	background: var(--background-modifier-active);
	color: var(--text-normal);
}

.auralite-diff-actions {
	display: flex;
	gap: 16px;
	margin-top: 18px;
	justify-content: flex-end;
}
.auralite-diff-actions button {
	border-radius: 6px;
	border: none;
	padding: 8px 18px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	background: var(--background-modifier-hover);
	color: var(--text-normal);
	transition: background 0.15s, color 0.15s, box-shadow 0.15s;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.auralite-diff-actions button.mod-cta {
	background: var(--interactive-accent);
	color: var(--text-on-accent);
}
.auralite-diff-actions button:hover,
.auralite-diff-actions button:focus {
	background: var(--background-modifier-active);
	color: var(--text-normal);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.auralite-diff-actions button.mod-cta:hover,
.auralite-diff-actions button.mod-cta:focus {
	background: var(--interactive-accent-hover);
	color: var(--text-on-accent);
}

/* CodeMirror MergeView custom tweaks for side-by-side clarity */
.cm-mergeView {
	border-radius: 8px;
	background: var(--background-primary);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
	height: 100%;
	min-height: 0;
	max-height: 100%;
}
.cm-mergeView .cm-merge-a,
.cm-mergeView .cm-merge-b {
	background: none;
	height: 100%;
	min-height: 0;
	max-height: 100%;
	overflow-y: auto;
}
.cm-mergeView .cm-scroller {
	height: 100%;
	min-height: 0;
	max-height: 100%;
	overflow-y: auto;
}
.cm-mergeView .cm-editor {
	font-size: 15px;
	line-height: 1.6;
	background: none;
}
.cm-mergeView .cm-changedLine {
	background: rgba(255, 235, 59, 0.13);
}
.cm-mergeView .cm-deletedLine {
	background: var(--diff-removed-bg);
	text-decoration: line-through;
}
.cm-mergeView .cm-insertedLine {
	background: var(--diff-added-bg);
}

.auralite-diff-cm6-container.auralite-diff-preview-mode {
	display: block;
	height: 80vh;
	min-height: 0;
	max-height: none;
	padding: 0;
}
.auralite-diff-preview-wrapper {
	width: 100%;
	height: 80vh;
	min-height: 0;
	max-height: 80vh;
	overflow: hidden;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	background: var(--background-secondary);
	border-radius: 12px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
	margin-bottom: 20px;
	align-items: stretch;
}
@media (max-width: 900px) {
	.auralite-diff-preview-wrapper {
		grid-template-columns: 1fr;
		gap: 0;
		height: auto;
		min-height: 0;
		max-height: none;
	}
}
.auralite-diff-preview-col {
	height: 100%;
	min-height: 0;
	max-height: none;
	overflow-y: auto;
	overflow-x: hidden;
	word-break: break-word;
	white-space: pre-wrap;
	display: flex;
	flex-direction: column;
}
.auralite-diff-preview-col.scroll-sync {
	/* For JS to target for scroll syncing */
}

/* Diff color variables */
:root {
	--diff-added-bg: #e6f4ea;
	--diff-added-text: #256029;
	--diff-removed-bg: #fbeaea;
	--diff-removed-text: #a33a3a;
}
.theme-dark {
	--diff-added-bg: #22372b;
	--diff-added-text: #a6e9b3;
	--diff-removed-bg: #3a2323;
	--diff-removed-text: #f6b3b3;
}
.theme-light {
	--diff-added-bg: #e6f4ea;
	--diff-added-text: #256029;
	--diff-removed-bg: #fbeaea;
	--diff-removed-text: #a33a3a;
}

.auralite-settings-section {
	margin-bottom: 2.5em;
	padding: 1.5em 1.7em 1.2em 1.7em;
	background: var(--background-secondary-alt, var(--background-secondary));
	border-radius: 12px;
	border: 1px solid var(--background-modifier-border);
	box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.auralite-settings-section h3 {
	margin-top: 0;
	margin-bottom: 0.4em;
	font-size: 1.18em;
	font-weight: 700;
	color: var(--text-accent);
	letter-spacing: 0.01em;
}
.auralite-settings-section-description {
	color: var(--text-muted);
	font-size: 0.99em;
	margin: 0 0 1.2em 0;
	padding-left: 0;
}
.auralite-settings-section .setting-item {
	margin-bottom: 1.3em;
}
.auralite-settings-section .setting-item:last-child {
	margin-bottom: 0;
}
.auralite-settings-section input[type="text"],
.auralite-settings-section input[type="password"],
.auralite-settings-section select {
	min-height: 2.1em;
	font-size: 1em;
	border-radius: 6px;
}
.auralite-settings-section .setting-item-description {
	color: var(--text-muted);
	font-size: 0.97em;
	margin-top: 0.2em;
	margin-bottom: 0.7em;
}
.auralite-settings-divider {
	border: none;
	border-top: 1px solid var(--background-modifier-border);
	margin: 2.5em 0 2.5em 0;
}

/* --- Auralite SettingsTab Redesign Additions --- */
.auralite-settings-section h4 {
	margin-top: 0;
	margin-bottom: 0.7em;
	font-size: 1.13em;
	font-weight: 600;
	color: var(--text-accent);
	letter-spacing: 0.01em;
}
.auralite-settings-advanced {
	margin-top: 1.1em;
	margin-bottom: 0.7em;
	background: none;
	border-radius: 8px;
	border: 1px dashed var(--background-modifier-border);
	box-shadow: none;
	padding: 0.5em 0.7em 0.5em 0.7em;
}
.auralite-settings-advanced-summary {
	font-weight: 600;
	color: var(--text-accent);
	cursor: pointer;
	font-size: 1em;
	letter-spacing: 0.01em;
	margin-bottom: 0.5em;
}
.auralite-settings-advanced[open] > .auralite-settings-advanced-summary {
	color: var(--interactive-accent);
}
/* End Auralite SettingsTab Redesign Additions */
