/* =========================================================
   NOTIQ - GLOBAL APP/FRAMEWORK COMPATIBILITY
   Brand styling lives in notiq-theme.css.
   ========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

button,
input,
textarea,
select {
    font: inherit;
}

img,
svg {
    max-width: 100%;
}

/* Blazor validation */
.valid.modified:not([type="checkbox"]) {
    border-color: var(--notiq-success);
}

.invalid {
    border-color: var(--notiq-danger);
}

.validation-message,
.validation-errors {
    color: var(--notiq-danger);
}

.validation-message {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    font-weight: 500;
}

.validation-errors {
    margin: 0;
    padding-left: 1.25rem;
}

/* Blazor error boundary */
.blazor-error-boundary {
    display: flex;
    align-items: center;
    min-height: 64px;
    margin: 1rem;
    padding: 1rem 1.25rem;
    color: #ffffff;
    border-radius: var(--notiq-radius-md);
    background: var(--notiq-danger);
    box-shadow: var(--notiq-shadow-md);
}

.blazor-error-boundary::after {
    content: "An unexpected error occurred. Please refresh the page.";
}

/* Compatibility for default Blazor/Bootstrap markup still present. */
.darker-border-checkbox.form-check-input {
    border-color: var(--notiq-border-strong);
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--notiq-text-muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

#blazor-error-ui {
    display: none;
}
