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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Сталася помилка."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 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, "Завантаження");
    }

.startup-loading-hint {
    color: #64748b;
    font-size: .9rem;
    inset: calc(20vh + 9rem) 1rem auto 1rem;
    position: absolute;
    text-align: center;
}

.startup-problem[hidden] {
    display: none;
}

.startup-problem {
    align-items: center;
    background: linear-gradient(135deg, #eef5ff 0%, #f3fbf7 100%);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.startup-problem-card {
    background: #fff;
    border: 1px solid #dbe3ec;
    border-radius: 1rem;
    box-shadow: 0 .75rem 2rem rgba(15, 23, 42, .12);
    box-sizing: border-box;
    color: #1e293b;
    max-width: 42rem;
    padding: 2rem;
    width: 100%;
}

.startup-problem-card h1 {
    color: #9f1d1d;
    font-size: 1.65rem;
    margin: 0 0 1rem;
}

.startup-problem-card p {
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.startup-problem-actions {
    background: #f8fafc;
    border-left: .3rem solid #2e7d32;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    padding: 1rem 1rem .75rem;
}

.startup-problem-actions ol {
    margin: .6rem 0 0;
    padding-left: 1.25rem;
}

.startup-problem-card button {
    background: #1565c0;
    border: 0;
    border-radius: .6rem;
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    padding: .75rem 1.1rem;
}

code {
    color: #c02d76;
}

.login-page {
    align-items: center;
    background: linear-gradient(135deg, #eef5ff 0%, #f3fbf7 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
}

.authentication-checking {
    align-items: center;
    background: linear-gradient(135deg, #eef5ff 0%, #f3fbf7 100%);
    color: #6c757d;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    min-height: 100vh;
}

.login-card {
    max-width: 430px;
    width: 100%;
}

.login-logo {
    height: 5rem;
    object-fit: contain;
    width: auto;
}

.student-header {
    align-items: center;
    background: #fff;
    display: flex;
    min-height: 4.5rem;
}

.student-header-logo {
    height: 3.25rem;
    margin-left: -.9rem;
    margin-right: -.4rem;
    width: auto;
}

.student-header-title {
    font-size: 1.15rem;
    font-weight: 600;
}

.student-page {
    background: #f5f7fa;
    min-height: calc(100vh - 4.5rem);
}

.student-schedule-grid {
    min-width: 1350px;
}

.student-day-header,
.student-mobile-day-header {
    background: #dbeafe !important;
    color: #0a3d78 !important;
}

.student-day-header {
    border-bottom: 3px solid #0d6efd !important;
    min-width: 180px;
}

.student-schedule-cell {
    background: #fff;
    min-width: 180px;
    padding: .55rem !important;
}

.student-lesson-card {
    line-height: 1.35;
}

.student-lesson-cancelled {
    background: #fff5f5;
    opacity: .8;
}

.student-mobile-day-header {
    align-items: center;
    border-bottom: 3px solid #0d6efd;
    display: flex;
    justify-content: space-between;
    padding: .75rem 1rem;
}

.student-mobile-lesson {
    border-bottom: 1px solid #dee2e6;
    padding: .75rem;
}

.student-mobile-lesson:last-child {
    border-bottom: 0;
}

.student-mobile-position {
    color: #0d6efd;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: .2rem;
    text-transform: uppercase;
}

.teacher-login-wrapper {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 9rem);
}

.teacher-login-card {
    max-width: 480px;
    width: 100%;
}

.google-button-mark {
    background: #fff;
    border-radius: 50%;
    color: #4285f4;
    display: inline-flex;
    font-weight: 700;
    height: 1.6rem;
    justify-content: center;
    margin-right: .5rem;
    width: 1.6rem;
}

@media (max-width: 575.98px) {
    .student-header-title {
        font-size: 1rem;
    }

    .student-header .btn {
        font-size: .72rem;
        padding: .25rem .45rem;
    }
}

.home-hero {
    container-type: inline-size;
}

.home-hero-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 1rem;
    overflow: hidden;
}

.home-hero-logo {
    flex: 0 0 auto;
    width: auto;
    height: 3rem;
    margin-left: -0.825rem;
    margin-right: -0.5175rem;
}

.home-hero-heading {
    flex: 1 1 auto;
    min-width: 0;
    font-size: clamp(0.875rem, 1.6vw, 2rem);
    font-size: clamp(0.4rem, 2.05cqw, 2rem);
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
}

.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;
}

.schedule-grid { min-width: 1100px; }
.schedule-grid th { white-space: nowrap; }
.schedule-cell { min-width: 145px; height: 92px; vertical-align: top; background: #fff; }
.real-schedule-grid {
    min-width: 1550px;
}

.real-schedule-position-header,
.real-schedule-position {
    background: #e9ecef !important;
    width: 4.5rem;
}

.real-schedule-day-header {
    background: #dbeafe !important;
    border-bottom: 3px solid #0d6efd !important;
    color: #0a3d78 !important;
    min-width: 210px;
}

.real-schedule-cell {
    background: #f8f9fa;
    min-width: 210px;
    padding: .5rem !important;
}

.real-schedule-empty {
    color: #adb5bd;
    display: block;
    padding: .75rem 0;
    text-align: center;
}

.real-lesson-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-left-width: 5px;
    border-radius: .375rem;
    box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075);
    padding: .65rem;
}

.real-lesson-card + .real-lesson-card {
    margin-top: .5rem;
}

.real-lesson-group {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: .25rem;
    text-transform: uppercase;
}

.real-group-color-0 { border-left-color: #0d6efd; background: #f5f9ff; }
.real-group-color-0 .real-lesson-group { color: #0a58ca; }
.real-group-color-1 { border-left-color: #198754; background: #f3fbf7; }
.real-group-color-1 .real-lesson-group { color: #146c43; }
.real-group-color-2 { border-left-color: #fd7e14; background: #fff8f2; }
.real-group-color-2 .real-lesson-group { color: #b45309; }
.real-group-color-3 { border-left-color: #6f42c1; background: #f8f5fd; }
.real-group-color-3 .real-lesson-group { color: #59359a; }
.real-group-color-4 { border-left-color: #0dcaf0; background: #f2fcfe; }
.real-group-color-4 .real-lesson-group { color: #087990; }
.real-group-color-5 { border-left-color: #d63384; background: #fff5fa; }
.real-group-color-5 .real-lesson-group { color: #ab296a; }
.status-select { min-width: 135px; font-weight: 600; }
.crud-form-column,
.crud-data-column {
    width: 100%;
}

@media (min-width: 992px) {
    .crud-form-column {
        flex: 0 0 28.333333%;
        max-width: 28.333333%;
    }

    .crud-data-column {
        flex: 0 0 71.666667%;
        max-width: 71.666667%;
    }
}
