/* App-level overrides; MudBlazor provides the baseline design system. */

html, body {
    height: 100%;
}

.blazor-error-boundary {
    background: #b32121;
    color: white;
    padding: 1rem;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

.paste-content {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.4;
}

.paste-body {
    /* Preserve indentation and consecutive spaces (e.g. source code pasted in). */
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
}

.paste-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.paste-body pre {
    background: rgba(0, 0, 0, 0.04);
    padding: 0.6rem;
    border-radius: 4px;
    overflow-x: auto;
}

.app-footer {
    border-top: 1px solid var(--mud-palette-lines-default);
    margin-top: auto;
}

.attach-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px dashed var(--mud-palette-lines-default, #bbb);
    border-radius: 8px;
    cursor: pointer;
    transition: background 120ms ease;
}

.attach-dropzone:hover {
    background: rgba(0, 0, 0, 0.03);
}

.attach-dropzone-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.editor-wrap .ql-editor {
    min-height: 260px;
}

