/* Styles for AppUpdateChecker.razor (the "new version available" banner).
   This is a global stylesheet (referenced from App.razor) rather than a scoped .razor.css,
   because the WASM client's scoped CSS is not served via the host's @Assets bundle here.
   Themed with MudBlazor palette tokens so it adapts to light/dark automatically. */

.app-update-banner {
    width: 100%;
}

.app-update-banner__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    background-color: rgba(var(--mud-palette-primary-rgb), 0.10);
    border-bottom: 1px solid rgba(var(--mud-palette-primary-rgb), 0.30);
    box-shadow: var(--mud-elevation-2);
}

/* The icon and the text are one flex item, so a wrap can never strand the icon on its own line.
   The bar therefore has exactly two items and wraps at most once, into message-then-actions. */
.app-update-banner__message {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.app-update-banner__text {
    min-width: 0;
    color: var(--mud-palette-text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.app-update-banner__actions {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 600px) {
    .app-update-banner__bar {
        gap: 8px;
        padding: 8px 12px;
    }

    .app-update-banner__message {
        gap: 8px;
    }

    .app-update-banner__text {
        font-size: 0.82rem;
    }
}
