@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.lcdo7z9xd2.bundle.scp.css';

/* /Pages/Index.razor.rz.scp.css */
.beautify-container[b-vah9t3myr2] {
    display: flex;
    gap: 1rem;
    height: calc(100vh - 9rem);
    padding: 0.5rem;
}

.beautify-pane[b-vah9t3myr2] {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 0.85rem 0.9rem 0.9rem;
    transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.beautify-pane:focus-within[b-vah9t3myr2] {
    border-color: var(--color-accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 0 0 0 2px var(--color-focus-ring);
}

@media (max-width: 980px) {
    .beautify-container[b-vah9t3myr2] {
        flex-direction: column;
        height: calc(100vh - 7rem);
    }
}

.beautify-pane label[b-vah9t3myr2] {
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
    color: var(--color-fg);
}

.beautify-pane-header[b-vah9t3myr2] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    min-height: 32px;
}

.beautify-pane-header label[b-vah9t3myr2] {
    margin-bottom: 0;
}

.beautify-textarea[b-vah9t3myr2] {
    flex: 1;
    width: 100%;
    resize: none;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: var(--color-bg);
    color: var(--color-fg);
    white-space: pre;
    overflow: auto;
    box-sizing: border-box;
}

.beautify-textarea:focus[b-vah9t3myr2] {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-focus-ring);
}

.beautify-output[b-vah9t3myr2] {
    background-color: var(--color-surface);
}

pre.beautify-output[b-vah9t3myr2] {
    margin: 0;
    color: var(--color-fg);
    tab-size: 2;
}

/* Syntax highlighting — light (GitHub-ish) */
.xml-highlight[b-vah9t3myr2]  .hl-bracket    { color: #6e7781; }
.xml-highlight[b-vah9t3myr2]  .hl-tag        { color: #1565c0; }
.xml-highlight[b-vah9t3myr2]  .hl-attr-name  { color: #c62828; }
.xml-highlight[b-vah9t3myr2]  .hl-equals     { color: #6e7781; }
.xml-highlight[b-vah9t3myr2]  .hl-attr-value { color: #2e7d32; }
.xml-highlight[b-vah9t3myr2]  .hl-text       { color: #a04020; }
.xml-highlight[b-vah9t3myr2]  .hl-comment    { color: #6a737d; font-style: italic; }
.xml-highlight[b-vah9t3myr2]  .hl-cdata      { color: #6a737d; }

.xml-highlight[b-vah9t3myr2]  .hl-key        { color: #c62828; }
.xml-highlight[b-vah9t3myr2]  .hl-string     { color: #2e7d32; }
.xml-highlight[b-vah9t3myr2]  .hl-number     { color: #1565c0; }
.xml-highlight[b-vah9t3myr2]  .hl-bool       { color: #6f42c1; }
.xml-highlight[b-vah9t3myr2]  .hl-null       { color: #6f42c1; font-style: italic; }
.xml-highlight[b-vah9t3myr2]  .hl-punc       { color: #6e7781; }

/* Syntax highlighting — dark (GitHub Dark) */
@media (prefers-color-scheme: dark) {
    .xml-highlight[b-vah9t3myr2]  .hl-bracket    { color: #768390; }
    .xml-highlight[b-vah9t3myr2]  .hl-tag        { color: #79c0ff; }
    .xml-highlight[b-vah9t3myr2]  .hl-attr-name  { color: #ff7b72; }
    .xml-highlight[b-vah9t3myr2]  .hl-equals     { color: #768390; }
    .xml-highlight[b-vah9t3myr2]  .hl-attr-value { color: #a5d6ff; }
    .xml-highlight[b-vah9t3myr2]  .hl-text       { color: #ffa657; }
    .xml-highlight[b-vah9t3myr2]  .hl-comment    { color: #8b949e; }
    .xml-highlight[b-vah9t3myr2]  .hl-cdata      { color: #8b949e; }

    .xml-highlight[b-vah9t3myr2]  .hl-key        { color: #ff7b72; }
    .xml-highlight[b-vah9t3myr2]  .hl-string     { color: #a5d6ff; }
    .xml-highlight[b-vah9t3myr2]  .hl-number     { color: #79c0ff; }
    .xml-highlight[b-vah9t3myr2]  .hl-bool       { color: #d2a8ff; }
    .xml-highlight[b-vah9t3myr2]  .hl-null       { color: #d2a8ff; }
    .xml-highlight[b-vah9t3myr2]  .hl-punc       { color: #768390; }
}

.beautify-format[b-vah9t3myr2] {
    color: var(--color-accent);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 0.4rem;
}

.beautify-error[b-vah9t3myr2] {
    color: var(--color-error-fg);
    font-weight: 400;
    font-size: 0.85rem;
    margin-left: 0.4rem;
}
/* /Pages/RBCompare.razor.rz.scp.css */
/* ---------- Page shell ---------- */

.compare-page[b-i54com3ovg] {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
    height: calc(100vh - 7rem);
    box-sizing: border-box;
    color: var(--color-fg);
}

.compare-files[b-i54com3ovg] {
    display: flex;
    gap: 1rem;
    flex: 0 0 auto;
}

.compare-file-cell[b-i54com3ovg] {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    padding: 0.35rem 0.55rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    min-width: 0;
}

.compare-label[b-i54com3ovg] {
    font-weight: 600;
    color: var(--color-fg);
    letter-spacing: 0.02em;
    margin-right: 0.25rem;
}

.compare-meta[b-i54com3ovg] {
    color: var(--color-fg-muted);
    font-size: 0.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

/* ---------- Editor layout ---------- */

.compare-editors[b-i54com3ovg] {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 auto;
    min-height: 0;
}

.editor-pane[b-i54com3ovg] {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    display: flex;
}

.editor-wrap[b-i54com3ovg] {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

/* The two layers must share font / padding / line-height EXACTLY so the
   overlay backgrounds align with the textarea text column-for-column. */

.editor-highlight[b-i54com3ovg],
.editor-textarea[b-i54com3ovg] {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.45;
    padding: 0.5rem 0.6rem;
    box-sizing: border-box;
    white-space: pre;
    tab-size: 4;
    -moz-tab-size: 4;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

.editor-highlight[b-i54com3ovg] {
    position: absolute;
    inset: 0;
    margin: 0;
    overflow: hidden;
    pointer-events: none;
    color: transparent; /* backgrounds only — text is provided by the textarea on top */
    z-index: 1;
}

.editor-highlight[b-i54com3ovg]::-webkit-scrollbar { width: 0; height: 0; }

.editor-textarea[b-i54com3ovg] {
    position: absolute;
    inset: 0;
    margin: 0;
    border: 0;
    outline: none;
    resize: none;
    background: transparent;
    color: var(--color-fg);
    caret-color: var(--color-fg);
    overflow: auto;
    z-index: 2;
}

.editor-textarea[b-i54com3ovg]::placeholder {
    color: var(--color-fg-subtle);
}

.editor-textarea:focus[b-i54com3ovg] {
    outline: none;
}

.editor-wrap:focus-within[b-i54com3ovg] {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-focus-ring);
}

.drop-hint[b-i54com3ovg] {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-hover-bg);
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    pointer-events: none;
    z-index: 3;
    border-radius: inherit;
}

.editor-wrap.drop-active[b-i54com3ovg] {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 2px var(--color-focus-ring);
}

.editor-wrap.drop-active .drop-hint[b-i54com3ovg] {
    display: flex;
}

/* Inner wrapper inside the highlight layer.
   inline-block + min-width:100% lets each line div extend to the full
   width of the longest line, so colored backgrounds reach the right edge. */
.editor-highlight[b-i54com3ovg]  .lines-wrap {
    display: inline-block;
    min-width: 100%;
}

.editor-highlight[b-i54com3ovg]  .ed-line {
    display: block;
    min-height: 1.45em; /* matches line-height so empty lines keep their height */
}

/* Spacer placeholder for runs of equal (un-highlighted) lines. Sized in `lh` units
   so its height tracks the editor's line-height exactly. */
.editor-highlight[b-i54com3ovg]  .ed-skip {
    display: block;
}

/* Diff colors — flow through tokens so dark mode auto-adapts */
.editor-highlight[b-i54com3ovg]  .ed-removed {
    background-color: var(--color-danger-bg);
    box-shadow: inset 2px 0 0 var(--color-danger);
}

.editor-highlight[b-i54com3ovg]  .ed-added {
    background-color: var(--color-success-bg);
    box-shadow: inset 2px 0 0 var(--color-success);
}

/* Modified lines: green tint on the right pane, red tint on the left pane */
.editor-highlight[b-i54com3ovg]  .ed-modified {
    background-color: var(--color-success-bg);
    box-shadow: inset 2px 0 0 var(--color-warning);
}

.editor-pane:first-child .editor-highlight[b-i54com3ovg]  .ed-modified {
    background-color: var(--color-danger-bg);
}

.editor-highlight[b-i54com3ovg]  .ed-inline-del {
    background-color: var(--color-danger-inline);
    border-radius: 2px;
}

.editor-highlight[b-i54com3ovg]  .ed-inline-add {
    background-color: var(--color-success-inline);
    border-radius: 2px;
}

/* ---------- Summary bar ---------- */

.compare-summary[b-i54com3ovg] {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 0.65rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    flex: 0 0 auto;
    flex-wrap: wrap;
    color: var(--color-fg);
}

.compare-stat[b-i54com3ovg] {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.8rem;
}

.compare-stat-add[b-i54com3ovg] { color: var(--color-success); }
.compare-stat-del[b-i54com3ovg] { color: var(--color-danger); }
.compare-stat-mod[b-i54com3ovg] { color: var(--color-warning); }
.compare-stat-empty[b-i54com3ovg] { color: var(--color-fg-muted); font-weight: 400; }

/* ---------- Diff navigation ---------- */

.diff-nav[b-i54com3ovg] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0 0.25rem;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    margin: 0 0.25rem;
}

.diff-nav-position[b-i54com3ovg] {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-fg-muted);
    min-width: 2.5rem;
    text-align: center;
}

.compare-editors-stacked[b-i54com3ovg] {
    flex-direction: column;
}

@media (max-width: 980px) {
    .compare-editors[b-i54com3ovg] {
        flex-direction: column;
    }
}

/* ---------- Busy overlay ---------- */

.busy-overlay[b-i54com3ovg] {
    position: absolute;
    inset: 0;
    background: var(--color-overlay-bg);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    /* Block interaction with the editors while busy */
    cursor: wait;
}

.busy-card[b-i54com3ovg] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    min-width: 16rem;
}

.busy-spinner[b-i54com3ovg] {
    width: 32px;
    height: 32px;
    border: 3px solid var(--color-border-muted);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: busy-spin-b-i54com3ovg 0.7s linear infinite;
}

@keyframes busy-spin-b-i54com3ovg {
    to { transform: rotate(360deg); }
}

.busy-text[b-i54com3ovg] {
    color: var(--color-fg);
    font-size: 0.85rem;
    text-align: center;
    word-break: break-all;
}
/* /Shared/MainLayout.razor.rz.scp.css */
.page[b-qxv72rw3br] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.app-header[b-qxv72rw3br] {
    flex: 0 0 auto;
    height: 3rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: linear-gradient(90deg, var(--color-surface) 0%, var(--color-surface-2) 100%);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.app-brand[b-qxv72rw3br] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-title[b-qxv72rw3br] {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
    color: var(--color-fg);
}

.app-tagline[b-qxv72rw3br] {
    color: var(--color-fg-muted);
    font-size: 0.85rem;
    padding-left: 0.5rem;
    margin-left: 0.25rem;
    border-left: 1px solid var(--color-border);
}

@media (max-width: 640px) {
    .app-tagline[b-qxv72rw3br] { display: none; }
}

.app-body[b-qxv72rw3br] {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.main[b-qxv72rw3br] {
    flex: 1;
    min-width: 0;
    min-height: 0;
}

@media (min-width: 641px) {
    .app-body[b-qxv72rw3br] {
        flex-direction: row;
    }

    .main > div[b-qxv72rw3br] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Shared/NavMenu.razor.rz.scp.css */
[b-7h5kz44y59] .navmenu-container {
    height: auto;
    min-height: 0;
    align-self: flex-start;
}
