/* HTML styles for the splash screen */
.avalonia-splash {
    position: absolute;
    height: 100%;
    width: 100%;
    background: #f6f8fc;
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
    justify-content: center;
    align-items: center;
    display: flex;
    padding: 24px;
    pointer-events: none;
}

.splash-card {
    width: min(520px, 92vw);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(27, 42, 78, 0.1);
    border-radius: 20px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.14);
    padding: 28px 32px;
    display: grid;
    gap: 16px;
    color: #1b2a4e;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.splash-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.splash-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2f6bff 0%, #6ea1ff 100%);
    box-shadow: 0 10px 24px rgba(47, 107, 255, 0.35);
}

.splash-title h2 {
    margin: 0;
    font-weight: 600;
    font-size: 1.4rem;
}

.splash-title span {
    display: block;
    margin-top: 4px;
    color: rgba(27, 42, 78, 0.7);
    font-size: 0.95rem;
}

.splash-progress {
    position: relative;
    height: 6px;
    border-radius: 999px;
    background: rgba(27, 42, 78, 0.1);
    overflow: hidden;
}

.splash-progress::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    background: linear-gradient(90deg, rgba(47, 107, 255, 0.2) 0%, rgba(47, 107, 255, 0.9) 45%, rgba(47, 107, 255, 0.2) 100%);
    animation: splash-loading 1.4s ease-in-out infinite;
}

.splash-card p {
    margin: 0;
    color: rgba(27, 42, 78, 0.65);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Light theme styles */
@media (prefers-color-scheme: light) {
    .avalonia-splash {
        background: #f6f8fc;
    }

    .splash-card {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(27, 42, 78, 0.1);
    }

    .avalonia-splash a {
        color: #0D6EFD;
    }
}

@media (prefers-color-scheme: dark) {
    .avalonia-splash {
        background: radial-gradient(circle at top, #25345c 0%, #0f172a 70%);
    }

    .splash-card {
        background: rgba(15, 23, 42, 0.85);
        border-color: rgba(148, 163, 184, 0.18);
        color: #f8fafc;
    }

    .splash-title span,
    .splash-card p {
        color: rgba(226, 232, 240, 0.7);
    }

    .avalonia-splash a {
        color: white;
    }
}

.avalonia-splash.splash-close {
    transition: opacity 200ms, display 200ms;
    display: none;
    opacity: 0;
}

@keyframes splash-loading {
    0% {
        transform: translateX(-20%);
    }

    50% {
        transform: translateX(80%);
    }

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