h1:focus {
    outline: none;
}

body {
    margin: 0;
    color: #1f2937;
    background: #f8fafc;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.foundation-shell {
    max-width: 48rem;
    margin: 12vh auto;
    padding: 2rem;
}

.foundation-shell h1 {
    margin-bottom: 1.5rem;
}

.foundation-shell p {
    line-height: 1.6;
}

.auth-shell {
    width: min(calc(100% - 2rem), 29rem);
    max-width: 29rem;
    margin: clamp(2rem, 10vh, 6rem) auto;
    padding: clamp(1.4rem, 4vw, 2rem);
    border: 1px solid #dce4ef;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 1rem 2.5rem rgb(30 51 79 / 10%);
}

.auth-heading {
    margin-bottom: 1.35rem;
}

.auth-brand {
    margin: 0 0 .55rem;
    color: #176f67;
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.auth-shell h1 {
    margin: 0;
    color: #15233a;
    font-size: clamp(1.65rem, 6vw, 2rem);
}

.auth-shell .auth-intro {
    margin: .35rem 0 0;
    color: #66758b;
}

.auth-form,
.auth-field {
    display: grid;
}

.auth-form {
    gap: 1rem;
}

.auth-field {
    gap: .4rem;
}

.auth-field label,
.auth-shell > label,
.auth-shell > :is(password-activation, password-reset, administrator-recovery, passkey-activation) label {
    color: #344963;
    font-size: .9rem;
    font-weight: 700;
}

.auth-field input,
.auth-shell > :is(password-activation, password-reset, administrator-recovery, passkey-activation) input {
    width: 100%;
    min-height: 2.8rem;
    padding: .65rem .75rem;
    border: 1px solid #bfcbd9;
    border-radius: .55rem;
    color: #1e304a;
    background: #fff;
}

.auth-field input:focus,
.auth-shell > :is(password-activation, password-reset, administrator-recovery, passkey-activation) input:focus {
    border-color: #4d9b91;
    outline: 3px solid rgb(44 126 219 / 22%);
    outline-offset: 1px;
}

.auth-submit,
.auth-shell > :is(password-activation, password-reset, administrator-recovery, passkey-activation) button {
    display: inline-flex;
    min-height: 2.8rem;
    align-items: center;
    justify-content: center;
    padding: .68rem 1rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    color: #fff;
    background: #176f67;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
}

.auth-submit:hover:not(:disabled),
.auth-shell > :is(password-activation, password-reset, administrator-recovery, passkey-activation) button:hover:not(:disabled) {
    background: #105c56;
}

.auth-submit:disabled,
.auth-shell > :is(password-activation, password-reset, administrator-recovery, passkey-activation) button:disabled {
    cursor: not-allowed;
    opacity: .58;
}

.auth-submit-secondary {
    border-color: #b8c8d8;
    color: #2c425f;
    background: #fff;
}

.auth-submit-secondary:hover:not(:disabled) {
    background: #f3f7fa;
}

.auth-alternative {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e1e7ef;
}

.auth-error {
    margin: 0;
}

.auth-error:empty {
    display: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41ND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IGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "Beklenmeyen bir hata oluştu."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

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

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.curriculum-topics-panel {
    grid-column: 1 / -1;
}

.curriculum-onboarding {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(18rem, .9fr);
    gap: 1.25rem 2rem;
    align-items: center;
    border-color: #b8d5cb;
    background: linear-gradient(135deg, #f3fbf8 0%, #fff 72%);
}

.curriculum-onboarding-copy h2,
.curriculum-onboarding-copy p,
.curriculum-reviewed-note {
    margin-bottom: .55rem;
}

.curriculum-reviewed-note {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .65rem;
    color: #48645c;
    font-size: .82rem;
}

.curriculum-onboarding-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-column: 1 / -1;
    gap: .65rem;
    margin: 0;
}

.curriculum-onboarding-stats div {
    min-width: 0;
    padding: .75rem;
    border: 1px solid #d9e8e3;
    border-radius: .65rem;
    background: rgba(255, 255, 255, .8);
}

.curriculum-onboarding-stats dt {
    color: #65766f;
    font-size: .72rem;
}

.curriculum-onboarding-stats dd {
    margin: .2rem 0 0;
    color: #244c40;
    font-size: 1.1rem;
    font-weight: 750;
}

.curriculum-onboarding-actions {
    display: grid;
    justify-items: start;
    gap: .45rem;
}

.curriculum-setup-guidance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.curriculum-column,
.assignment-item-card,
.student-item-result {
    min-width: 0;
}

.inline-create,
.student-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    align-items: end;
}

.inline-create input,
.student-search-row input {
    flex: 1 1 13rem;
}

.catalog-list {
    display: grid;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: .5rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.catalog-list li {
    display: grid;
    min-width: 0;
    gap: .15rem;
    padding: .75rem;
    border: 1px solid #dbe3ec;
    border-radius: .65rem;
    overflow-wrap: anywhere;
}

.catalog-list button {
    display: grid;
    width: 100%;
    gap: .15rem;
    padding: .75rem;
    border: 1px solid #dbe3ec;
    border-radius: .65rem;
    color: inherit;
    background: #fff;
    cursor: pointer;
    text-align: left;
    overflow-wrap: anywhere;
}

.catalog-list button:hover,
.catalog-list button.is-selected {
    border-color: #4d9b91;
    background: #edf9f6;
}

.catalog-list button:focus-visible {
    outline: 3px solid rgb(44 126 219 / 35%);
    outline-offset: 2px;
}

.assignment-plan-form,
.assignment-item-list,
.assignment-student-cards,
.student-item-results {
    display: grid;
    gap: 1rem;
}

.topic-picker {
    display: grid;
    gap: .75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: .75rem;
}

.topic-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: .5rem;
    border: 0;
    padding: 0;
}

.topic-checkboxes label,
.student-selection-row {
    display: flex;
    gap: .7rem;
    align-items: center;
}

.assignment-item-card,
.student-item-result {
    padding: 1rem;
    border: 1px solid #dbe3ec;
    border-radius: .75rem;
    background: #fff;
}

.student-selection-vertical {
    display: grid;
    max-height: min(28rem, 55vh);
    margin-top: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #dbe3ec;
    border-radius: .75rem;
}

.student-selection-row {
    padding: .75rem 1rem;
    border-bottom: 1px solid #e8edf3;
}

.student-selection-row:last-child {
    border-bottom: 0;
}

.student-selection-row span {
    display: grid;
}

.assignment-review-row {
    display: grid;
    gap: .65rem;
    padding: .85rem 1rem;
}

.assignment-review-row-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.assignment-review-row-summary {
    display: grid;
    min-width: 12rem;
    gap: .25rem;
}

.assignment-review-row-summary > small,
.assignment-review-context {
    color: #66758b;
}

.assignment-review-context {
    margin: .25rem 0 0;
    font-size: .86rem;
}

.assignment-review-row-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.assignment-review-row-actions {
    min-width: 0;
    justify-content: flex-end;
}

.assignment-review-details {
    padding-top: .65rem;
    border-top: 1px solid #e3e9f1;
}

.assignment-review-details > summary {
    width: max-content;
    color: #3f526b;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 700;
}

.assignment-review-detail-grid {
    margin: .75rem 0 0;
}

.student-item-results {
    margin-top: 1rem;
}

.student-item-result {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.student-item-result > div:first-child {
    display: grid;
    gap: .4rem;
}

@media (max-width: 900px) {
    .curriculum-grid {
        grid-template-columns: 1fr;
    }

    .curriculum-onboarding {
        grid-template-columns: 1fr;
    }

    .curriculum-onboarding-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .student-item-result,
    .assignment-review-row-main {
        align-items: stretch;
        flex-direction: column;
    }

    .assignment-review-row-actions {
        justify-content: flex-start;
    }

    .student-item-result .review-actions {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

.assignment-resource-picker {
    border: 1px solid var(--border-color, #d9dee7);
    border-radius: .65rem;
    display: grid;
    gap: .4rem;
    margin: .75rem 0;
    max-height: 13rem;
    overflow: auto;
    padding: .55rem .7rem .7rem;
}

.assignment-resource-picker legend {
    font-weight: 700;
    padding: 0 .3rem;
}

.assignment-resource-picker legend small {
    font-weight: 400;
}

.assignment-resource-option {
    align-items: center;
    display: grid;
    gap: .6rem;
    grid-template-columns: minmax(0, 1fr) 8.5rem;
}

.assignment-resource-option label,
.assignment-resource-option label span {
    display: flex;
    gap: .45rem;
    min-width: 0;
}

.assignment-resource-option label span {
    flex-direction: column;
    gap: 0;
}

.assignment-resource-option input[type="number"] {
    min-width: 0;
}

@media (max-width: 640px) {
    .assignment-resource-option {
        grid-template-columns: 1fr;
    }
}
