﻿/* =========================================================
   ENTERPRISE BOOT LOADER (NO JS)
   Uses:
   --blazor-load-percentage (e.g. 37%)
   --blazor-load-percentage-text (e.g. "37%")
   ========================================================= */

:root {
    --boot-brand: #33b8ff; /* biru lebih muda */
    --boot-brand-soft: rgba(51, 184, 255, 0.28);
    --boot-bg0: #06192c; /* navy lebih “laut” */
    --boot-bg1: #083a66;
    --boot-card: rgba(255, 255, 255, 0.92);
    --boot-text: #0f172a;
    --boot-subtext: rgba(15, 23, 42, 0.62);
    --boot-border: rgba(15, 23, 42, 0.10);
    --boot-shadow: 0 24px 60px rgba(2, 6, 23, 0.22);
}

@media (prefers-color-scheme: dark) {
    :root {
        --boot-card: rgba(17, 24, 39, 0.80);
        --boot-text: rgba(255, 255, 255, 0.92);
        --boot-subtext: rgba(255, 255, 255, 0.65);
        --boot-border: rgba(255, 255, 255, 0.10);
        --boot-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    }
}


#app {
    min-height: 100vh;
}

/* Fullscreen background + subtle “enterprise” texture */
.boot {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2.5rem 1.25rem;
    background: radial-gradient(1200px 600px at 20% 10%, rgba(27, 110, 194, 0.35), transparent 60%), radial-gradient(900px 500px at 80% 40%, rgba(56, 189, 248, 0.18), transparent 55%), linear-gradient(160deg, var(--boot-bg0), var(--boot-bg1));
}

/* The card */
.boot-card {
    width: min(720px, 92vw);
    border-radius: 18px;
    background: var(--boot-card);
    box-shadow: var(--boot-shadow);
    border: 1px solid var(--boot-border);
    padding: 22px 22px 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.boot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.boot-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.boot-logo {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: radial-gradient(80% 80% at 30% 30%, rgba(255,255,255,0.55), transparent 60%), linear-gradient(135deg, rgba(27,110,194,0.95), rgba(56,189,248,0.85));
    box-shadow: 0 10px 26px rgba(27,110,194,0.28), inset 0 0 0 1px rgba(255,255,255,0.35);
}

    .boot-logo svg {
        fill: rgba(255,255,255,0.95);
    }

.boot-titles {
    min-width: 0;
}

.boot-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: var(--boot-text);
    line-height: 1.2;
}

.boot-subtitle {
    font-size: 0.92rem;
    color: var(--boot-subtext);
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Ring progress using conic-gradient (no SVG needed) */
/*.boot-ring {
    width: 78px;
    height: 78px;
    border-radius: 999px;
    background: conic-gradient( var(--boot-brand) 0 var(--blazor-load-percentage, 0%), rgba(15, 23, 42, 0.12) 0 );
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

@media (prefers-color-scheme: dark) {
    .boot-ring {
        background: conic-gradient( var(--boot-brand) 0 var(--blazor-load-percentage, 0%), rgba(255, 255, 255, 0.12) 0 );
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
    }
}

.boot-ring-inner {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: rgba(255,255,255,0.85);
    display: grid;
    place-items: center;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.10), 0 6px 18px rgba(2, 6, 23, 0.10);
}

@media (prefers-color-scheme: dark) {
    .boot-ring-inner {
        background: rgba(17, 24, 39, 0.88);
        box-shadow: inset 0 0 0 1px rgba(255,255,255,0.10), 0 6px 18px rgba(0, 0, 0, 0.30);
    }
}*/

/* Percent text in the ring */
/*.boot-percent {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--boot-text);
    letter-spacing: 0.2px;
}

    .boot-percent::after {
        content: var(--blazor-load-percentage-text, "Loading…");
    }*/

/* Meter bar */
.boot-meter {
    position: relative;
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.10);
}

@media (prefers-color-scheme: dark) {
    .boot-meter {
        background: rgba(255, 255, 255, 0.10);
        border-color: rgba(255, 255, 255, 0.12);
    }
}

.boot-meter-fill {
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(27,110,194,0.95), rgba(56,189,248,0.90) );
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset;
    transition: width 120ms ease-out;
}

/* Shimmer overlay (still no JS) */
.boot-meter-shimmer {
    pointer-events: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.28) 35%, transparent 70% );
    transform: translateX(-60%);
    animation: boot-shimmer 1.25s infinite;
    mix-blend-mode: overlay;
    opacity: 0.85;
}

@keyframes boot-shimmer {
    to {
        transform: translateX(120%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .boot-meter-fill {
        transition: none;
    }

    .boot-meter-shimmer {
        animation: none;
        opacity: 0.35;
    }
}

/* Footer text */
.boot-footer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
}

.boot-status-text {
    font-size: 0.92rem;
    color: var(--boot-subtext);
    white-space: nowrap;
}

    .boot-status-text::after {
        content: "Booting runtime (" var(--blazor-load-percentage-text, "…") ")";
    }

.boot-hint {
    font-size: 0.86rem;
    color: var(--boot-subtext);
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
