@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Fonts, colors and component looks live in tokens.css (both color modes). */

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--bs-success);
}

.invalid {
    outline: 1px solid var(--bs-danger);
}

.validation-message {
    color: var(--bs-danger);
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: black;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }


/* QR code generator */
#qrCode {
    margin: 15px;
}
    #qrCode img {
        border-width: 3px;
        border-style: solid;
        border-color: white;
    }



footer {
    overflow: hidden !important;
}

input[type="checkbox"] {
    height: 1.3em;
    width: 1.3em;
}

input[disabled], input[readonly], select[disabled] {
    background-color: var(--bs-form-control-disabled-bg) !important;
    color: var(--bs-secondary-color);
}

/* A disabled checkbox, switch or radio still shows that it is on: the grey
   above hid the blue of a checked one (your own Administrator box on Users
   & Groups, the fixed pages in Access for a user). */
input[type="checkbox"][disabled]:checked,
input[type="radio"][disabled]:checked {
    background-color: var(--ea-blue-action) !important;
}

.pointer {
    cursor: pointer;
}

/* A section links scroll to (Dashboard cards): it stops below the sticky top
   bar, and on phones below the brand bar too (MainLayout.razor.css). */
.scroll-target {
    scroll-margin-top: 4.5rem;
}

@media (max-width: 640.98px) {
    .scroll-target {
        scroll-margin-top: 7.5rem;
    }
}

#components-reconnect-modal {
    color: black;
}

/* Reconnect overlay (see reconnect.js): centered spinner until the server is back. */
.app-reconnect {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
}

.app-reconnect[hidden] {
    display: none;
}

.app-reconnect-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    background: rgba(33, 37, 41, 0.95);
    color: #f8f9fa;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.5);
}

.app-reconnect .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
    color: var(--ea-blue);
}

.app-reconnect-text {
    font-size: 1rem;
}


/* FocusOnNavigate moves focus to the page heading for screen readers; no
   outline is wanted for pointer users. */
h1:focus:not(:focus-visible),
h1[tabindex="-1"]:focus {
    outline: none;
}
