html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-user-select: none;
    user-select: none;
}

/* HTML styles for the splash screen */
.avalonia-splash {
    position: absolute;
    height: 100%;
    width: 100%;
    background: #0f172a;
    justify-content: center;
    align-items: center;
    display: flex;
    pointer-events: none;
    z-index: 9999;
}

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    animation: fadeIn 0.4s ease-out;
}

.splash-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.splash-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.splash-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-top: 8px;
}

.splash-subtext {
    margin: 0;
    font-size: 0.875rem;
    opacity: 0.7;
}

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

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

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

    .splash-spinner {
        border-color: rgba(99, 102, 241, 0.2);
        border-top-color: #4f46e5;
    }
}

/* Dark theme styles */
@media (prefers-color-scheme: dark) {
    .avalonia-splash {
        background: #0f172a;
        color: #f8fafc;
    }

    .splash-spinner {
        border-color: rgba(129, 140, 248, 0.2);
        border-top-color: #818cf8;
    }
}

.avalonia-splash.splash-close {
    transition: opacity 300ms ease-out, visibility 300ms ease-out;
    opacity: 0;
    visibility: hidden;
}

#out {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
