/* HeadBet Blazor - overrides leves do MudBlazor */

html, body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* Sticky footer: MainContent vira coluna flex que ocupa pelo menos a altura
   util (viewport - appbar). O .hb-body cresce, o .hb-footer fica colado embaixo. */
.hb-main {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--mud-appbar-height, 64px));
}
.hb-body {
    flex: 1 0 auto;
}
.hb-footer {
    flex-shrink: 0;
    margin-top: auto;
}

/* Brand no AppBar */
.hb-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}
.hb-brand img {
    height: 36px;
    display: block;
}

/* Card "PageHeader" — alinhamento de titulo + acoes */
.hb-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Forca DataGrid a respeitar paddings padronizados */
.mud-data-grid .mud-table-cell {
    vertical-align: middle;
}

/* Hover dos rows mais sutil */
.mud-table-row.mud-table-row-hover:hover {
    background-color: rgba(255,255,255,0.04) !important;
}

/* Badges/Chips usados no projeto */
.hb-mono {
    font-family: ui-monospace, 'JetBrains Mono', Consolas, monospace;
}

/* Match score grid */
.hb-match-line {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
}
.hb-match-line .team {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hb-match-line .team.away {
    justify-content: flex-end;
}
.hb-match-line img.flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    border-radius: 2px;
}
.hb-match-line .score {
    font-size: 1.3rem;
    font-weight: 600;
    min-width: 3.5rem;
    text-align: center;
}

/* Login / Register page */
.hb-auth-card {
    max-width: 420px;
    margin: 4rem auto;
}

/* Checkbox simples (usado nos forms de auth — postados via HTML puro) */
.hb-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
    user-select: none;
}
.hb-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--mud-palette-primary);
    margin: 0;
    cursor: pointer;
}

/* Padroniza tamanho do label de MudSwitch / MudCheckBox com o resto dos forms.
   MudBlazor renderiza o label como mud-typography body1 (1rem) por default. */
.mud-switch .mud-typography,
.mud-checkbox .mud-typography {
    font-size: 0.875rem;
}

/* Inputs de palpite: home alinha à direita, away à esquerda, pra os dígitos
   se aproximarem do "x" central (HOME [  2] x [3  ] AWAY). */
.hb-bet-home input { text-align: right; }
.hb-bet-away input { text-align: left; }
