* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
	background: #f5f5f5;
}

#editor-container {
	width: 100%;
	height: 100%;
}

/* Error styles */
.error-container {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #f5f5f5;
}

.error-message {
	text-align: center;
	padding: 40px;
	background: white;
	border-radius: 12px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	max-width: 500px;
	width: 90%;
}

.error-icon {
	font-size: 48px;
	margin-bottom: 20px;
	display: block;
}

.error-message h2 {
	color: #333;
	margin-bottom: 15px;
	font-size: 24px;
}

.error-message p {
	color: #666;
	margin-bottom: 10px;
	font-size: 16px;
	line-height: 1.5;
}

.error-details {
	color: #999;
	font-size: 14px;
	margin-top: 20px;
	padding: 15px;
	background: #f9f9f9;
	border-radius: 8px;
	word-break: break-all;
	text-align: left;
}

.error-message button {
	margin-top: 20px;
	padding: 10px 20px;
	background: #667eea;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}

.error-message button:hover {
	background: #5a67d8;
}

/* Empty state styles */
.empty-state {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
}

.empty-state-content {
	text-align: center;
	padding: 40px;
}

.empty-state h1 {
	font-size: 32px;
	margin-bottom: 15px;
}

.empty-state p {
	font-size: 18px;
	opacity: 0.9;
}

.empty-state code {
	background: rgba(255,255,255,0.2);
	padding: 2px 8px;
	border-radius: 4px;
	font-family: monospace;
}

/* Loading styles */
.loading {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #f5f5f5;
	font-size: 18px;
	color: #666;
}

.spinner {
	width: 40px;
	height: 40px;
	margin-right: 15px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading-content {
	display: flex;
	align-items: center;
	justify-content: center;
}

code {
	background: rgba(0,0,0,0.05);
	padding: 2px 6px;
	border-radius: 4px;
	font-family: monospace;
}

/* Responsive */
@media (max-width: 768px) {
	.error-message {
		padding: 20px;
		margin: 20px;
		width: auto;
	}
	
	.error-message h2 {
		font-size: 20px;
	}
	
	.empty-state h1 {
		font-size: 24px;
	}
	
	.empty-state p {
		font-size: 14px;
	}
}