/* ── Global overrides for MudBlazor dark theme ────────────────── */

html, body {
    margin: 0;
    padding: 0;
    background: var(--tt-bg, #050B16);
    color: var(--tt-text, #F5F7FA);
}

/* ── AppBar logo — responsive swap ───────────────────────────── */

.tt-logo-long {
    height: 28px;
    display: block;
    object-fit: contain;
}

.tt-logo-icon {
    height: 32px;
    display: none;
    object-fit: contain;
}

@media (max-width: 600px) {
    .tt-logo-long { display: none; }
    .tt-logo-icon { display: block; }
}

/* ── Utility helpers used in pages ───────────────────────────── */

.font-monospace {
    font-family: 'Cascadia Code', 'Consolas', 'Courier New', monospace;
    font-size: 12px;
}

.fw-bold  { font-weight: 600; }
.cursor-pointer { cursor: pointer; }

/* Ensure monospace in MudTd cells */
.mud-table-cell.font-monospace {
    font-family: 'Cascadia Code', 'Consolas', monospace;
    font-size: 12px;
}

/* Chart wrapper for LineChart component */
.chart-wrapper {
    border: 1px solid #334155;
    border-radius: 8px;
    overflow: hidden;
}

.chart-empty {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    color: #475569;
}

/* Blazor error UI */
#blazor-error-ui {
    background: #450a0a;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: #fca5a5;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
