/* Hide Blazor reconnecting */
/* Hide all reconnect states */
#components-reconnect-modal,
.components-reconnect-hide,
.components-reconnect-show,
.components-reconnect-failed,
.components-reconnect-rejected {
    display: none !important;
}

/* Smooth page transitions to prevent flicker */
/* Ensure content maintains minimum opacity during navigation */
.mud-main-content,
.mud-layout,
body > app {
    min-height: 100vh;
    background-color: var(--mud-palette-background, #fff);
}

/* Reduce flicker by maintaining a skeleton during navigation */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Apply smooth fade-in only to /app pages (non-prerendered server pages) */
/* This helps mask the SignalR connection establishment time */
.app-page-content .mud-container,
.app-page-content > div {
    animation: fadeIn 0.15s ease-in;
}

.app-bar-title {
    margin-left: 1.5rem;
    font-size: 1.25rem;
    line-height: 1.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 45vw;
    flex: 0 1 auto;
}

.app-bar-title.mud-typography-h6 {
    font-size: 1.25rem;
}

@media (max-width: 600px) {
    .app-bar-brand {
        font-size: 1.05rem;
    }

    .app-bar-title {
        margin-left: 0.5rem;
        max-width: 55vw;
        font-size: 1rem;
        line-height: 1.3rem;
    }

    .app-bar-title.mud-typography-h6 {
        font-size: 1rem;
    }
}
