/* ══════════════════════════════════════════════════════
   DEBUG MODE STYLES
   ══════════════════════════════════════════════════════ */

.debug-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: var(--text-secondary);
	text-align: center;
}

/* Non-destructive debug overlay: covers an outer sidebar without
   destroying its normal content (preserves the Trident/Harpoon handlers). */
.debug-sidebar-overlay {
	position: absolute;
	inset: 0;
	z-index: 30;
	overflow-y: auto;
	background: var(--color-bg-secondary, #252526);
}

/* Debug Sidebars */
.debug-sidebars {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	max-height: 50%;
	display: flex;
	flex-direction: column;
	gap: 8px;
	z-index: 100;
}

.debug-sidebar {
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-primary);
	border-radius: 4px 4px 0 0;
	display: flex;
	flex-direction: column;
	max-height: 300px;
}

.debug-sidebar.collapsed .debug-sidebar-content {
	display: none;
}

.debug-sidebar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: var(--bg-tertiary);
	border-bottom: 1px solid var(--border-primary);
	cursor: pointer;
	user-select: none;
}

.debug-sidebar-header h3 {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-primary);
}

.debug-sidebar-toggle {
	background: none;
	border: none;
	color: var(--text-secondary);
	cursor: pointer;
	font-size: 12px;
	padding: 4px 8px;
}

.debug-sidebar-toggle:hover {
	color: var(--text-primary);
}

.debug-sidebar-content {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
	font-size: 12px;
}

/* State Sections */
.state-section {
	margin-bottom: 16px;
}

.state-section h4 {
	margin: 0 0 8px 0;
	font-size: 11px;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
}

.state-section > div {
	padding: 8px;
	background: var(--bg-primary);
	border-radius: 4px;
	color: var(--text-primary);
}

/* Debug Controls */
.debug-controls {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: 16px;
	padding-left: 16px;
	border-left: 1px solid var(--border-primary);
}

.debug-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 24px;
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	background: var(--bg-secondary);
	color: var(--text-primary);
	cursor: pointer;
	transition: all 0.2s;
}

.debug-btn:hover {
	background: var(--bg-hover);
	border-color: var(--border-active);
}

.debug-btn:active {
	background: var(--bg-active);
}

.debug-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Trace Entries */
.trace-entry {
	padding: 4px 0;
	border-left: 3px solid transparent;
	padding-left: 8px;
	margin-bottom: 2px;
}

.trace-entry.TRIGGER {
	border-left-color: #FFB74D;
	color: #FFB74D;
}

.trace-entry.TRANSITION {
	border-left-color: #64B5F6;
	color: #64B5F6;
}

.trace-entry.TOKEN {
	border-left-color: #81C784;
	color: #81C784;
}

.trace-entry.STATE {
	border-left-color: #BA68C8;
	color: #BA68C8;
}

.trace-entry.WHEN {
	border-left-color: #FFD54F;
	color: #FFD54F;
}

.trace-entry.CONNECTOR {
	border-left-color: #4DD0E1;
	color: #4DD0E1;
}

.trace-entry.ERROR {
	border-left-color: #E57373;
	color: #E57373;
	background: rgba(229, 115, 115, 0.1);
}

.trace-entry.PERFORMANCE {
	border-left-color: #A1887F;
	color: #A1887F;
}

.trace-timestamp {
	color: var(--text-muted);
	margin-right: 8px;
	font-size: 10px;
}

.trace-message {
	color: inherit;
}

/* ══════════════════════════════════════════════════════
   TRACES CONSOLE UI
   ══════════════════════════════════════════════════════ */

.traces-console {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--bg-primary);
}

/* Header */
.traces-console-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 8px 12px;
	background: var(--bg-tertiary);
	border-bottom: 1px solid var(--border-primary);
}

.traces-console-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-primary);
}

.traces-console-actions {
	display: flex;
	gap: 4px;
}

.traces-btn {
	padding: 4px 8px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	color: var(--text-primary);
	cursor: pointer;
	font-size: 12px;
	transition: all 0.2s;
}

.traces-btn:hover {
	background: var(--bg-hover);
	border-color: var(--border-active);
}

.traces-btn:active {
	background: var(--bg-active);
}

/* Controls */
.traces-controls {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 8px 12px;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-primary);
}

.traces-control-group {
	display: flex;
	align-items: center;
	gap: 8px;
}

.traces-label {
	font-size: 11px;
	color: var(--text-secondary);
	min-width: 50px;
	font-weight: 600;
}

.traces-search {
	flex: 1;
	padding: 4px 8px;
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 12px;
}

.traces-search:focus {
	outline: none;
	border-color: var(--border-active);
}

.traces-select {
	padding: 4px 8px;
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 12px;
	cursor: pointer;
}

.traces-select:focus {
	outline: none;
	border-color: var(--border-active);
}

.traces-checkbox-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
	color: var(--text-secondary);
	cursor: pointer;
	user-select: none;
}

.traces-checkbox-label input[type="checkbox"] {
	cursor: pointer;
}

/* Category Filters */
.traces-filters {
	padding: 8px 12px;
	background: var(--bg-tertiary);
	border-bottom: 1px solid var(--border-primary);
}

.traces-filters-title {
	font-size: 11px;
	font-weight: 600;
	color: var(--text-secondary);
	margin-bottom: 8px;
}

.traces-filters-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.traces-filter-item {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 6px;
	background: var(--bg-primary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	cursor: pointer;
	user-select: none;
	font-size: 11px;
	transition: all 0.2s;
}

.traces-filter-item:hover {
	background: var(--bg-hover);
	border-color: var(--border-active);
}

.traces-filter-checkbox {
	cursor: pointer;
	margin: 0;
}

.traces-filter-label {
	color: var(--text-primary);
	white-space: nowrap;
}

/* Trace List */
.traces-list {
	flex: 1;
	overflow-y: auto;
	padding: 8px;
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
	font-size: 11px;
	line-height: 1.6;
}

.traces-empty {
	text-align: center;
	padding: 32px;
	color: var(--text-muted);
	font-style: italic;
}

/* Trace Entry */
.trace-entry {
	display: flex;
	gap: 8px;
	padding: 4px 8px;
	border-left: 3px solid transparent;
	margin-bottom: 2px;
	border-radius: 2px;
	transition: background 0.1s;
}

.trace-entry:hover {
	background: var(--bg-hover);
}

.trace-time {
	min-width: 75px;
	color: var(--text-muted);
	font-size: 10px;
	flex-shrink: 0;
}

.trace-icon {
	min-width: 20px;
	text-align: center;
	flex-shrink: 0;
}

.trace-content {
	flex: 1;
	min-width: 0;
}

.trace-message {
	color: inherit;
	word-wrap: break-word;
}

.trace-data {
	margin-top: 4px;
	padding: 4px 8px;
	background: rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	font-size: 10px;
}

.trace-data-json {
	margin: 0;
	color: var(--text-secondary);
	white-space: pre-wrap;
	word-wrap: break-word;
}

.trace-data-error {
	color: #E57373;
	font-style: italic;
}

/* Category-specific colors */
.trace-trigger {
	border-left-color: #FFB74D;
}

.trace-trigger .trace-icon,
.trace-trigger .trace-message {
	color: #FFB74D;
}

.trace-transition {
	border-left-color: #64B5F6;
}

.trace-transition .trace-icon,
.trace-transition .trace-message {
	color: #64B5F6;
}

.trace-token {
	border-left-color: #81C784;
}

.trace-token .trace-icon,
.trace-token .trace-message {
	color: #81C784;
}

.trace-state {
	border-left-color: #BA68C8;
}

.trace-state .trace-icon,
.trace-state .trace-message {
	color: #BA68C8;
}

.trace-when {
	border-left-color: #FFD54F;
}

.trace-when .trace-icon,
.trace-when .trace-message {
	color: #FFD54F;
}

.trace-connector {
	border-left-color: #4DD0E1;
}

.trace-connector .trace-icon,
.trace-connector .trace-message {
	color: #4DD0E1;
}

.trace-error {
	border-left-color: #E57373;
	background: rgba(229, 115, 115, 0.1);
}

.trace-error .trace-icon,
.trace-error .trace-message {
	color: #E57373;
}

.trace-performance {
	border-left-color: #A1887F;
}

.trace-performance .trace-icon,
.trace-performance .trace-message {
	color: #A1887F;
}

/* ══════════════════════════════════════════════════════
   EXECUTION STATE UI
   ══════════════════════════════════════════════════════ */

.execution-state {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 12px;
	font-size: 12px;
}

.state-section {
	background: var(--bg-secondary);
	border-radius: 6px;
	padding: 8px;
}

.state-section h4 {
	margin: 0 0 8px 0;
	font-size: 11px;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.state-value {
	padding: 6px 8px;
	background: var(--bg-primary);
	border-radius: 4px;
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

.state-empty {
	padding: 8px;
	text-align: center;
	color: var(--text-muted);
	font-style: italic;
	font-size: 11px;
}

/* State Badges */
.state-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.state-badge.state-stopped {
	background: rgba(158, 158, 158, 0.2);
	color: #9E9E9E;
}

.state-badge.state-running {
	background: rgba(76, 175, 80, 0.2);
	color: #4CAF50;
}

.state-badge.state-paused {
	background: rgba(255, 183, 77, 0.2);
	color: #FFB74D;
}

.state-badge.state-stepping {
	background: rgba(33, 150, 243, 0.2);
	color: #2196F3;
}

/* State Machine State */
.state-label {
	color: var(--text-secondary);
	margin-right: 8px;
}

.state-current {
	color: var(--text-primary);
	font-weight: 600;
}

/* Places List */
.places-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.place-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 8px;
	background: var(--bg-primary);
	border-radius: 4px;
	border-left: 3px solid transparent;
	transition: all 0.2s;
}

.place-item:hover {
	background: var(--bg-hover);
}

.place-item.place-has-tokens {
	border-left-color: #81C784;
}

.place-name {
	color: var(--text-primary);
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
	font-size: 11px;
}

.place-tokens {
	color: var(--text-secondary);
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
	font-size: 10px;
}

.place-item.place-has-tokens .place-tokens {
	color: #81C784;
	font-weight: 600;
}

/* Transitions List */
.transitions-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.transition-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 8px;
	background: var(--bg-primary);
	border-radius: 4px;
	border-left: 3px solid transparent;
	transition: all 0.2s;
}

.transition-item:hover {
	background: var(--bg-hover);
}

.transition-item.transition-enabled {
	border-left-color: #64B5F6;
}

.transition-name {
	color: var(--text-primary);
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
	font-size: 11px;
}

.transition-badge {
	color: #64B5F6;
	font-size: 10px;
	font-weight: 600;
}

/* Connectors List */
.connectors-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.connector-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 8px;
	background: var(--bg-primary);
	border-radius: 4px;
	border-left: 3px solid #4DD0E1;
	transition: all 0.2s;
}

.connector-item:hover {
	background: var(--bg-hover);
}

.connector-name {
	color: var(--text-primary);
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
	font-size: 11px;
	font-weight: 600;
}

.connector-type {
	color: var(--text-secondary);
	font-size: 10px;
}

.connector-badge {
	margin-left: auto;
	width: 8px;
	height: 8px;
	border-radius: 50%;
}

.connector-badge.connector-active {
	color: #4CAF50;
}

/* ══════════════════════════════════════════════════════
   HARPOON RUNTIME CANVAS
   ══════════════════════════════════════════════════════ */

.runtime-canvas-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	background: #f5f5f5;
	overflow: hidden;
}

.runtime-canvas-controls {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	gap: 4px;
	z-index: 10;
}

.canvas-btn {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 16px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s;
}

.canvas-btn:hover {
	background: var(--bg-hover);
	border-color: var(--border-active);
}

.canvas-btn:active {
	background: var(--bg-active);
}

.runtime-canvas {
	width: 100%;
	height: 100%;
}

/* SVG Elements */
.runtime-canvas .arc {
	opacity: 0.6;
	transition: opacity 0.2s;
}

.runtime-canvas .arc:hover {
	opacity: 1;
}

.runtime-canvas .place {
	cursor: pointer;
	transition: all 0.2s;
}

.runtime-canvas .place:hover circle {
	stroke-width: 3;
}

.runtime-canvas .place.highlighted circle {
	stroke: #FFB74D;
	stroke-width: 4;
}

.runtime-canvas .transition {
	cursor: pointer;
	transition: all 0.2s;
}

.runtime-canvas .transition:hover rect {
	stroke-width: 3;
}

.runtime-canvas .transition.highlighted rect {
	stroke: #FFB74D;
	stroke-width: 4;
	fill: #64B5F6;
}

/* Token animations on canvas */
.animated-token {
	pointer-events: none;
}

/* ══════════════════════════════════════════════════════
   DEBUG TOOLBAR
   ══════════════════════════════════════════════════════ */

.debug-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 8px 16px;
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-primary);
	height: 48px;
}

.debug-state-indicator {
	flex-shrink: 0;
}

.debug-toolbar-controls {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.debug-toolbar-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--bg-primary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
}

.debug-toolbar-btn:hover:not(:disabled) {
	background: var(--bg-hover);
	border-color: var(--border-active);
}

.debug-toolbar-btn:active:not(:disabled) {
	background: var(--bg-active);
}

.debug-toolbar-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.debug-toolbar-btn svg {
	width: 16px;
	height: 16px;
}

/* Specific button styles */
.debug-btn-play {
	background: rgba(76, 175, 80, 0.1);
	border-color: #4CAF50;
	color: #4CAF50;
}

.debug-btn-play:hover:not(:disabled) {
	background: rgba(76, 175, 80, 0.2);
}

.debug-btn-pause {
	background: rgba(255, 183, 77, 0.1);
	border-color: #FFB74D;
	color: #FFB74D;
}

.debug-btn-pause:hover:not(:disabled) {
	background: rgba(255, 183, 77, 0.2);
}

.debug-btn-stop {
	background: rgba(229, 115, 115, 0.1);
	border-color: #E57373;
	color: #E57373;
}

.debug-btn-stop:hover:not(:disabled) {
	background: rgba(229, 115, 115, 0.2);
}

.debug-btn-step-into,
.debug-btn-step-over {
	background: rgba(33, 150, 243, 0.1);
	border-color: #2196F3;
	color: #2196F3;
}

.debug-btn-step-into:hover:not(:disabled),
.debug-btn-step-over:hover:not(:disabled) {
	background: rgba(33, 150, 243, 0.2);
}

.debug-toolbar-info {
	flex: 1;
	color: var(--text-secondary);
	font-size: 12px;
	text-align: right;
}

/* ══════════════════════════════════════════════════════
   BREAKPOINT UI
   ══════════════════════════════════════════════════════ */

.breakpoint-ui {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
}

.breakpoint-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 8px;
	border-bottom: 1px solid var(--border-primary);
}

.breakpoint-header h4 {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-primary);
}

.breakpoint-actions {
	display: flex;
	gap: 4px;
}

.breakpoint-btn {
	padding: 4px 8px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	color: var(--text-primary);
	cursor: pointer;
	font-size: 12px;
}

.breakpoint-btn:hover {
	background: var(--bg-hover);
}

.breakpoint-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 200px;
	overflow-y: auto;
}

.breakpoint-empty {
	padding: 16px;
	text-align: center;
	color: var(--text-muted);
	font-style: italic;
	font-size: 11px;
}

.breakpoint-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 8px;
	background: var(--bg-primary);
	border-radius: 4px;
	border-left: 3px solid #E57373;
	transition: all 0.2s;
}

.breakpoint-item:hover {
	background: var(--bg-hover);
}

.breakpoint-item.breakpoint-disabled {
	opacity: 0.5;
	border-left-color: #9E9E9E;
}

.breakpoint-info {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
}

.breakpoint-type-badge {
	font-size: 14px;
}

.breakpoint-id {
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
	font-size: 11px;
	color: var(--text-primary);
}

.breakpoint-condition {
	font-size: 10px;
	cursor: help;
}

.breakpoint-actions {
	display: flex;
	gap: 2px;
}

.breakpoint-action-btn {
	padding: 2px 6px;
	background: transparent;
	border: 1px solid var(--border-primary);
	border-radius: 3px;
	color: var(--text-secondary);
	cursor: pointer;
	font-size: 10px;
	transition: all 0.2s;
}

.breakpoint-action-btn:hover {
	background: var(--bg-hover);
	color: var(--text-primary);
}

.breakpoint-add-form {
	display: flex;
	gap: 4px;
	padding-top: 8px;
	border-top: 1px solid var(--border-primary);
}

.breakpoint-select {
	padding: 4px 8px;
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 11px;
	cursor: pointer;
}

.breakpoint-input {
	flex: 1;
	padding: 4px 8px;
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	background: var(--bg-primary);
	color: var(--text-primary);
	font-size: 11px;
}

.breakpoint-input:focus {
	outline: none;
	border-color: var(--border-active);
}

.breakpoint-btn-add {
	padding: 4px 12px;
	background: rgba(76, 175, 80, 0.1);
	border: 1px solid #4CAF50;
	border-radius: 4px;
	color: #4CAF50;
	cursor: pointer;
	font-size: 11px;
	font-weight: 600;
	transition: all 0.2s;
}

.breakpoint-btn-add:hover {
	background: rgba(76, 175, 80, 0.2);
}

/* ══════════════════════════════════════════════════════
   SIDEBAR EMPTY STATE
   ══════════════════════════════════════════════════════ */

.sidebar-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 40px 20px;
	text-align: center;
	color: var(--text-secondary);
}

.sidebar-empty-state i {
	margin-bottom: 16px;
}

/* ══════════════════════════════════════════════════════
   DEBUG TOOLBAR
   ══════════════════════════════════════════════════════ */

.debug-toolbar-container {
	background: var(--bg-secondary);
	border-bottom: 1px solid var(--border-primary);
	padding: 8px 12px;
}

.debug-toolbar {
	display: flex;
	align-items: center;
	gap: 16px;
}

.debug-state-indicator {
	min-width: 100px;
}

.state-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.state-badge.state-stopped {
	background: rgba(158, 158, 158, 0.15);
	color: #9e9e9e;
}

.state-badge.state-running {
	background: rgba(76, 175, 80, 0.15);
	color: #4CAF50;
	animation: pulse 2s ease-in-out infinite;
}

.state-badge.state-paused {
	background: rgba(255, 193, 7, 0.15);
	color: #ffc107;
}

.state-badge.state-stepping {
	background: rgba(33, 150, 243, 0.15);
	color: #2196F3;
}

.debug-toolbar-controls {
	display: flex;
	gap: 8px;
	flex: 1;
}

.debug-toolbar-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: var(--bg-tertiary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 12px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s;
	outline: none;
}

.debug-toolbar-btn:hover:not(:disabled) {
	background: var(--bg-hover);
	border-color: var(--border-active);
}

.debug-toolbar-btn:active:not(:disabled) {
	transform: translateY(1px);
}

.debug-toolbar-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.debug-btn-play svg {
	fill: #4CAF50;
}

.debug-btn-pause svg {
	fill: #ffc107;
}

.debug-btn-stop svg {
	fill: #f44336;
}

.debug-toolbar-info {
	font-size: 11px;
	color: var(--text-secondary);
	font-style: italic;
	min-width: 150px;
	text-align: right;
}

/* ══════════════════════════════════════════════════════
   DEBUG SIDEBAR SECTIONS
   ══════════════════════════════════════════════════════ */

.debug-sidebar-container {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow-y: auto;
}

.sidebar-section {
	border-bottom: 1px solid var(--border-primary);
}

.sidebar-section.collapsed .sidebar-section-content {
	display: none;
}

.sidebar-section.expanded .sidebar-section-content {
	display: block;
}

.sidebar-section-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: var(--bg-tertiary);
	cursor: pointer;
	user-select: none;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-primary);
}

.sidebar-section-header:hover {
	background: var(--bg-hover);
}

.sidebar-section-icon {
	width: 12px;
	text-align: center;
	color: var(--text-secondary);
}

.section-count {
	margin-left: auto;
	font-size: 10px;
	color: var(--text-secondary);
	font-weight: 400;
}

.sidebar-section-content {
	padding: 12px;
}

/* Empty states */
.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 32px 16px;
	text-align: center;
	color: var(--text-secondary);
}

.empty-icon {
	width: 32px;
	height: 32px;
	opacity: 0.5;
}

.empty-state span {
	font-size: 12px;
	font-weight: 600;
}

.empty-state small {
	font-size: 10px;
	color: var(--text-muted);
}

/* Debug buttons */
.debug-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 11px;
	cursor: pointer;
	transition: all 0.2s;
}

.debug-btn:hover {
	background: var(--bg-hover);
}

.debug-btn-small {
	padding: 3px 6px;
	font-size: 10px;
}

.debug-icon-small {
	width: 12px;
	height: 12px;
}

/* Breakpoints toolbar */
.breakpoints-toolbar {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.breakpoints-list,
.callstack-list,
.variables-list,
.places-list,
.transitions-list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

/* Variables tabs */
.variables-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--border-primary);
}

.variables-tab {
	padding: 6px 12px;
	background: transparent;
	border: none;
	border-bottom: 2px solid transparent;
	color: var(--text-secondary);
	font-size: 11px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
}

.variables-tab:hover {
	color: var(--text-primary);
	background: var(--bg-hover);
}

.variables-tab.active {
	color: var(--text-primary);
	border-bottom-color: var(--border-active);
}

/* State machine info */
.statemachine-info {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.info-row {
	display: flex;
	justify-content: space-between;
	padding: 6px 0;
	border-bottom: 1px solid var(--border-primary);
	font-size: 11px;
}

.info-label {
	color: var(--text-secondary);
	font-weight: 600;
}

.info-value {
	color: var(--text-primary);
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
}

/* Debug console */
.debug-sidebar-bottom {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.debug-console-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 12px;
	background: var(--bg-tertiary);
	border-bottom: 1px solid var(--border-primary);
}

.console-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 600;
	color: var(--text-primary);
}

.console-icon {
	width: 14px;
	height: 14px;
}

.console-controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

.console-control-group {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 11px;
}

.console-control-group label {
	color: var(--text-secondary);
	font-weight: 600;
}

.console-select {
	padding: 3px 6px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 10px;
	cursor: pointer;
}

.console-filter-btn {
	padding: 3px 8px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	color: var(--text-secondary);
	font-size: 10px;
	cursor: pointer;
	transition: all 0.2s;
}

.console-filter-btn:hover {
	background: var(--bg-hover);
	color: var(--text-primary);
}

.console-filter-btn.active {
	background: var(--border-active);
	color: white;
	border-color: var(--border-active);
}

.console-search {
	padding: 4px 8px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 11px;
	width: 200px;
}

.console-action-btn {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	background: var(--bg-secondary);
	border: 1px solid var(--border-primary);
	border-radius: 4px;
	color: var(--text-primary);
	font-size: 10px;
	cursor: pointer;
	transition: all 0.2s;
}

.console-action-btn:hover {
	background: var(--bg-hover);
}

.action-icon {
	width: 12px;
	height: 12px;
}

.debug-console-content {
	flex: 1;
	overflow-y: auto;
	padding: 12px;
	background: var(--bg-primary);
	font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
	font-size: 11px;
	line-height: 1.6;
}

.console-welcome {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	padding: 40px 20px;
	text-align: center;
	color: var(--text-secondary);
}

.welcome-icon {
	width: 48px;
	height: 48px;
	opacity: 0.5;
}

.console-welcome p {
	margin: 0;
	font-size: 12px;
}

.welcome-hint {
	font-size: 10px;
	color: var(--text-muted);
	max-width: 500px;
}

/* Debug console container positioning */
.debug-console-container {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 300px;
	background: var(--bg-secondary);
	border-top: 1px solid var(--border-primary);
	display: none;
	z-index: 50;
}

.debug-console-container.show {
	display: flex;
	flex-direction: column;
}
