/* Písmo nastavuje MudTheme.Typography (Themes/AppTheme.cs), fonty jsou self-hosted v css/fonts.css. */

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* MudBlazor nastavuje --mud-palette-background na :root — funguje pro světlý i tmavý motiv. */
    background: var(--mud-palette-background);
}

/* ====================== Shell ====================== */

.shell-drawer {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.active-icon-button {
    background-color: rgba(255, 255, 255, 0.15) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.active-icon-button:hover {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

.app-logo {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.app-env-label {
    display: inline-block;
    margin-left: 0.35rem;
    font-size: 0.58em;
    font-weight: 700;
    letter-spacing: 0.04em;
    vertical-align: middle;
    opacity: 0.9;
}

.app-page {
    padding-top: 16px;
    padding-bottom: 24px;
}

.app-status-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 64px 16px;
    text-align: center;
}

/* ====================== Obnova spojení ====================== */

#components-reconnect-modal {
    display: none;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.app-reconnect-card {
    padding: 16px 24px;
    border-radius: 6px;
    background: var(--mud-palette-surface, #fff);
    color: var(--mud-palette-text-primary, #212121);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

/* ====================== Uživatel v appbaru ====================== */

.app-user-avatar {
    cursor: pointer;
    font-size: 0.8rem !important;
    font-weight: 700;
}

.app-user-menu__header {
    padding: 8px 16px 10px;
    min-width: 200px;
}

.cursor-pointer {
    cursor: pointer;
}

.account-facts td:first-child {
    color: var(--mud-palette-text-secondary);
    width: 45%;
}
