html, body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
}

/* ---------- Main layout: footer sticks to bottom ---------- */
/* MudMainContent gets a flex column so the body content pushes the footer
   to the bottom of the viewport. No more empty white gap below the footer. */
.app-main {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.app-body {
    padding: 8px 16px 16px 16px;
    flex: 1 1 auto;           /* takes all remaining vertical space */
}
.app-footer {
    text-align: center;
    padding: 10px 12px;
    color: #8a8a8a;
    font-size: 12px;
    flex: 0 0 auto;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: rgba(255,255,255,0.6);
}

/* ---------- Drawer layout ---------- */
/* MudDrawer's inner container uses flex; force items into top-aligned block
   flow so the nav sits right below the brand. Kill any flex-grow that would
   push the nav to the bottom. */
.mud-drawer .mud-drawer-content {
    display: block !important;
}
.drawer-brand {
    padding: 14px 12px 8px;
    text-align: center;
}
.drawer-brand img {
    max-width: 130px;
    height: auto;
    display: block;
    margin: 0 auto 6px;
}
.drawer-brand .brand-name {
    font-weight: 600;
    font-size: 13px;
    line-height: 1.2;
}
.drawer-brand .brand-sub {
    color: #d0367e;
    font-size: 11px;
}
.drawer-nav {
    margin-top: 4px;
}

/* No watermark — logo now lives in the sidebar drawer where it belongs. */

#blazor-error-ui {
    background: #ffc;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
