.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 1rem;
    display: none;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 10000;
    font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

@supports (padding: env(safe-area-inset-bottom)) {
    #blazor-error-ui { bottom: max(1rem, env(safe-area-inset-bottom)); }
}

#blazor-error-ui .blazor-error-card {
    pointer-events: auto;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--surface, #ffffff);
    color: var(--ink, #111827);
    border: 1px solid var(--line, #e5e7eb);
    border-radius: var(--radius-lg, 20px);
    box-shadow: 0 8px 16px rgba(17, 24, 39, .08), 0 20px 40px rgba(17, 24, 39, .12);
    backdrop-filter: saturate(1.2) blur(8px);
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
    animation: blazor-error-in .28s cubic-bezier(.2, .8, .2, 1);
}

#blazor-error-ui .blazor-error-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    color: var(--red, #dc2626);
    background: var(--red-soft, #fee2e2);
}

#blazor-error-ui .blazor-error-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.25;
}

#blazor-error-ui .blazor-error-title {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ink, #111827);
}

#blazor-error-ui .blazor-error-subtitle {
    font-size: .8125rem;
    color: var(--muted, #6b7280);
    margin-top: 2px;
}

#blazor-error-ui .blazor-error-action {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: .8125rem;
    font-weight: 600;
    border-radius: 999px;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    transition: background .15s ease, color .15s ease, transform .15s ease;
}

#blazor-error-ui .blazor-error-action.reload {
    padding: .5rem .875rem;
    background: var(--teal, #0f766e);
    color: #ffffff;
}

#blazor-error-ui .blazor-error-action.reload:hover {
    background: var(--teal-deep, #0b5951);
}

#blazor-error-ui .blazor-error-action.dismiss {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent;
    color: var(--muted, #6b7280);
}

#blazor-error-ui .blazor-error-action.dismiss:hover {
    background: var(--line-soft, #eef0f2);
    color: var(--ink, #111827);
}

@keyframes blazor-error-in {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    #blazor-error-ui .blazor-error-card {
        gap: .5rem;
        padding: .625rem;
        border-radius: var(--radius, 14px);
    }
    #blazor-error-ui .blazor-error-subtitle { display: none; }
}

.blazor-error-boundary {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin: .75rem 0;
    padding: .75rem .875rem;
    background: var(--red-soft, #fee2e2);
    color: var(--red-deep, #991b1b);
    border: 1px solid color-mix(in srgb, var(--red, #dc2626) 35%, transparent);
    border-radius: var(--radius, 14px);
    font-size: .9375rem;
    font-weight: 500;
    line-height: 1.35;
}

    .blazor-error-boundary::before {
        content: "";
        flex: none;
        width: 18px;
        height: 18px;
        background-color: var(--red, #dc2626);
        -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>") center / contain no-repeat;
        mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z'/><line x1='12' y1='9' x2='12' y2='13'/><line x1='12' y1='17' x2='12.01' y2='17'/></svg>") center / contain no-repeat;
    }

    .blazor-error-boundary::after {
        content: "Παρουσιάστηκε σφάλμα.";
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

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

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