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

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

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

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
    }

/* ── MinLink Splash Screen ── */
.splash {
    position: fixed;
    inset: 0;
    background: linear-gradient(150deg, #1a3042 0%, #254358 55%, #1e3d54 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    z-index: 9999;
}

.splash-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.splash-logo {
    width: 150px;
    height: auto;
    display: block;
    animation: splashPulse 2s ease-in-out infinite alternate;
}

@keyframes splashPulse {
    from { opacity: 0.65; transform: scale(0.96); }
    to   { opacity: 1;    transform: scale(1);    }
}

.splash-tagline {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}

.splash-bar-wrap {
    width: 160px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
}

.splash-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: #3E78A4;
    width: var(--blazor-load-percentage, 0%);
    transition: width 0.15s ease;
}

code {
    color: #c02d76;
}

/* ── Cookie Banner ── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 820px;
    background: linear-gradient(135deg, #1e3448 0%, #1a2e3d 100%);
    border: 1px solid rgba(90, 180, 232, 0.18);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    z-index: 8000;
    font-family: 'Montserrat', 'Helvetica Neue', sans-serif;
    animation: cookieSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes cookieSlideUp {
    from { opacity: 0; transform: translateX(-50%) translateY(24px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cookie-banner-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
}

.cookie-banner-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.cookie-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: #5ab4e8;
    margin-top: 1px;
}

.cookie-banner-text p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 400;
}

.cookie-link {
    color: #5ab4e8;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 4px;
    font-weight: 500;
    white-space: nowrap;
}

.cookie-link:hover { color: #7dcef5; }

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 9px 20px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.18s, color 0.18s, transform 0.12s;
    white-space: nowrap;
}

.cookie-btn:active { transform: scale(0.97); }

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #3E78A4 0%, #5ab4e8 100%);
    color: #fff;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #4a8bbf 0%, #6bc3f0 100%);
}

@media (max-width: 600px) {
    .cookie-banner {
        bottom: 0;
        left: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
    }

    @keyframes cookieSlideUp {
        from { opacity: 0; transform: translateY(24px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px 18px 20px;
    }

    .cookie-banner-actions {
        justify-content: stretch;
    }

    .cookie-btn {
        flex: 1;
        padding: 11px 16px;
        font-size: 0.85rem;
    }
}
