/* ── LimatiBlazorUIKit shared styles ────────────────────────── */

/* Frosted glass effect for dropdown menus */
.frosted-glass {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* CodeEditor (Monaco) host — default has a fixed height so Monaco renders
   visibly; FillContainer constrains to the parent flex item. */
.code-editor-host {
    min-height: 12rem;
    height: 24rem;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.375rem;
    overflow: hidden;
}

/* Monaco's rendered div must fill the host container */
.code-editor-host > div {
    width: 100% !important;
    height: 100% !important;
}

.code-editor-fill {
    flex: 1 1 auto;
    min-height: 0;
    height: 0;
}

/* MarkdownEditor — draggable vertical splitter between the CodeEditor pane
   and the live preview pane (see wwwroot/js/split-panel.js). */
.markdown-split-divider {
    position: relative;
    background-color: var(--bs-border-color, #dee2e6);
    border-radius: 3px;
    margin: 0 0.25rem;
    touch-action: none;
}

.markdown-split-divider:hover,
.markdown-split-divider:active {
    background-color: var(--bs-secondary-color, #6c757d);
}

.markdown-view-content > :first-child {
    margin-top: 0;
}

.markdown-view-content .mermaid-diagram {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
}

.markdown-view-content .mermaid-diagram svg {
    max-width: 100%;
    height: auto;
}
