/* Transparent boot progress panel (Blazor splash) */

.splash-boot-panel {
    width: min(94vw, 24rem);
    z-index: 5;
    direction: rtl;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 14px 12px;
    border-radius: 16px;
    background: rgba(8, 14, 28, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #f1f5f9;
    animation: splashBootPanelAppear 0.65s ease-out;
}

.splash-boot-loader-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
}

.splash-boot-pct {
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
    min-width: 2.75em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}

.splash-boot-ring-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.splash-boot-svg {
    position: absolute;
    inset: 0;
    width: 64px;
    height: 64px;
    transform: rotate(-90deg);
}

.splash-boot-track {
    stroke: rgba(255, 255, 255, 0.18);
    fill: none;
}

.splash-boot-prog {
    stroke: #38bdf8;
    fill: none;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.22s ease-out;
}

.splash-boot-pct {
    position: relative;
    z-index: 1;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    min-width: 2.75em;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: #f8fafc;
}

.splash-boot-heading {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
    text-align: center;
}

.splash-boot-connecting {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: #cbd5e1;
    text-align: center;
    opacity: 0.92;
}

.splash-boot-steps-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: min(36dvh, 280px);
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.splash-boot-steps-list--collapsed {
    max-height: none;
    overflow: hidden;
}

.splash-boot-details-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.splash-boot-details-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(144, 202, 249, 0.35);
    color: #f1f5f9;
}

.splash-boot-step-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 10px;
    font-size: 0.78rem;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.splash-boot-step-item.active {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.12);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.15);
}

.splash-boot-step-item.splash-step-state-success {
    opacity: 0.88;
}

.splash-boot-step-item.splash-step-state-warn {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(251, 191, 36, 0.1);
}

.splash-boot-step-item.splash-step-state-err {
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(248, 113, 113, 0.12);
}

.splash-boot-step-icon {
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem !important;
}

.splash-boot-step-icon.success { color: #4ade80; }
.splash-boot-step-icon.warning { color: #fbbf24; }
.splash-boot-step-icon.error { color: #f87171; }
.splash-boot-step-icon.pending { color: #64748b; }

.splash-boot-step-body {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.splash-boot-step-title {
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.8rem;
}

.splash-boot-step-detail {
    margin-top: 3px;
    font-size: 0.72rem;
    color: #cbd5e1;
    word-break: break-word;
    line-height: 1.45;
}

.splash-boot-step-time {
    flex: 0 0 auto;
    font-size: 0.68rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    padding-top: 1px;
}

@keyframes splashBootPanelAppear {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .splash-boot-panel {
        width: min(96vw, 22rem);
        padding: 12px 12px 10px;
    }

    .splash-boot-steps-list {
        max-height: min(32dvh, 220px);
    }
}

.splash-boot-step-item.active.splash-step-state-running .splash-boot-step-icon.pending {
    color: #38bdf8;
    animation: splashBootActivePulse 1.2s ease-in-out infinite;
}

@keyframes splashBootActivePulse {
    0%, 100% { opacity: 0.45; transform: scale(0.92); }
    50% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .splash-boot-prog { transition: none; }
    .splash-boot-steps-list { scroll-behavior: auto; }
    .splash-boot-panel { animation: none; }
    .splash-boot-step-item.active.splash-step-state-running .splash-boot-step-icon.pending {
        animation: none;
    }
}

.splash-boot-files {
    width: 100%;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    max-height: min(28dvh, 200px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.splash-boot-file-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.72rem;
}

.splash-boot-file-item--running {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
}

.splash-boot-file-item--warn {
    border-color: rgba(251, 191, 36, 0.35);
}

.splash-boot-file-icon {
    flex-shrink: 0;
    opacity: 0.85;
    margin-top: 1px;
}

.splash-boot-file-body {
    flex: 1;
    min-width: 0;
    text-align: right;
}

.splash-boot-file-name {
    font-weight: 600;
    color: #f1f5f9;
    word-break: break-all;
}

.splash-boot-file-meta {
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
    margin-top: 2px;
}
