@charset "UTF-8";

:root {
    --cp-cream: #FAF1DC;
    --cp-cream-soft: #fdfaf2;
    --cp-surface: #ffffff;
    --cp-ink: #1d1d1d;
    --cp-muted: #666666;
    --cp-faint: #999999;
    --cp-line: #f1ecdf;
    --cp-line-soft: #ece5d3;
    --cp-coral: #D9544D;
    --cp-coral-rgb: 217, 84, 77;
    --cp-coral-dark: #c2453e;
    --cp-coral-soft: #FBEAE9;
    --cp-coral-text: #C2453E;
    --cp-yellow: #F6C453;
    --cp-yellow-soft: #FCF3DC;
    --cp-gold: #8a6d1f;
    --cp-gold-2: #b08c2a;
    --cp-green: #6FBE7B;
    --cp-green-soft: #E9F4EB;
    --cp-green-text: #4F8C5C;
    --cp-radius-card: 28px;
    --cp-radius-pill: 999px;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--cp-cream);
    color: var(--cp-ink);
    font-family: Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

* { box-sizing: border-box; }

input, textarea, select, button { font-family: Helvetica, Arial, sans-serif; }

a { color: var(--cp-coral); text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--cp-ink); margin: 0; }
/* Unconditional (not just :not(:focus-visible)): FocusOnNavigate sets
   tabindex="-1" on h1 and Chromium can flag that programmatic focus as
   :focus-visible, which would otherwise leak the browser's default outline
   through on every page navigation. Headings and other non-interactive
   [tabindex] targets never get a ring — only real controls below do. */
h1:focus,
h2:focus,
h3:focus,
h4:focus,
[tabindex]:focus { outline: none; }

/* !important: MudBlazor.min.css loads after app.css and resets outline on
   a:focus-visible / button:focus, which would otherwise win the cascade and
   silently swallow this ring again (I2). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--cp-coral) !important;
    outline-offset: 2px !important;
}

.nt-input input:focus-visible,
.nt-input textarea:focus-visible {
    outline: none !important;
}

.mud-main-content { margin-top: 0 !important; padding-top: 0 !important; background: var(--cp-cream); }
.content, .content .px-4 { padding: 0 !important; }
.mud-elevation-1, .mud-elevation-0 { box-shadow: none !important; }
.mud-appbar { box-shadow: none !important; }

.cp-page {
    max-width: 1240px;
    margin: 0 auto;
    padding: 48px 56px 72px;
}
.cp-page--narrow { max-width: 860px; }

.cp-page-head { margin-bottom: 36px; }
.cp-page-head h1 { font-size: 34px; font-weight: 700; margin: 0 0 10px; }
.cp-page-head p { margin: 0; font-size: 16px; color: var(--cp-muted); }

.cp-card {
    background: var(--cp-surface);
    border-radius: var(--cp-radius-card);
    padding: 32px 36px;
}
.cp-card--tight { padding: 28px 30px; }

/* Radius and padding come from .cp-card / .cp-card--tight; only the tinted fill, the hairline and
   the gap to the page head differ. */
.cp-welcome {
    background: var(--cp-cream-soft);
    border: 1px solid var(--cp-line);
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
}
.cp-welcome__text { max-width: 68ch; }
.cp-welcome p { margin: 8px 0 0; color: var(--cp-muted); font-size: 14.5px; line-height: 1.55; }
.cp-welcome .cp-btn { flex: none; }
.cp-card-title { font-size: 19px; font-weight: 700; }
.cp-card-title--sm { font-size: 16px; font-weight: 700; }

.cp-pill {
    display: inline-block;
    justify-self: start;
    font-size: 12.5px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: var(--cp-radius-pill);
    white-space: nowrap;
}

.cp-btn {
    border: none;
    border-radius: var(--cp-radius-pill);
    padding: 13px 26px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}
.cp-btn-primary { background: var(--cp-coral-dark); color: #fff; }
.cp-btn-primary:hover { background: color-mix(in srgb, var(--cp-coral-dark) 88%, black); }
.cp-btn-primary:disabled { background: #e3c9c7; cursor: default; }
.cp-btn-ghost { background: #fff; border: 1px solid #cfcfcf; color: var(--cp-ink); }
.cp-btn-ghost:hover { border-color: var(--cp-ink); }

.cp-link { color: var(--cp-coral); font-weight: 600; cursor: pointer; }
.cp-link:hover { text-decoration: underline; }

.cp-back {
    display: inline-block;
    font-size: 14px;
    color: var(--cp-faint);
    margin-bottom: 24px;
    cursor: pointer;
}
.cp-back:hover { color: var(--cp-ink); }

.cp-track { height: 8px; background: #f3ede0; border-radius: var(--cp-radius-pill); overflow: hidden; }
.cp-track > span { display: block; height: 100%; border-radius: var(--cp-radius-pill); }

.cp-grid-2 { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.cp-stack { display: flex; flex-direction: column; gap: 28px; }

@media (max-width: 1100px) {
    .cp-page { padding: 32px 24px 56px; }
    .cp-grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .cp-page { padding: 24px 16px 48px; }
    .cp-page-head h1 { font-size: 27px; }
    .cp-page-head p { font-size: 15px; }
}

@media (min-width: 1700px) {
    .cp-page { max-width: 1340px; }
}
@media (min-width: 2200px) {
    .cp-page { max-width: 1440px; }
}

.cp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 0;
    color: var(--cp-muted);
    font-size: 14px;
}
.cp-loading::before {
    content: "";
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--cp-coral-soft);
    border-top-color: var(--cp-coral);
    animation: cp-spin .7s linear infinite;
}
.cp-loading--sm {
    padding: 10px 0;
    gap: 8px;
    font-size: 13px;
}
.cp-loading--sm::before {
    width: 14px;
    height: 14px;
}
@keyframes cp-spin {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .cp-loading::before { animation: none; opacity: .55; }
}

.cp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 44px 24px;
    color: var(--cp-muted);
}
.cp-empty__title { font-size: 15px; font-weight: 600; color: var(--cp-muted); }
.cp-empty__msg { margin: 0; font-size: 13.5px; color: var(--cp-faint); }
.cp-empty__action { margin-top: 10px; }

.cp-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: var(--cp-coral-soft);
    border: 1px solid rgba(var(--cp-coral-rgb), .22);
    border-radius: 20px;
    padding: 36px 28px;
}
.cp-error__title { font-size: 16px; font-weight: 700; color: var(--cp-coral-text); }
.cp-error__msg { margin: 0; font-size: 14px; color: var(--cp-ink); }
.cp-error__action { margin-top: 10px; }

.cp-banner-stack {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
    pointer-events: none;
}

.cp-feedback-banner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 560px;
    background: var(--cp-surface);
    border-radius: 18px;
    padding: 14px 20px;
    box-shadow: 0 10px 30px rgba(60, 50, 20, .18);
    font-size: 14px;
    animation: cp-banner-in .22s ease-out;
}
.cp-feedback-banner__text { flex: 1 1 auto; color: var(--cp-ink); }
.cp-feedback-banner__action { flex: none; padding: 9px 20px; font-size: 13.5px; }

.cp-feedback-banner--update {
    border: 1px solid rgba(var(--cp-coral-rgb), .3);
}
.cp-feedback-banner--update::before {
    content: "";
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cp-coral);
}

.cp-feedback-banner--offline {
    background: var(--cp-cream-soft);
    border: 1px solid var(--cp-line);
}
.cp-feedback-banner--offline .cp-feedback-banner__text { color: var(--cp-muted); }

@keyframes cp-banner-in {
    from { transform: translateY(12px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .cp-feedback-banner { animation: none; }
}

@media (max-width: 600px) {
    .cp-feedback-banner { flex-direction: column; align-items: stretch; text-align: center; }
    .cp-feedback-banner__action { width: 100%; }
}

/* All three system screens (geen-toegang, 404, error boundary) render under
   EmptyLayout, so the card can own the full viewport height. */
.cp-system {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100dvh;
    padding-block: 48px;
}
.cp-system .cp-card {
    width: 100%;
    max-width: 420px;
    padding: 40px 36px;
    text-align: center;
}
.cp-system-glyph { display: block; margin: 0 auto 20px; }
.cp-system h1 { font-size: 21px; margin: 0 0 10px; }
.cp-system p { margin: 0 0 28px; font-size: 14.5px; line-height: 1.55; color: var(--cp-muted); }
.cp-system-actions { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cp-system-actions .cp-btn { width: 100%; max-width: 260px; }

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1rem;
    color: white;
}
.blazor-error-boundary::after { content: "Er is een fout opgetreden."; }

.validation-message, .validation-message-custom { color: var(--cp-coral-text); font-size: 0.875rem; margin-top: 0.4rem; }
