/**
 * MLCC Player CSS — Workspace-first layout
 */

.mrt-mlcc-player-container {
	display: flex;
	flex-direction: column;
	width: 100%;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	overflow: hidden;
	background: #f8fafc;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	margin: 1rem 0;
}

/* Topbar */
.mlcc-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 20px;
	height: 44px;
	background: #1e293b;
	color: #fff;
	flex-shrink: 0;
}

.mlcc-brand {
	font-weight: bold;
	font-size: 15px;
}

.mlcc-meta {
	display: flex;
	gap: 15px;
	align-items: center;
}

.mlcc-badge {
	background: #3b82f6;
	color: white;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}

.mlcc-score {
	font-weight: 600;
	color: #fbbf24;
}

/* Blockly Editor Area — Large, full width */
.mlcc-editor-area {
	width: 100%;
	height: 420px;
	border-bottom: 1px solid #e2e8f0;
	background: #fff;
}

#mlcc-blockly-div {
	width: 100%;
	height: 420px;
}

/* Bottom Section: Problem + Output side by side */
.mlcc-bottom-section {
	display: flex;
	height: 180px;
	border-bottom: 1px solid #e2e8f0;
}

.mlcc-bottom-panel {
	display: flex;
	flex-direction: column;
	border-right: 1px solid #e2e8f0;
}

.mlcc-bottom-panel:last-child {
	border-right: none;
}

.mlcc-bottom-problem {
	flex: 0 0 55%;
}

.mlcc-bottom-output {
	flex: 0 0 45%;
}

.mlcc-panel-header {
	padding: 8px 15px;
	background: #f1f5f9;
	border-bottom: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.mlcc-panel-header h3 {
	margin: 0;
	font-size: 13px;
	color: #334155;
	font-weight: 600;
}

.mlcc-panel-content {
	padding: 12px 15px;
	flex: 1;
	overflow-y: auto;
	font-size: 14px;
}

/* Console Output */
.console-bg {
	background: #0f172a;
	color: #10b981;
}

#mlcc-console-output {
	margin: 0;
	font-family: "Fira Code", "Courier New", monospace;
	font-size: 13px;
	white-space: pre-wrap;
	word-wrap: break-word;
}

/* Controls Bar */
.mlcc-controls-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px;
	background: #f8fafc;
	flex-shrink: 0;
}

.mlcc-controls-left, .mlcc-controls-right {
	display: flex;
	gap: 8px;
}

.mlcc-btn {
	padding: 7px 14px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	transition: opacity 0.2s, transform 0.1s;
}

.mlcc-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

.mlcc-btn:active {
	transform: translateY(0);
}

.mlcc-btn.primary { background: #3b82f6; color: white; }
.mlcc-btn.success { background: #10b981; color: white; }
.mlcc-btn.danger { background: #ef4444; color: white; }
.mlcc-btn.secondary { background: #e2e8f0; color: #475569; }

/* Skeleton Loading */
.mlcc-skeleton {
	height: 14px;
	background: #e2e8f0;
	border-radius: 4px;
	margin-bottom: 8px;
	animation: mlcc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.mlcc-skeleton.half { width: 50%; }

@keyframes mlcc-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: .5; }
}
