/* Web shell: on phones the app fills the screen (like a native app); on
   tablet/desktop it sits in a centered phone-width frame on a brand backdrop,
   so the mobile-first UI looks intentional instead of stretched. */

html, body {
    margin: 0;
    height: 100%;
    background: #f4f5f7;
}

.web-frame {
    width: 100%;
    min-height: 100vh;
}

.web-frame > #app {
    width: 100%;
    min-height: 100vh;
    background: #fff;
}

/* Tablet & desktop: center a phone-width column with a soft frame. */
@media (min-width: 720px) {
    body {
        background: radial-gradient(circle at 50% 0%, #a30b3d 0%, #94002F 55%, #6d0022 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px 0;
    }

    .web-frame {
        width: 430px;
        min-height: auto;
        height: min(920px, calc(100vh - 48px));
        border-radius: 40px;
        background: #fff;
        box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
        overflow: hidden;
        position: relative;
    }

    .web-frame > #app {
        width: 100%;
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    /* The app's own .page containers scroll inside the frame. */
    .web-frame > #app > * {
        height: 100%;
    }
}

/* Startup splash (shown until Blazor boots). */
.startupSplash {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

/* Blazor's default error toast, brand-styled. */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px;
    background: #94002F;
    color: #fff;
    text-align: center;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
}
#blazor-error-ui .reload { color: #fff; text-decoration: underline; margin-left: 8px; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; top: 12px; }
