/*
* Application-specific CSS tweaks for the BlazorClient shell,
* layered on top of BlazorCoreUi and Radzen defaults.
* It is loaded in the index.html file.
*/


/* Color for inline code snippets in documentation / helper texts */
code {
    color: #c02d76;
}

/* Align Bootstrap form-floating placeholders to the end (used on Identity / login-style forms) */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

/* When focusing a form-floating control, move placeholder text back to the start for typing */
.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* Full-screen fallback when a new app version is deployed while user is active. */
.app-update-required {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    padding: 10vh 1rem 1rem;
    background: color-mix(in srgb, var(--rz-base-900, #0f172a) 92%, transparent);
    color: var(--rz-text-color, #fff);
}

.app-update-required__card {
    box-sizing: border-box;
    width: min(100%, 36rem);
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: var(--rz-border-radius, 0.5rem);
    background: var(--rz-base-800, #1e293b);
    border: 1px solid color-mix(in srgb, var(--rz-link-hover-color, #88bef7) 35%, transparent);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.app-update-required__title {
    margin: 0 0 0.75rem;
    font-size: 1.125rem;
    line-height: 1.3;
    color: var(--rz-text-title-color, var(--rz-text-color, #fff));
}

.app-update-required__text {
    margin: 0 0 1.25rem;
    line-height: 1.45;
    color: var(--rz-text-secondary-color, rgba(255, 255, 255, 0.8));
}

.app-update-required__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border: 1px solid transparent;
    border-radius: var(--rz-border-radius, 0.5rem);
    background: var(--rz-link-hover-color, #88bef7);
    color: var(--rz-base-900, #0f172a);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.app-update-required__button:hover {
    filter: brightness(1.08);
}

.app-update-required__button:focus-visible {
    outline: 2px solid var(--rz-link-hover-color, #88bef7);
    outline-offset: 2px;
}