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

html {
    scroll-behavior: smooth;
}

#blazor-error-ui {
    background: transparent;
    display: none;
    left: 1.5rem;
    position: fixed;
    top: 1.5rem;
    z-index: 1000;
}

#blazor-error-ui .error-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
    max-width: 480px;
    padding: 1.25rem;
    animation: error-card-slide 220ms ease-out both;
}

@keyframes error-card-slide {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #blazor-error-ui .error-card {
        animation: none;
    }
}

#blazor-error-ui .error-title {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

#blazor-error-ui .error-text {
    color: #475569;
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

#blazor-error-ui .error-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

#blazor-error-ui .reload {
    align-items: center;
    background: #0f172a;
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
    text-decoration: none;
}

#blazor-error-ui .dismiss {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #334155;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.45rem 0.9rem;
}

.loading-screen {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    min-height: 100vh;
}

.loading-mark {
    border-radius: 12px;
    height: 3rem;
    width: 3rem;
}

.loading-text {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.loading-bar {
    background: #e2e8f0;
    border-radius: 999px;
    height: 6px;
    overflow: hidden;
    width: 220px;
}

.loading-bar-fill {
    animation: loading-bar-move 1.2s ease-in-out infinite;
    background: #0c71f7;
    border-radius: 999px;
    height: 100%;
    width: 40%;
}

.btn-spinner {
    animation: btn-spin 0.8s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-left-color: #ffffff;
    border-radius: 999px;
    display: inline-block;
    height: 0.85rem;
    width: 0.85rem;
}

@keyframes btn-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes loading-bar-move {
    0% {
        transform: translateX(-120%);
    }
    50% {
        transform: translateX(60%);
    }
    100% {
        transform: translateX(220%);
    }
}

.hero-preview {
    animation: hero-preview-slide 900ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .hero-preview {
        animation: none;
    }
}

@keyframes hero-preview-slide {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
