/* Generic app.css — TrackBranch uses trackbranch.css for all theming */

html, body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--tb-success);
}

.invalid {
    outline: 1px solid var(--tb-danger);
}

.validation-message {
    color: var(--tb-danger);
    font-size: 0.85rem;
}

/* Offline / disconnected banner */
.tb-offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050;
    background: var(--tb-warning, #f59e0b);
    color: white;
    text-align: center;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    display: none;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.tb-offline-banner.visible {
    display: block;
    transform: translateY(0);
}

.tb-offline-banner i {
    margin-right: 0.4rem;
}

#blazor-error-ui {
    background: var(--tb-danger);
    color: white;
    bottom: 0;
    position: fixed;
    width: 100%;
    padding: 0.6rem 1.2rem;
    display: none;
    z-index: 1000;
}

#blazor-error-ui.visible {
    display: block;
}

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

.blazor-error-boundary {
    background: var(--tb-danger);
    padding: 1rem;
    color: white;
    border-radius: 6px;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}
