html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
/* Soft background tint for the whole app instead of stark white */
body {
    background-color: #f8f9fa !important;
}

/* Tool card hover styling */
.tool-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

    .tool-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 1rem 2rem rgba(13, 110, 253, 0.1) !important;
        border-color: rgba(13, 110, 253, 0.2) !important;
    }

/* Section Header Styling */
h3.border-bottom {
    border-color: #e9ecef !important;
    position: relative;
}

    h3.border-bottom::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        width: 60px;
        height: 3px;
        background-color: #0d6efd;
        border-radius: 2px;
    }
/* ===============================================================
   Tool page shell
   ---------------------------------------------------------------
   Applies to every tool page without touching their markup, so the
   seventeen of them look like one application. Anything page
   specific still lives in that page's own .razor.css.
   =============================================================== */

:root {
    --doku-ink: #0b1f3a;
    --doku-blue: #1d4ed8;
    --doku-gold: #f0b429;
    --doku-line: rgba(11, 31, 58, .09);
}

body {
    background-color: #f5f7fa;
}

/* ---- cards ---- */

.card {
    border: 1px solid var(--doku-line);
    border-radius: .85rem;
}

.card.shadow-sm {
    box-shadow: 0 .125rem .4rem rgba(11, 31, 58, .05) !important;
}

/* ---- headings inside a card ---- */

.card h5,
.card h6 {
    color: var(--doku-ink);
}

/* ---- form controls ---- */

.form-control,
.form-select {
    border-color: #dbe2ec;
    border-radius: .5rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--doku-blue);
    box-shadow: 0 0 0 .2rem rgba(29, 78, 216, .15);
}

.form-label {
    color: var(--doku-ink);
}

/* the default rule painted a white ring that read as a rendering fault */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 .2rem rgba(29, 78, 216, .25);
}

.form-check-input:checked {
    background-color: var(--doku-blue);
    border-color: var(--doku-blue);
}

/* ---- the file picker, which every tool leads with ---- */

.form-control[type="file"] {
    padding: .55rem .75rem;
    background-color: #fbfcfe;
    border-style: dashed;
    border-width: 1.5px;
    border-color: #c7d2e2;
    transition: border-color .15s ease, background-color .15s ease;
}

.form-control[type="file"]:hover:not(:disabled) {
    border-color: var(--doku-blue);
    background-color: #f5f8ff;
}

.form-control[type="file"]::file-selector-button {
    margin-right: .9rem;
    padding: .4rem .9rem;
    border: 0;
    border-radius: .4rem;
    background: var(--doku-ink);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.form-control[type="file"]:hover:not(:disabled)::file-selector-button {
    background: var(--doku-blue);
}

/* ---- buttons ---- */

.btn {
    border-radius: .5rem;
    font-weight: 500;
}

.btn-lg {
    border-radius: .6rem;
}

.btn-primary {
    background-color: var(--doku-blue);
    border-color: var(--doku-blue);
}

.btn-primary:hover:not(:disabled),
.btn-primary:focus:not(:disabled) {
    background-color: #1a44bd;
    border-color: #1a44bd;
}

.btn-success {
    background-color: #0f7a4d;
    border-color: #0f7a4d;
}

.btn-success:hover:not(:disabled),
.btn-success:focus:not(:disabled) {
    background-color: #0c6741;
    border-color: #0c6741;
}

/* ---- alerts ---- */

.alert {
    border-radius: .6rem;
    border-width: 0 0 0 3px;
}

.alert-danger { border-left-color: #b42318; }
.alert-warning { border-left-color: #b54708; }
.alert-info { border-left-color: var(--doku-blue); }
.alert-success { border-left-color: #0f7a4d; }

/* ---- page thumbnails, shared by five tools ---- */

.page-thumb,
.thumbnail-card img,
img.page-preview {
    border-radius: .35rem;
}

/* ---- tables ---- */

.table > :not(caption) > * > * {
    padding: .6rem .7rem;
}

.table thead th {
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #64748b;
    border-bottom-color: var(--doku-line);
}

/* ---- dashed placeholder areas ---- */

.border-dashed {
    border-style: dashed !important;
    border-color: #c7d2e2 !important;
}

@media (prefers-reduced-motion: reduce) {
    .form-control[type="file"] { transition: none; }
}

/* ---------------------------------------------------------------
   Phone header. The brand and the tools button have to share a
   390px row, so the generous desktop padding comes off below sm.
   --------------------------------------------------------------- */
@media (max-width: 575.98px) {
    /* The gutters come from .app-shell now, so the header only has to give up
       the room the brand and the tools button need to share one row. */
    .main-layout .navbar-brand {
        margin-right: 0;
    }

    .main-layout .navbar-brand > div:first-child {
        width: 34px !important;
        height: 34px !important;
        margin-right: .55rem !important;
    }

    .main-layout > header.navbar .btn.dropdown-toggle {
        padding-left: .9rem !important;
        padding-right: .9rem !important;
    }
}

/* ---------------------------------------------------------------
   One shell for the whole application.

   The pages had grown eight different widths between them - 720,
   800, 900, 1000, 1100, two flavours of Bootstrap container and a
   full-bleed one - while the header ran edge to edge. The result
   was a narrow column of content floating in grey, starting at a
   different place on every page. Everything now hangs off the same
   two rails: the logo, the page and the footer all begin and end
   in the same place.
   --------------------------------------------------------------- */

.app-shell {
    width: 100%;
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (max-width: 575.98px) {
    .app-shell {
        padding-left: .75rem;
        padding-right: .75rem;
    }
}

/* A card sitting alone in a centred row was sized for a 900px page; inside the
   shell it leaves a wide band of background either side and the page reads as a
   narrow strip. When a row holds a single column, give it the shell's full
   width - the shell is already the measure. */
.app-shell .row > [class*="col-"]:only-child {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
}

/* ---------------------------------------------------------------
   The page behind everything. A flat grey read as plain, so the
   background carries a very slight wash - cool at the top where it
   meets the header, a hint of the gold at the foot. The margin
   drawings are children of this element, so they sit on top of it.
   --------------------------------------------------------------- */
.main-layout {
    background:
        radial-gradient(120% 60% at 88% 0%, rgba(29, 78, 216, .07), transparent 62%),
        radial-gradient(90% 55% at 6% 100%, rgba(240, 180, 41, .10), transparent 60%),
        linear-gradient(180deg, #eef2f9 0%, #f7f9fc 26%, #f7f9fc 74%, #f2f5fa 100%)
        !important;
}
