/* app.css — Global styles for Indivo.Starter */

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Custom scrollbar (webkit) */
::-webkit-scrollbar          { width: 6px; }
::-webkit-scrollbar-track    { background: transparent; }
::-webkit-scrollbar-thumb    { background: #d1d5db; border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #4b5563; }
/* Native controls (the time box's clock icon, select lists) follow the dark theme. */
.dark { color-scheme: dark; }

/* Blazor validation colours */
.valid.modified:not([type=checkbox]) { outline: 1px solid #22c55e; }
.invalid { outline: 1px solid #ef4444; }
.validation-message { color: #ef4444; font-size: 0.75rem; margin-top: 0.25rem; }

/* Blazor error UI */
#blazor-error-ui {
    background: #fef2f2;
    border-top: 1px solid #fecaca;
    color: #b91c1c;
    display: none;
    left: 0; right: 0; bottom: 0;
    position: fixed;
    padding: 0.6rem 1.25rem;
    z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; }

/* Sixth series colour for nurse dots (the framework defines --chart-1 to --chart-5) */
:root { --chart-6: 262 52% 47%; }
.dark { --chart-6: 262 60% 68%; }

/* Time management: the Jagersbosch Tydstaat look (blue masthead with a gold rule, shaded register rows) */
:root {
    --jb-blue: #1e4d6b; --jb-blue-dark: #16394f; --jb-gold: #c9a96e; --jb-gold-ink: #7d5f22;
    --jb-we: #f1f5f8; --jb-hol: #f8ece6;
}
.dark { --jb-gold-ink: #d9bf88; --jb-we: rgba(255, 255, 255, .045); --jb-hol: rgba(240, 138, 125, .12); }
.jb-mast { background: linear-gradient(135deg, var(--jb-blue), var(--jb-blue-dark)); border-bottom: 3px solid var(--jb-gold); color: #fff; }
.jb-mast .jb-tag { color: #d9c08a; letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }
.jb-lang { border: 1px solid rgba(255, 255, 255, .4); }
.jb-lang button { color: #fff; }
.jb-lang button[aria-pressed="true"] { background: var(--jb-gold); color: var(--jb-blue-dark); }
.jb-th th { background: var(--jb-blue); color: #fff; font-weight: 500; border-bottom: 3px solid var(--jb-gold); }
.jb-reg tr.jb-we td { background: var(--jb-we); }
.jb-reg tr.jb-hol td { background: var(--jb-hol); }
.jb-reg tfoot td { font-weight: 600; border-top: 2px solid var(--jb-gold); }
.jb-chip-gold { border: 1px solid var(--jb-gold); color: var(--jb-gold-ink); }
/* !important: the Tailwind CDN's styles load after this file and would otherwise win over a Button's variant colours. */
.jb-gold-btn { background: var(--jb-gold) !important; color: var(--jb-blue-dark) !important; border-color: var(--jb-gold) !important; }
.jb-gold-btn:hover { opacity: .9; }
.jb-mast label { color: rgba(255, 255, 255, .85); }
.jb-banner-select { background: rgba(255, 255, 255, .1) !important; border: 1px solid rgba(255, 255, 255, .4) !important; color: #fff !important; }
.jb-banner-select option { background: #fff; color: #1e293b; }
.jb-dot { width: 1rem; height: 1rem; border-radius: 9999px; border: 2px solid hsl(var(--primary)); }
.jb-dot.on { background: hsl(var(--primary)); }

/* Blazor focuses the page heading after navigation (for screen readers); don't draw a ring around it. */
h1:focus { outline: none; }
