/* ─── Brand / global ──────────────────────────────────────────────────────── */

:root {
    --pr-blue: #0054a6;
    --pr-toolbar-height: 46px;
    --pr-toolbar-bg: #1a1f2e;
    --pr-canvas-bg: #0d1117;
}

/* Sidebar brand logo text */
.navbar-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

/* Tabler icon sizing in nav */
.navbar-vertical .nav-link-icon .ti {
    font-size: 1.25rem;
}

/* ─── Steps counter (Downloads page) ─────────────────────────────────────── */

.steps.steps-counter {
    counter-reset: step;
}

.steps.steps-counter .step-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

.steps.steps-counter .step-item::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--tblr-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Viewer shell (Connect page) ────────────────────────────────────────── */

.viewer-shell,
.viewer-shell body {
    margin: 0;
    padding: 0;
    background: var(--pr-canvas-bg);
    height: 100vh;
    overflow: hidden;
}

/* Full-screen flex column wrapping toolbar + canvas */
.viewer-shell > div,
[class*="viewer-shell"] > div {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.viewer-offline {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: var(--pr-canvas-bg);
}

/* ─── Viewer toolbar ──────────────────────────────────────────────────────── */

.viewer-toolbar {
    display: flex;
    align-items: center;
    height: var(--pr-toolbar-height);
    padding: 0 1rem;
    background: var(--pr-toolbar-bg);
    color: #c9d1d9;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    gap: 0.5rem;
    user-select: none;
    z-index: 10;
}

.viewer-machine-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: #e6edf3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* ─── Canvas container ────────────────────────────────────────────────────── */

.canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    background: var(--pr-canvas-bg);
    min-height: 0; /* allow flex child to shrink */
}

#remoteCanvas {
    display: block;
    /* Canvas renders at native resolution; CSS scales it to fit the container */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: none;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    outline: none;
}

/* ─── Login page centering ────────────────────────────────────────────────── */

.page.page-center {
    min-height: 100vh;
    background: var(--tblr-body-bg);
}

/* ─── Misc ────────────────────────────────────────────────────────────────── */

.font-monospace {
    font-family: var(--tblr-font-monospace);
}

/* Improve table row hover contrast */
.table-hover > tbody > tr:hover > * {
    --tblr-table-accent-bg: rgba(0, 84, 166, 0.04);
}
