/* Deliberately minimal. Bootstrap was removed from the template: payload is the cost driver
   for a Blazor app (docs/BLAZOR_PORT_SPIKE.md §10.3) and none of it was being used. */

:root {
    --bg: #1e1e1e;
    --panel: #252526;
    --border: #3c3c3c;
    --text: #d4d4d4;
    --muted: #858585;
    --accent: #4ec9b0;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    overflow: hidden;
}

#app { height: 100%; }

.boot {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.boot-title { font-size: 2rem; font-weight: 600; letter-spacing: .08em; color: var(--accent); }
.boot-sub { color: var(--muted); font-size: .85rem; }

.shell { height: 100%; display: flex; flex-direction: column; }

.toolbar {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .75rem;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    font-size: .8rem;
}

.toolbar .brand { font-weight: 600; color: var(--accent); letter-spacing: .06em; }
.toolbar .spacer { flex: 1; }
.toolbar .stat { color: var(--muted); font-variant-numeric: tabular-nums; }

button {
    background: #0e639c;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: .3rem .7rem;
    font-size: .8rem;
    cursor: pointer;
}

button:hover { background: #1177bb; }
button.secondary { background: #3a3d41; }
button.secondary:hover { background: #4a4d51; }

.canvas-wrap { flex: 1; position: relative; min-height: 0; }
canvas { width: 100%; height: 100%; display: block; }

/* --- workspace: editor | canvas ------------------------------------------------------- */

.workspace { flex: 1; display: flex; min-height: 0; }

.editor-pane { flex: 1 1 45%; min-width: 260px; background: #1b1b1b; }

.splitter { width: 1px; background: var(--border); }

.canvas-pane { flex: 1 1 55%; display: flex; flex-direction: column; min-width: 0; }

.coords {
    position: absolute;
    right: .6rem;
    bottom: .5rem;
    font-family: Consolas, monospace;
    font-size: .72rem;
    color: var(--muted);
    background: rgba(30, 30, 30, .75);
    padding: .15rem .45rem;
    border-radius: 3px;
    pointer-events: none;
}

/* --- console -------------------------------------------------------------------------- */

.console {
    border-top: 1px solid var(--border);
    background: var(--panel);
    display: flex;
    flex-direction: column;
    min-height: 80px;
}

.console-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem .6rem;
    font-size: .72rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}

.console-body {
    flex: 1;
    overflow: auto;
    padding: .4rem .6rem;
    font-family: Consolas, monospace;
    font-size: .76rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.console-body .err { color: #f48771; }
.console-body .warn { color: #cca700; }

button.tiny { padding: .1rem .45rem; font-size: .7rem; }

/* --- samples -------------------------------------------------------------------------- */

.samples {
    display: flex;
    gap: .4rem;
    padding: .45rem .75rem;
    background: #202021;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: .6rem 1.25rem;
    background: #7c2d12;
    color: #fff;
    z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; float: right; }
