/* Arinas IDE Debugger styles */

/* Fixed overlay covering the full viewport */
#ars-debug-overlay {
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	z-index: 99999;
	background: #fff;
}
#ars-debug-overlay iframe {
	width: 100%; height: 100%;
	border: none;
}

/* Current line highlight in CodeMirror — yellow marks where execution actually stopped */
.dbg-current-line {
	background: rgba(255, 220, 0, 0.3) !important;
}

/* The same position in an outer frame is a surrounding context, not the place execution
   stopped at, so it is greyed out to make the difference obvious at a glance. */
.dbg-outer-line {
	background: rgba(150, 150, 150, 0.3) !important;
}

/* Breakpoint gutter marker */
.dbg-bp-marker {
	color: #c00;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
}

/* Step controls toolbar */
.dbg-controls {
	padding: 6px;
	border-bottom: 1px solid #ddd;
	display: flex;
	gap: 6px;
	align-items: center;
	background: #f5f5f5;
}
.dbg-controls button {
	padding: 3px 8px;
	font-size: 12px;
	cursor: pointer;
}

/* Status indicator */
.dbg-status {
	margin-left: 12px;
	color: #555;
	font-size: 12px;
	flex: 1;
}
.dbg-status.interrupted {
	color: #c00;
	font-weight: bold;
}
.dbg-status.terminated {
	color: #060;
}
.dbg-status.running {
	color: #a60;
}
.dbg-status.error {
	color: #fff;
	background: #c00;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 3px;
}

/* Data context tree panels (dst, tmp, src, cur, var, ret, cmd).
   Content is generated server-side by ide/nodes.getDataJson and loaded lazily by jsTree. */
.dbg-tree {
	font-size: 8pt;
	color: black;
	border-radius: 4px;
	overflow: auto;
	max-height: 20vh;
	min-height: 1.6em;
	margin-bottom: 6px;
}

/* Breakpoint list — click focuses the editor; checkbox toggles; × deletes. */
.dbg-bp-panel {
	margin: 10px 15px 0 15px;
	max-width: 330px;
}
.dbg-bp-heading {
	color: #c44;
	font-size: 11px;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}
.dbg-bp-list {
	list-style: none;
	margin: 0;
	padding: 4px 6px;
	background: rgba(255, 230, 230, 0.85);
	border: 2px solid #a44;
	border-radius: 4px;
	box-shadow: rgba(160, 40, 40, 0.7) 0 0 8px;
	max-height: 22vh;
	overflow: auto;
	font-size: 8pt;
	color: #311;
}
.dbg-bp-empty { color: #866; font-style: italic; padding: 2px 0; }
.dbg-bp-item {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 2px 0;
	border-bottom: 1px solid rgba(160, 40, 40, 0.15);
}
.dbg-bp-item:last-child { border-bottom: none; }
.dbg-bp-item.dbg-bp-off { opacity: 0.55; }
.dbg-bp-goto {
	flex: 1 1 auto;
	min-width: 0;
	background: none;
	border: none;
	padding: 0;
	text-align: left;
	cursor: pointer;
	color: inherit;
	font: inherit;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.dbg-bp-goto:hover { text-decoration: underline; }
.dbg-bp-cond {
	flex: 0 1 7em;
	min-width: 4em;
	font: inherit;
	border: 1px solid #c88;
	border-radius: 2px;
	padding: 0 3px;
}
.dbg-bp-del {
	background: none;
	border: none;
	color: #a00;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	padding: 0 2px;
}
.dbg-bp-marker-off { color: #888; }
.dbg-bp-marker-cond { color: #a60; }

/* Inherited call: the operation runs on the instance but is defined on an ancestor.
   Same notation as builtin stack(): [instance] definedIn.operation() */
.dbg-inherited,
.jstree-anchor.dbg-inherited,
.jstree-node.dbg-inherited > .jstree-anchor {
	font-style: italic;
}
#saveMessage.dbg-inherited {
	font-style: italic;
}

/* Response panel shown after termination */
#dbg-response-panel {
	display: none;
	padding: 8px;
	background: #f0f8e8;
	border-top: 1px solid #9c9;
	font-size: 12px;
	color: darkslategrey;
}
#dbg-result-frame {
	background: #fff;
	border-radius: 3px;
}
