:root {
	color-scheme: light dark;
}

[hidden] {
	display: none !important;
}

body {
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	margin: 0;
	overflow: hidden;
}

hr {
	border: 0;
	border-top: 1px solid #ccc;
}

.Button {
	position: relative;
}

.Input {
	vertical-align: middle;
}

	.Input[type="color"]::-webkit-color-swatch-wrapper {
		padding: 0;
	}
	.Input[type="color"]::-webkit-color-swatch {
		border: none;
	}

.TextArea {
	tab-size: 4;
	white-space: pre;
	word-wrap: normal;
}

	.TextArea.success {
		border-color: #8b8 !important;
	}

	.TextArea.fail {
		border-color: #f00 !important;
		background-color: rgba(255,0,0,0.05);
	}

.TextArea, .Input { outline: none; } /* osx */

.Panel {
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;

	/* No support for these yet */
	-o-user-select: none;
	user-select: none;
}

.TabbedPanel {
	-moz-user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;

	/* No support for these yet */
	-o-user-select: none;
	user-select: none;
	position: relative;
	display: block;
	width: 100%;
	min-width: 360px;
}

.TabbedPanel .Tabs {
	position: relative;
	z-index: 1; /** Above .Panels **/
	display: block;
	width: 100%;
	white-space: pre;
	overflow: hidden;
	overflow-x: auto;
}

	.TabbedPanel .Tabs::-webkit-scrollbar {
		height: 5px;
		background: #eee;
	}
	.TabbedPanel .Tabs::-webkit-scrollbar-thumb {
		background: #08f3;
	}
	.TabbedPanel .Tabs:hover::-webkit-scrollbar-thumb {
		background: #08f;
		cursor: ew-resize;
	}

	.TabbedPanel .Tabs .Tab {
		padding: 10px 9px;
		text-transform: uppercase;
	}

	.TabbedPanel .Panels {
		position: absolute;
		top: 40px;
		display: block;
		width: 100%;
	}

/* Listbox */
.Listbox {
	color: #444;
	background-color: #fff;
	padding: 0;
	width: 100%;
	min-height: 180px;
	font-size: 12px;
	cursor: default;
	overflow: auto;
}

.Listbox .ListboxItem {
	padding: 4px;
	color: #666;
	white-space: nowrap;
}

.Listbox .ListboxItem:hover {
	background-color: rgba(0, 0, 0, 0.02);
}

.Listbox .ListboxItem.active {
	background-color: rgba(0, 0, 0, 0.04);
}

/* CodeMirror */

.CodeMirror {

	position: absolute !important;
	top: 37px;
	width: 100% !important;
	height: calc(100% - 37px) !important;

}

	.CodeMirror .errorLine {

		background: rgba(255,0,0,0.25);

	}

	.CodeMirror .esprima-error {

		color: #f00;
		text-align: right;
		padding: 0 20px;

	}

/* outliner */

#outliner .opener {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin: 0px 4px;
	vertical-align: top;
	text-align: center;
}

	#outliner .opener.open:after {
		content: '−';
	}

	#outliner .opener.closed:after {
		content: '+';
	}

#outliner .option {

	border: 1px solid transparent;

}

#outliner .option.drag {

	border: 1px dashed #999;

}

#outliner .option.dragTop {

	border-top: 1px dashed #999;

}

#outliner .option.dragBottom {

	border-bottom: 1px dashed #999;

}

#outliner .type {
	display: inline-block;
	width: 14px;
	height: 14px;
	color: #ddd;
	text-align: center;
}

#outliner .type:after {
	content: '●';
}

/* */

#outliner .Scene {
	color: #8888dd;
}

#outliner .Camera {
	color: #dd8888;
}

#outliner .Light {
	color: #dddd88;
}

/* */

#outliner .Object3D {
	color: #aaaaee;
}

#outliner .Mesh {
	color: #8888ee;
}

#outliner .Line {
	color: #88ee88;
}

#outliner .LineSegments {
	color: #88ee88;
}

#outliner .Points {
	color: #ee8888;
}

/* */

#outliner .Geometry {
	color: #aaeeaa;
}

#outliner .Material {
	color: #eeaaee;
}

/* */

#outliner .Script:after {
	content: '◎'
}

/*  */

.Button {
	color: #555;
	background-color: #ddd;
	border: 0px;
	margin: 0px; /* GNOME Web */
	padding: 5px 8px;
	font-size: 12px;
	text-transform: uppercase;
	cursor: pointer;
	outline: none;
}

	.Button:hover {
		background-color: #fff;
	}

	.Button.selected {
		background-color: #fff;
	}

.Input, .TextArea {
	border: 1px solid transparent;
	color: #444;
}

.Input.Number {
	color: #08f!important;
	font-size: 12px;
	border: 0px;
	padding: 2px;
}

.Select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	color: #444;
	background-color: #e8e8ea;
	border: 1px solid #c8c9cd;
	border-radius: 6px;
	min-height: 34px;
	padding: 6px 34px 6px 12px;
	font-size: 13px;
	line-height: 1.3;
	text-transform: none;
	letter-spacing: 0.01em;
	cursor: pointer;
	outline: none;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%23555555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 14px;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
	color-scheme: light;
}

	.Select:hover {
		background-color: #f2f2f4;
		border-color: #b0b2b8;
	}

	.Select:focus-visible {
		border-color: #08f;
		box-shadow: 0 0 0 2px rgba( 0, 136, 255, 0.2 );
	}

	.Select option {
		color: #222;
		background-color: #fff;
		padding: 8px 10px;
	}

/* UI */

#resizer {
	position: absolute;
	z-index: 2; /* Above #sidebar */
	top: 32px;
	right: 384px;
	width: 5px;
	bottom: 0px;
	transform: translatex(2.5px);
	cursor: col-resize;
}

	#resizer:hover {
		background-color: #08f8;
		transition-property: background-color;
		transition-delay: 0.1s;
		transition-duration: 0.2s;
	}

	#resizer:active {
		background-color: #08f;
	}

#viewport {
	position: absolute;
	top: 32px;
	left: 0;
	right: 384px;
	bottom: 0;
}

	#viewport .Text {
		text-shadow: 1px 1px 0 rgba(0,0,0,0.25);
		pointer-events: none;
	}

	#viewport .spotar-css-text {
		pointer-events: none;
	}

#script {
	position: absolute;
	top: 32px;
	left: 0;
	right: 384px;
	bottom: 0;
	opacity: 0.9;
}

#player {
	position: absolute;
	top: 32px;
	left: 0;
	right: 384px;
	bottom: 0;
}

#menubar {
	position: absolute;
	width: 100%;
	height: 32px;
	background: #eee;
	padding: 0;
	margin: 0;
	right: 0;
	top: 0;
}

	#menubar .menu {
		float: left;
		cursor: pointer;
		padding-right: 8px;
	}

	#menubar .menu.right {
		float: right;
		cursor: auto;
		padding-right: 0;
		text-align: right;
	}

		#menubar .menu .title {
			display: inline-block;
			color: #888;
			margin: 0;
			padding: 8px;
			line-height: 16px;
		}

		#menubar .menu .key {
			position: absolute;
			right: 10px;
			color: #ccc;
			border: 1px solid #ccc;
			border-radius: 4px;
			font-size: 9px;
			padding: 2px 4px;
			right: 10px;
			pointer-events: none;
		}

		#menubar .menu .options {
			position: fixed;
			z-index: 1; /* higher than resizer */
			display: none;
			padding: 5px 0;
			background: #eee;
			min-width: 150px;
			max-height: calc(100vh - 80px);
			overflow: auto;
		}

		#menubar .menu:hover .options {
			display: block;
			box-shadow: 0 10px 10px -5px #00000033;
		}

			#menubar .menu .options hr {
				border-color: #ddd;
			}

			#menubar .menu .options .option {
				color: #666;
				background-color: transparent;
				padding: 5px 10px;
				margin: 0 !important;
			}

				#menubar .menu .options .option:hover {
					color: #fff;
					background-color: #08f;
				}

				#menubar .menu .options .option:not(.submenu-title):active {
					color: #666;
					background: transparent;
				}

				#menubar .menu .options .option.toggle::before {

					content: ' ';
					display: inline-block;
					width: 16px;

				}

				#menubar .menu .options .option.toggle-on::before {

					content: '✔';
					font-size: 12px;

				}

				#menubar .submenu-title::after {
					content: '⏵';
					float: right;
				}

		#menubar .menu .options .inactive {
			color: #bbb;
			background-color: transparent;
			padding: 5px 10px;
			margin: 0 !important;
			cursor: not-allowed;
		}

		

#sidebar {
	position: absolute;
	right: 0;
	top: 32px;
	bottom: 0;
	width: 384px;
	background: #eee;
	overflow: auto;
	overflow-x: hidden;
}

	#sidebar .Panel {
		color: #888;
		padding: 14px 14px 16px;
		border-top: 1px solid #ccc;
	}

	#sidebar .Panel.collapsed {
		margin-bottom: 0;
	}

	#sidebar .Row {
		display: flex;
		align-items: center;
		min-height: 28px;
		margin-bottom: 12px;
	}

	#sidebar .Row .Label {

		width: 120px;
		flex-shrink: 0;

	}

	/* Material tab: map slots (Blender-style spacing + larger texture previews) */
	#sidebar .MaterialMapBlock {
		margin-bottom: 16px;
		padding-bottom: 2px;
	}

	#sidebar .MaterialMapLabelRow {
		min-height: 0;
		margin-bottom: 8px;
		align-items: baseline;
	}

	#sidebar .MaterialMapLabelRow .Label {
		width: 100%;
		font-size: 11px;
		font-weight: 600;
		letter-spacing: 0.03em;
		text-transform: uppercase;
		color: #555;
		line-height: 1.3;
	}

	#sidebar .MaterialMapControlsRow {
		display: flex;
		align-items: flex-start;
		flex-wrap: wrap;
		gap: 6px 8px;
		min-height: auto;
		margin-bottom: 0;
	}

	#sidebar .texture-preview-canvas {
		background: repeating-conic-gradient( #e4e4e4 0% 25%, #cfcfcf 0% 50% ) 50% / 12px 12px;
	}

	/* Nested properties TabbedPanel: .Panels is position:absolute so parent height was only ~tab bar;
	   without min-height, panel bodies could be clipped next to overflow-x on #sidebar */
	#properties.TabbedPanel {
		min-height: min( 75vh, 920px );
	}

#tabs {
	background-color: #ddd;
	border-top: 1px solid #ccc;
}

	#tabs span {
		color: #aaa;
		border-right: 1px solid #ccc;
		padding: 10px;
	}

	#tabs span.selected {
		color: #888;
		background-color: #eee;
	}

#toolbar {
	position: absolute;
	left: 10px;
	top: 42px;
	width: 32px;
	background: #eee;
	text-align: center;
}

	#toolbar .Button, #toolbar .Input {
		height: 32px;
	}

		#toolbar .Button img {
			width: 16px;
			opacity: 0.5;
		}

.Outliner {
	color: #444;
	background-color: #fff;
	padding: 0;
	width: 100%;
	height: 180px;
	font-size: 12px;
	cursor: default;
	overflow: auto;
	resize: vertical;
	outline: none !important;
}

	.Outliner .option {
		padding: 4px;
		color: #666;
		white-space: nowrap;
	}

	.Outliner .option:hover {
		background-color: rgba(0,0,0,0.02);
	}

	.Outliner .option.active {
		background-color: rgba(0,0,0,0.04);
	}


.TabbedPanel .Tabs {
	background-color: #ddd;
	border-top: 1px solid #ccc;
}

	.TabbedPanel .Tab {
		color: #aaa;
		border-right: 1px solid #ccc;
	}

	.TabbedPanel .Tab.selected {
		color: #888;
		background-color: #eee;
	}

.Listbox {
	color: #444;
	background-color: #fff;
}

.Panel {
	color: #888;
}

/* */

@media all and ( max-width: 600px ) {

	#resizer {
		display: none;
	}

	#menubar .menu .options {
		max-height: calc(100% - 80px);
	}

	#menubar .menu.right {
		display: none;
	}

	#viewport {
		left: 0;
		right: 0;
		top: 32px;
		height: calc(100% - 352px);
	}

	#script {
		left: 0;
		right: 0;
		top: 32px;
		height: calc(100% - 352px);
	}

	#player {
		left: 0;
		right: 0;
		top: 32px;
		height: calc(100% - 352px);
	}

	#sidebar {
		left: 0;
		width: 100%;
		top: calc(100% - 320px);
		bottom: 0;
	}

}

/* DARK MODE */

@media ( prefers-color-scheme: dark ) {

	.Button {
		color: #aaa;
		background-color: #222;
	}

		.Button:hover {
			color: #ccc;
			background-color: #444;
		}

		.Button.selected {
			color: #fff;
			background-color: #08f;
		}

	.Input, .TextArea {
		background-color: #222;
		border: 1px solid transparent;
		color: #888;
	}

	.Select {
		color: #ccc;
		background-color: #1e1e22;
		border: 1px solid #3a3d46;
		background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%23a8b0c0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E" );
		color-scheme: dark;
	}

		.Select:hover {
			color: #e8e8ec;
			background-color: #2a2d36;
			border-color: #4a5060;
		}

		.Select:focus-visible {
			border-color: #6b8cff;
			box-shadow: 0 0 0 2px rgba( 107, 140, 255, 0.25 );
		}

		.Select option {
			color: #e6e9ef;
			background-color: #12151c;
		}

	/* UI */

	#menubar {
		background: #111;
	}

			#menubar .menu .key {
				color: #444;
				border-color: #444;
			}

			#menubar .menu .options {
				background: #111;
			}

				#menubar .menu .options hr {
					border-color: #222;
				}

				#menubar .menu .options .option {
					color: #888;
				}

			#menubar .menu .options .inactive {
				color: #444;
			}

	#sidebar {
		background-color: #111;
	}

		#sidebar .Panel {
			border-top: 1px solid #222;
		}

		#sidebar .texture-preview-canvas {
			border-color: #5a5a5a;
			background: repeating-conic-gradient( #3a3a3a 0% 25%, #2a2a2a 0% 50% ) 50% / 12px 12px;
		}

		#sidebar .MaterialMapLabelRow .Label {
			color: #b0b0b0;
		}

	#tabs {
		background-color: #1b1b1b;
		border-top: 1px solid #222;
	}

		#tabs span {
			color: #555;
			border-right: 1px solid #222;
		}

		#tabs span.selected {
			background-color: #111;
		}

	#toolbar {
		background-color: #111;
	}

		#toolbar img {
			filter: invert(1);
		}

	.Outliner {
		background: #222;
	}

		.Outliner .option {
			color: #999;
		}

		.Outliner .option:hover {
			background-color: rgba(21,60,94,0.5);
		}

		.Outliner .option.active {
			background-color: rgba(21,60,94,1);
		}

	.TabbedPanel .Tabs {
		background-color: #1b1b1b;
		border-top: 1px solid #222;
	}

		.TabbedPanel .Tabs::-webkit-scrollbar {
			background: #111;
		}

		.TabbedPanel .Tab {
			color: #555;
			border-right: 1px solid #222;
		}

		.TabbedPanel .Tab.selected {
			color: #888;
			background-color: #111;
		}

	.Listbox {
		color: #888;
		background: #222;
	}

	.Listbox .ListboxItem:hover {
		background-color: rgba(21,60,94,0.5);
	}

	.Listbox .ListboxItem.active {
		background-color: rgba(21,60,94,1);
	}

}

/* Dialog */

.Dialog {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
}

.Dialog-background {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
}

.Dialog-content {
	position: relative;
	background: #eee;
	min-width: 300px;
	max-width: 90%;
	max-height: 90%;
	overflow: auto;
}

.Dialog-title {
	padding: 10px 15px;
	color: #666;
	text-transform: uppercase;
}

.Dialog-body {
	padding: 15px;
}

.Dialog-body .Row {
	display: flex;
	align-items: center;
	min-height: 24px;
	margin-bottom: 10px;
}

.Dialog-body .Row .Label {
	width: 120px;
	color: #888;
}

.Dialog-buttons {
	display: flex;
	justify-content: flex-end;
	margin-top: 15px;
}

@media ( prefers-color-scheme: dark ) {

	.Dialog-content {
		background: #111;
	}

	.Dialog-title {
		color: #888;
	}



}

/* Temporary Chrome fix (#24794) */

[draggable="true"] {
	transform: translate(0, 0);
	z-index: 0;
}

/* Modern UI overrides */
:root {
	--ui-bg: #0b0d10;
	--ui-panel: #12151c;
	--ui-panel-2: #171b24;
	--ui-border: #232836;
	--ui-text: #e6e9ef;
	--ui-muted: #9aa3b2;
	--ui-accent: #6b8cff;
	--ui-accent-strong: #4c6fff;
	--ui-hover: #1f2432;
	--ui-input: #0f131b;
	--ui-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

body {
	font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--ui-text);
	background: var(--ui-bg);
}

hr {
	border-top: 1px solid var(--ui-border);
}

#menubar {
	background: linear-gradient(180deg, rgba(21, 25, 34, 0.98), rgba(15, 18, 25, 0.98));
	border-bottom: 1px solid var(--ui-border);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

#menubar .menu .title {
	color: var(--ui-text);
}

#menubar .menu .options {
	background: var(--ui-panel);
	border: 1px solid var(--ui-border);
	border-radius: 8px;
	box-shadow: var(--ui-shadow);
}

#menubar .menu .options .option {
	color: var(--ui-text);
}

#menubar .menu .options .option:hover {
	background-color: var(--ui-hover);
	color: var(--ui-text);
}

#menubar .menu .options .inactive {
	color: var(--ui-muted);
}

#menubar .menu .key {
	color: var(--ui-muted);
	border-color: var(--ui-border);
}

#sidebar {
	background: var(--ui-panel);
	border-left: 1px solid var(--ui-border);
}

#sidebar .Panel {
	color: var(--ui-text);
	border-top: 1px solid var(--ui-border);
}

#sidebar .Row .Label,
.Dialog-body .Row .Label,
.Dialog-title {
	color: var(--ui-muted);
}

#sidebar .MaterialMapLabelRow .Label {
	color: var(--ui-muted);
}

#sidebar .texture-preview-canvas {
	border-color: var(--ui-border);
	background: repeating-conic-gradient( #2a2e38 0% 25%, #1c2028 0% 50% ) 50% / 12px 12px;
}

#tabs {
	background-color: var(--ui-panel-2);
	border-top: 1px solid var(--ui-border);
}

.TabbedPanel .Tabs {
	background: var(--ui-panel-2);
	border-bottom: 1px solid var(--ui-border);
}

.TabbedPanel .Tabs .Tab {
	color: var(--ui-muted);
}

.TabbedPanel .Tabs .Tab.selected {
	color: var(--ui-text);
	background: var(--ui-panel);
	border-bottom: 2px solid var(--ui-accent);
}

.Input,
.Select,
.TextArea {
	color: var(--ui-text);
	background-color: var(--ui-input);
	border: 1px solid var(--ui-border);
	border-radius: 6px;
}

.Input:focus,
.Select:focus,
.TextArea:focus {
	border-color: var(--ui-accent);
	box-shadow: 0 0 0 2px rgba(107, 140, 255, 0.2);
}

/* Native selects: consistent dropdown control (all UISelect instances) */
select.Select,
.Select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	min-height: 36px;
	padding: 8px 36px 8px 12px;
	font-size: 13px;
	line-height: 1.3;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0.01em;
	cursor: pointer;
	color-scheme: dark;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%239aa3b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 11px center;
	background-size: 14px;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.Select::-ms-expand {
	display: none;
}

.Select:hover {
	border-color: #3d4558;
	background-color: var(--ui-hover);
}

.Select:focus,
.Select:focus-visible {
	border-color: var(--ui-accent);
	box-shadow: 0 0 0 2px rgba(107, 140, 255, 0.22);
	outline: none;
}

.Select option,
.Select optgroup {
	color: var(--ui-text);
	background-color: var(--ui-input);
	padding: 10px 12px;
	font-weight: 400;
}

.Select:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Viewport toolbar: compact, high-contrast selects on bright overlay */
#viewport .Select {
	min-height: 32px;
	padding: 5px 32px 5px 10px;
	font-size: 12px;
	font-weight: 500;
	color: #1a1d24;
	color-scheme: light;
	background-color: rgba( 255, 255, 255, 0.94 );
	border-color: rgba( 0, 0, 0, 0.14 );
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath stroke='%23444855' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M4 6l4 4 4-4'/%3E%3C/svg%3E" );
}

#viewport .Select:hover {
	background-color: #fff;
	border-color: rgba( 0, 0, 0, 0.22 );
}

#viewport .Select:focus,
#viewport .Select:focus-visible {
	border-color: #4c6fff;
	box-shadow: 0 0 0 2px rgba( 76, 111, 255, 0.25 );
}

#viewport .Select option {
	color: #1a1d24;
	background-color: #fff;
}

.Button {
	color: var(--ui-text);
	background: var(--ui-panel-2);
	border: 1px solid var(--ui-border);
	border-radius: 6px;
}

.Button:hover {
	background: var(--ui-hover);
}

.Listbox {
	background-color: var(--ui-input);
	color: var(--ui-text);
	border: 1px solid var(--ui-border);
	border-radius: 6px;
}

.Listbox .ListboxItem {
	color: var(--ui-muted);
}

.Listbox .ListboxItem:hover,
.Listbox .ListboxItem.active {
	color: var(--ui-text);
	background-color: var(--ui-hover);
}

#viewport .Text {
	text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}

/* Toast Notifications */
#toast-container {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10000;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	pointer-events: none;
}

.toast {
	padding: 12px 24px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: translateY(20px);
	animation: toastIn 0.3s ease forwards;
	pointer-events: auto;
}

.toast.fade-out {
	animation: toastOut 0.3s ease forwards;
}

.toast.success {
	background: linear-gradient(135deg, #10b981, #059669);
	color: #fff;
}

.toast.error {
	background: linear-gradient(135deg, #ef4444, #dc2626);
	color: #fff;
}

.toast.info {
	background: linear-gradient(135deg, #6b8cff, #4c6fff);
	color: #fff;
}

@keyframes toastIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes toastOut {
	to {
		opacity: 0;
		transform: translateY(-20px);
	}
}

/* Progress Overlay */
.progress-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	backdrop-filter: blur(4px);
}

.progress-content {
	background: var(--panel-background, #333);
	border-radius: 12px;
	padding: 32px 48px;
	min-width: 400px;
	max-width: 500px;
	text-align: center;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.progress-title {
	font-size: 18px;
	font-weight: bold;
	margin-bottom: 8px;
	color: var(--text-color, #fff);
}

.progress-status {
	font-size: 14px;
	color: var(--text-color-secondary, #aaa);
	margin-bottom: 16px;
}

.progress-bar-container {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 8px;
	height: 8px;
	overflow: hidden;
	margin-bottom: 12px;
}

.progress-bar {
	height: 100%;
	background: linear-gradient(90deg, #4CAF50, #8BC34A);
	border-radius: 8px;
	transition: width 0.3s ease;
}

.progress-bar.indeterminate {
	width: 30%;
	animation: indeterminate 1.5s ease-in-out infinite;
}

@keyframes indeterminate {
	0% { transform: translateX(-100%); }
	100% { transform: translateX(400%); }
}

.progress-percentage {
	font-size: 12px;
	color: var(--text-color-secondary, #888);
}

/* Multi-task progress */
.progress-tasks {
	margin-top: 16px;
	text-align: left;
	max-height: 200px;
	overflow-y: auto;
}

.progress-task {
	margin-bottom: 12px;
	padding: 8px 12px;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 6px;
}

.progress-task-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.progress-task-name {
	font-size: 12px;
	color: var(--text-color, #fff);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 280px;
}

.progress-task-percent {
	font-size: 11px;
	color: var(--text-color-secondary, #888);
	margin-left: 8px;
}

.progress-task-bar-container {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	height: 4px;
	overflow: hidden;
}

.progress-task-bar {
	height: 100%;
	border-radius: 4px;
	transition: width 0.2s ease;
}

.progress-task-bar.download {
	background: linear-gradient(90deg, #2196F3, #03A9F4);
}

.progress-task-bar.process {
	background: linear-gradient(90deg, #FF9800, #FFC107);
}

.progress-task-bar.texture {
	background: linear-gradient(90deg, #9C27B0, #E91E63);
}

.progress-task-bar.complete {
	background: linear-gradient(90deg, #4CAF50, #8BC34A);
}

.progress-task.complete {
	opacity: 0.6;
}

.progress-task-bar.indeterminate {
	width: 30%;
	animation: indeterminate 1.2s ease-in-out infinite;
}