.shader-error-popup {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #1e1e1e;
	color: #d4d4d4;
	width: 90vw;
	max-width: 1200px;
	height: 80vh;
	border-radius: 4px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.5);
	font-family: monospace;
	z-index: 10000;
}

.shader-error-header {
	padding: 12px;
	background: #2d2d2d;
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.shader-error-title {
	color: #e06c75;
	font-weight: bold;
}

.shader-error-close {
	cursor: pointer;
	padding: 4px 8px;
	background: #363636;
	border: none;
	color: #d4d4d4;
	border-radius: 2px;
}

.shader-error-tabs {
	display: flex;
	background: #252526;
	padding: 0 12px;
}

.shader-error-tab {
	padding: 8px 16px;
	cursor: pointer;
	border: none;
	background: none;
	color: #d4d4d4;
	position: relative;
}

.shader-error-tab.active {
	background: #1e1e1e;
}

.shader-error-tab::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: #007acc;
	opacity: 0;
	transition: opacity 0.2s;
}

.shader-error-tab.active::after {
	opacity: 1;
}

.shader-error-content {
	height: calc(100% - 120px);
	overflow: auto;
	padding: 16px;
}

.shader-error-panel {
	display: none;
	height: 100%;
}

.shader-error-panel.active {
	display: block;
}

.error-message {
	color: #f44747;
	margin-bottom: 16px;
	white-space: pre-wrap;
}

.code-container {
	background: #1e1e1e;
	padding: 12px;
	margin: 8px 0;
	border-radius: 4px;
	border: 1px solid #363636;
}

.code-line {
	display: flex;
	font-family: 'Consolas', monospace;
}

.line-number {
	color: #858585;
	text-align: right;
	padding-right: 16px;
	user-select: none;
	min-width: 40px;
}

.line-content {
	color: #d4d4d4;
	white-space: pre;
}

.line-content.error {
	background: rgba(244,67,54,0.1);
	color: #f44747;
}

.error-line-highlight {
	background: rgba(244,67,54,0.1);
	width: 100%;
}
