html,
body {
    min-height: 100%;
}

body.hc-app-starting {
    background: #f6f3ea;
}

body.hc-app-starting::before {
    background:
        radial-gradient(circle at 50% 22%, rgba(168, 185, 154, 0.28), transparent 34%),
        linear-gradient(180deg, #f8f3e7 0%, #f6f3ea 46%, #efe5d0 100%);
    content: "";
    inset: 0;
    position: fixed;
    z-index: -1;
}

.hc-startup-splash {
    align-items: center;
    background:
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.16) 42%, transparent 64%),
        linear-gradient(180deg, rgba(248, 243, 231, 0.98), rgba(239, 229, 208, 0.92));
    bottom: 0;
    color: #2e332e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    left: 0;
    min-height: 100svh;
    overflow: hidden;
    padding: max(1.5rem, env(safe-area-inset-top)) 1.5rem max(1.5rem, env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    top: 0;
    transition: opacity 220ms ease, transform 260ms ease, visibility 220ms ease;
    z-index: 20000;
}

.hc-startup-splash::before,
.hc-startup-splash::after {
    background: rgba(63, 95, 69, 0.08);
    border-radius: 999px;
    content: "";
    filter: blur(2px);
    position: absolute;
}

.hc-startup-splash::before {
    height: 38vh;
    right: -22vw;
    top: 8vh;
    width: 52vw;
}

.hc-startup-splash::after {
    bottom: -14vh;
    height: 34vh;
    left: -18vw;
    width: 58vw;
}

.hc-startup-splash-mark {
    align-items: center;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(63, 95, 69, 0.16);
    border-radius: 24px;
    box-shadow: 0 22px 56px rgba(46, 51, 46, 0.14);
    display: inline-flex;
    height: 112px;
    justify-content: center;
    position: relative;
    width: 112px;
    z-index: 1;
}

.hc-startup-splash-mark img {
    display: block;
    height: 88px;
    width: 88px;
}

.hc-startup-splash-copy {
    display: grid;
    gap: 0.28rem;
    justify-items: center;
    margin-top: 1.15rem;
    position: relative;
    text-align: center;
    z-index: 1;
}

.hc-startup-splash-copy strong {
    color: #2f4c35;
    font-size: 1.52rem;
    font-weight: 800;
    line-height: 1.1;
}

.hc-startup-splash-copy span {
    color: #687060;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hc-startup-splash-copy p {
    color: #576150;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.35;
    margin: 0.65rem 0 0;
    max-width: min(320px, calc(100vw - 3rem));
}

.hc-startup-splash-progress {
    background: rgba(63, 95, 69, 0.16);
    border-radius: 999px;
    height: 6px;
    margin-top: 1.15rem;
    max-width: 280px;
    overflow: hidden;
    position: relative;
    width: min(280px, calc(100vw - 4rem));
    z-index: 1;
}

.hc-startup-splash-progress span {
    background: #3f5f45;
    border-radius: inherit;
    display: block;
    height: 100%;
    transition: width 0.18s ease;
    width: 0;
}

.hc-startup-splash-progress.is-indeterminate span {
    animation: hc-startup-progress 1.1s ease-in-out infinite;
    width: 42%;
}

.hc-startup-splash-spinner {
    border: 3px solid rgba(63, 95, 69, 0.15);
    border-radius: 999px;
    border-top-color: #3f5f45;
    height: 34px;
    margin-top: 1.35rem;
    position: relative;
    width: 34px;
    z-index: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .hc-startup-splash-spinner {
        animation: hc-startup-spin 0.82s linear infinite;
    }
}

@keyframes hc-startup-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes hc-startup-progress {
    0% {
        transform: translateX(-110%);
    }

    100% {
        transform: translateX(250%);
    }
}

a,
.btn-link {
    color: var(--hc-forest);
}

.btn-primary {
    color: #fff;
    background-color: var(--hc-forest);
    border-color: var(--hc-forest);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #334d38;
    border-color: #334d38;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: var(--hc-moss);
    box-shadow: 0 0 0 0.16rem rgba(63, 95, 69, 0.18);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--hc-success);
}

.invalid {
    outline: 1px solid var(--hc-danger);
}

.validation-message {
    color: var(--hc-danger);
}

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

.blazor-error-boundary::after {
    content: "Došlo je do greške.";
}

#blazor-error-ui {
    background: #fff7d9;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.18);
    color: #422;
    display: none;
    left: 0;
    padding: 0.75rem 1.25rem;
    position: fixed;
    right: 0;
    z-index: 1000;
}

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

.hc-toast-stack {
    align-items: stretch;
    bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: min(420px, calc(100vw - 2rem));
    pointer-events: none;
    position: fixed;
    right: 1rem;
    width: max-content;
    z-index: 30000;
}

.hc-toast-stack-static {
    max-width: none;
    pointer-events: auto;
    position: static;
    width: 100%;
}

.hc-toast {
    align-items: center;
    background: var(--hc-surface);
    border: 1px solid var(--hc-border);
    border-left: 4px solid var(--hc-accent);
    border-radius: 8px;
    box-shadow: var(--hc-shadow-strong);
    color: var(--hc-text);
    display: grid;
    gap: 0.75rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    line-height: 1.35;
    min-width: min(360px, calc(100vw - 2rem));
    padding: 0.85rem 0.9rem;
    pointer-events: auto;
}

.hc-toast-error {
    border-left-color: var(--hc-danger);
}

.hc-toast-info {
    border-left-color: var(--hc-success);
}

.hc-toast-icon {
    align-items: center;
    background: var(--hc-accent-soft);
    border-radius: 999px;
    color: var(--hc-accent);
    display: inline-flex;
    font-weight: 700;
    height: 1.5rem;
    justify-content: center;
    width: 1.5rem;
}

.hc-toast-error .hc-toast-icon {
    background: rgba(166, 94, 85, 0.14);
    color: var(--hc-danger);
}

.hc-toast-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.hc-toast-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--hc-text-muted);
    display: inline-flex;
    font-size: 1.2rem;
    height: 1.75rem;
    justify-content: center;
    line-height: 1;
    padding: 0;
    text-decoration: none;
    width: 1.75rem;
}

.hc-toast-close:hover,
.hc-toast-close:focus {
    color: var(--hc-text);
}

.hc-toast-dismiss-toggle {
    opacity: 0;
    pointer-events: none;
    position: absolute;
}

.hc-toast-dismiss-toggle:checked + .hc-toast-stack {
    display: none;
}

.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;
}
