html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    min-width: 0;
}

.page-container {
    width: 100%;
    margin: 0;
    padding: 0.75rem;
}

.page-container--wide {
    max-width: none;
}

.edit-split-container {
    flex-wrap: nowrap;
}

.edit-left-panel {
    min-width: 0;
    transition: flex 0.15s;
}

.edit-right-panel {
    min-width: 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.edit-metadata-section {
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.edit-metadata-section > summary {
    padding: 0.75rem 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    overflow-wrap: anywhere;
}

.edit-metadata-section > summary::marker {
    color: var(--bs-secondary-color, #6c757d);
}

.edit-metadata-section > summary:hover,
.edit-metadata-section[open] > summary {
    background: var(--bs-tertiary-bg, #f8f9fa);
}

.edit-metadata-section > summary:focus-visible {
    outline: 2px solid #258cfb;
    outline-offset: -2px;
}

.edit-metadata-section > .row {
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
}

.edit-metadata-section:has(.ocr-highlight) > summary {
    background: #fff3cd;
    box-shadow: inset 3px 0 #ffc107;
}

.auth-page {
    display: grid;
    place-items: center;
    min-height: 100dvh;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f2f6f4 100%);
}

.auth-card {
    width: min(100%, 26.25rem);
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 2rem rgba(33, 37, 41, 0.1) !important;
}

@media (min-width: 768px) {
    .page-container {
        padding: 1.5rem;
    }

    .page-container--wide {
        max-width: none;
    }

    .page-container--narrow {
        max-width: 42rem;
    }
}

@media (max-width: 768px) {
    .edit-split-container {
        flex-wrap: wrap;
    }

    .edit-left-panel,
    .edit-right-panel {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .edit-right-panel {
        max-height: none;
        overflow-y: visible;
    }

    .edit-image-toolbar > .btn {
        min-width: 2.5rem;
        min-height: 2.5rem;
    }

    .edit-image-toolbar .form-range {
        min-width: 5rem;
    }

    .edit-ocr-actions {
        width: 100%;
        margin-top: 0.25rem;
        margin-left: 0 !important;
        padding-top: 0.5rem;
        border-top: 1px solid #dee2e6;
    }

    .edit-ocr-actions .btn {
        min-height: 2.5rem;
        flex: 1;
    }

    .edit-save-actions {
        position: sticky;
        bottom: 0;
        z-index: 20;
        background: #fff;
        box-shadow: 0 -0.35rem 0.8rem rgba(33, 37, 41, 0.12);
    }

    .feature-card {
        padding: 1rem 0.75rem;
    }

    .pricing-card {
        padding: 1.25rem 1rem;
    }
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#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;
}
