/* =====================================================================
   CSI.Apps.DiffCheck.Client — app-level styles

   Theme tokens are loaded from _content/CSI.UI/csi-theme.css. Rules here
   style the DiffCheck-specific page chrome only (hero block, roadmap
   card, not-found). Everything else flows from CSI.UI tokens.
   ==================================================================== */

code {
    font-family: var(--csi-font-mono);
    font-size: 0.9em;
    color: var(--csi-brand-primary);
    background: var(--csi-surface-tertiary);
    padding: 0 4px;
    border-radius: var(--csi-radius-sm);
}

/* .diffcheck-page / .diffcheck-hero / .diffcheck-hero-lead promoted to
   shared .csi-page / .csi-hero / .csi-hero-lead in CSI.UI's _page.css
   (issue #60). Remove after the CORE Appearance page adopts the shared
   classes — already no references to the diffcheck-* variants remain. */

.diffcheck-card {
    padding: var(--csi-card-padding);
    border: 1px solid var(--csi-border-tertiary);
    border-radius: var(--csi-radius-lg);
    background: var(--csi-surface-primary);
}

.diffcheck-card h2 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 var(--csi-space-md);
    color: var(--csi-text-primary);
}

.diffcheck-card ul {
    margin: 0;
    padding-left: var(--csi-space-xl);
    color: var(--csi-text-secondary);
    line-height: 1.7;
}

.diffcheck-notfound {
    padding: var(--csi-space-2xl);
    text-align: center;
    color: var(--csi-text-secondary);
}

/* ── Loading progress (overwrite template defaults to match brand) ── */

.loading-progress circle {
    fill: none;
    stroke: var(--csi-border-secondary);
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--csi-brand-primary);
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress,
.loading-progress-text {
    position: absolute;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
}

.loading-progress {
    display: block;
    width: 8rem;
    height: 8rem;
}

.loading-progress-text {
    text-align: center;
    font-weight: bold;
    color: var(--csi-text-primary);
    inset: calc(20vh + 3.25rem) 0 auto 0;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    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: 1000;
}

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