/* Liturio — theming is driven by the MudBlazor MudTheme in MainLayout.razor.
   This file only carries global font choices and a few non-Mud bits
   (the Blazor error UI, the static login form, the monospace chord editor). */

html, body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Liturgical serif for the brand + headings */
.liturio-brand,
h1, h2, h3, h4, h5, h6,
.mud-typography-h1, .mud-typography-h2, .mud-typography-h3,
.mud-typography-h4, .mud-typography-h5, .mud-typography-h6 {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    letter-spacing: 0.01em;
}

.liturio-brand {
    font-weight: 600;
}

/* Static (SSR) login form — native inputs styled to sit with the Mud look */
.liturio-login-input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #ECE3D5;
    border-radius: 8px;
    background-color: #FFFDF9;
    color: #3A2F2A;
    font-size: 1rem;
    font-family: inherit;
}

.liturio-login-input:focus {
    outline: none;
    border-color: #A65460;
    box-shadow: 0 0 0 2px rgba(166, 84, 96, 0.18);
}

/* Monospace chord editor keeps a native textarea so the JS Bold helper works */
.liturio-chord-chart {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ECE3D5;
    border-radius: 8px;
    background-color: #FFFDF9;
    color: #3A2F2A;
    font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
}

.liturio-chord-chart:focus {
    outline: none;
    border-color: #A65460;
    box-shadow: 0 0 0 2px rgba(166, 84, 96, 0.18);
}

/* Blazor error boundary + reconnect error UI */
.blazor-error-boundary {
    background: #8a3c3c;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

#blazor-error-ui {
    color-scheme: light only;
    background: #F3ECE0;
    border-top: 2px solid #A65460;
    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: 2000;
}

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