/* =====================================================
   INRADR Design System — Splash screen
   inradr-design layer · progress bar inside XAF's SplashScreenComponent
   (INRADR.Blazor.Shell/MainWindow/InradrSplashScreen.razor).
   ===================================================== */

.inradr-splash-screen-progress-container {
    width: 10%;
    height: 10px;
    background: linear-gradient(90deg, var(--inradr-color-border), var(--inradr-color-surface-muted));
    overflow: hidden;
    border-radius: var(--inradr-radius-sm);
    position: relative;
    /* A: rgba(0, 0, 0, 0.2); the darkest neutral token stands in for black in this 3px inner shade */
    box-shadow: inset 0 0 3px color-mix(in srgb, var(--inradr-color-text-primary) 20%, transparent);
}

.inradr-splash-screen-progress-bar {
    height: 100%;
    width: 30%;
    background: linear-gradient( 135deg, var(--inradr-color-border) 0%, var(--inradr-color-accent) 50%, var(--inradr-color-border) 100% );
    position: absolute;
    border-radius: var(--inradr-radius-sm);
    animation: inradr-splash-slide 1.2s ease-in-out infinite;
    box-shadow: 0 0 8px color-mix(in srgb, var(--inradr-color-accent) 60%, transparent);
    opacity: 0.9;
}

/* Runs the bar from just outside the left edge to past the right edge; the container clips it. */
@keyframes inradr-splash-slide {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}
