﻿*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
}

:root {
    --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Splash ─────────────────────────────────── */
#splash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgb(242, 244, 249);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Fade-out transition — triggered by JS when Blazor is ready */
    transition: opacity 600ms ease, visibility 600ms ease;
}

    #splash.splash-hide {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

/* ── Blobs ───────────────────────────────────── */
.ellipse-tr {
    position: absolute;
    width: 713px;
    height: 713px;
    right: calc(1440px - 789px - 713px);
    top: -201px;
    pointer-events: none;
    transform-origin: 85% 5%;
    opacity: 0;
    transform: scale(0.65);
    transition: opacity 700ms ease, transform 800ms var(--spring);
}

    .ellipse-tr img {
        position: absolute;
        inset: -28.05%;
        width: 156.1%;
        height: 156.1%;
        max-width: none;
    }

.ellipse-bl {
    position: absolute;
    width: 1135px;
    height: 1135px;
    left: -254px;
    top: 394px;
    pointer-events: none;
    transform-origin: 15% 90%;
    opacity: 0;
    transform: scale(0.65);
    transition: opacity 700ms ease, transform 800ms var(--spring);
}

    .ellipse-bl img {
        position: absolute;
        inset: -17.62%;
        width: 135.24%;
        height: 135.24%;
        max-width: none;
    }

    .ellipse-tr.show, .ellipse-bl.show {
        opacity: 1;
        transform: scale(1);
    }

/* ── Content ─────────────────────────────────── */
.splash-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.welcome {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #13181d;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms ease, transform 700ms var(--spring);
}

    .welcome.show {
        opacity: 1;
        transform: translateY(0);
    }

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.logo-icon {
    position: relative;
    flex-shrink: 0;
    width: 68px;
    height: 68px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.3);
    animation: icon-spring 2400ms var(--spring) 200ms forwards;
}

    .logo-icon img {
        position: absolute;
        width: 312.18%;
        height: 133.05%;
        left: -15.93%;
        top: -16.79%;
        max-width: none;
    }

@keyframes icon-spring {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.logo-text-wrap {
    display: grid;
    grid-template-columns: 0fr;
    opacity: 0;
    transition: grid-template-columns 750ms var(--spring), opacity 400ms ease 180ms;
}

    .logo-text-wrap.reveal {
        grid-template-columns: 1fr;
        opacity: 1;
    }

.logo-text-inner {
    overflow: hidden;
    white-space: nowrap;
}

.logo-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 38px;
    letter-spacing: 0.13em;
    color: #13181d;
    padding-right: 4px;
}

/* ── Status text (new) ───────────────────────── */
.splash-status {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    color: rgba(19, 24, 29, 0.4);
    margin-top: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 400ms ease, transform 400ms var(--spring);
}

    .splash-status.show {
        opacity: 1;
        transform: translateY(0);
    }

/* ── Blazor app — hidden until splash done ───── */
#app {
    opacity: 0;
    transition: opacity 500ms ease;
}

    #app.app-visible {
        opacity: 1;
    }

.app-loading-progress {
    height: 8px;
    width: 180px;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
}

.progress-linear-bars {
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
}

.progress-linear-bar {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    background-color: #287F74;
    transform: translateX(-100%);
}
