/* 9000 Spreadsheets — global styles. Palette and type ported from the product design. */
html, body {
    margin: 0;
    padding: 0;
    background: #f4f1e9;
}

body {
    font-family: 'IBM Plex Sans', system-ui, sans-serif;
    color: #1d1a13;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a {
    color: #1e6f50;
    text-decoration: none;
}

a:hover {
    color: #14523a;
}

input, select, textarea, button {
    font-family: inherit;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background: #d8d0ba;
    border-radius: 5px;
    border: 2px solid #f4f1e9;
}

::-webkit-scrollbar-track {
    background: transparent;
}

@keyframes dcFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dcPop {
    from { opacity: 0; transform: translateY(10px) scale(.98); }
    to { opacity: 1; transform: none; }
}

@keyframes dcToast {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* Hover helpers — the design expresses these as :hover, which inline styles can't. */
.hv-outline:hover { background: #f6f1e2 !important; }
.hv-primary:hover { background: #14523a !important; }
.hv-underline:hover { text-decoration: underline; }
.hv-danger:hover { color: #b23c20 !important; }
.hv-dark:hover { color: #1d1a13 !important; }
.hv-brighten:hover { filter: brightness(.96); }
.hv-chip:hover { background: #f1ecdd !important; }

/* Boot splash shown until Blazor takes over #app. */
.app-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f4f1e9;
}

.app-loading__logo {
    background: #1e6f50;
    color: #fffdf7;
    font: 600 20px 'IBM Plex Mono', monospace;
    letter-spacing: .5px;
    padding: 8px 12px;
    border-radius: 6px;
}

.app-loading__text {
    font: 500 13px 'IBM Plex Mono', monospace;
    color: #6f6a5c;
}

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

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

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