html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5I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I2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Kiosk Waitlist Board ─────────────────────────────────────────────────── */

.kiosk-board {
    display: flex;
    flex-wrap: nowrap;
    height: calc(100vh - var(--mud-appbar-height));
    overflow: hidden;
}

.kiosk-board-column {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--mud-palette-lines-default);
    overflow: hidden;
}

.kiosk-board-column:last-child {
    border-right: none;
}

.kiosk-board-scroll {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.kiosk-board-table td,
.kiosk-board-table th {
    font-size: 1.05rem;
    padding-top: 10px;
    padding-bottom: 10px;
}

.kiosk-board-center {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - var(--mud-appbar-height));
}

/* ── Kiosk promo board (dark treatment) ─────────────────────────────────── */

.kiosk-promo-dark {
    background: #121212;
    color: #f5f5f5;
    min-height: calc(100vh - var(--mud-appbar-height));
}

.kiosk-promo-header {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}

.kiosk-promo-title {
    color: #f5f5f5 !important;
    font-weight: 700;
}

.kiosk-promo-slots {
    display: grid;
    gap: 0;
    padding: 0.5rem 2rem 2rem;
}

@media (orientation: landscape) {
    .kiosk-promo-slots {
        grid-template-columns: 1fr 1fr;
        column-gap: 3rem;
    }
}

@media (orientation: portrait) {
    .kiosk-promo-slots {
        grid-template-columns: 1fr;
    }
}

.kiosk-promo-slot-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.4rem;
}

.kiosk-promo-slot-time {
    font-weight: 500;
}

.kiosk-promo-slot-value {
    font-weight: 700;
    font-size: 1.5rem;
}

/* ── Kiosk promo board – Progressive tier ladder ─────────────────────────── */

.kiosk-promo-tiers {
    display: grid;
    gap: 0;
    padding: 0.5rem 2rem 2rem;
    overflow-y: auto;
    max-height: calc(100vh - var(--mud-appbar-height) - 8rem);
}

@media (orientation: landscape) {
    .kiosk-promo-tiers {
        grid-template-columns: 1fr 1fr;
        column-gap: 3rem;
    }
}

@media (orientation: portrait) {
    .kiosk-promo-tiers {
        grid-template-columns: 1fr;
    }
}

.kiosk-promo-tier-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.4rem;
}

.kiosk-promo-tier-position {
    font-weight: 500;
}

.kiosk-promo-tier-value {
    font-weight: 700;
    font-size: 1.5rem;
}

.kiosk-tier-claimed {
    opacity: 0.4;
    text-decoration: line-through;
}

.kiosk-tier-next {
    font-weight: 700;
    border: 2px solid var(--cm-promo-highlight, var(--mud-palette-primary));
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
}

.kiosk-promo-value-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 2rem;
}

.kiosk-promo-value-hero .kiosk-hero-amount {
    font-weight: 800;
    line-height: 1;
    color: var(--cm-promo-highlight, var(--mud-palette-primary));
}

.kiosk-promo-value-hero .kiosk-hero-basis {
    font-size: 2rem;
    font-weight: 500;
    opacity: 0.7;
    margin-top: 0.5rem;
}

@media (orientation: landscape) {
    .kiosk-promo-value-hero .kiosk-hero-amount {
        font-size: 12vw;
    }
}

@media (orientation: portrait) {
    .kiosk-promo-value-hero .kiosk-hero-amount {
        font-size: 16vw;
    }
}

.kiosk-promo-footnote {
    text-align: center;
    padding: 0.5rem 2rem 1.5rem;
    opacity: 0.7;
}

/* ── Room pinned header ───────────────────────────────────────────────────── */

/* Keeps the page title, banners, action buttons, and jump-to-table pills pinned
   below the fixed app bar while the table grid scrolls beneath them. */
.room-sticky-header {
    position: sticky;
    top: var(--mud-appbar-height);
    z-index: 1000; /* above the table grid, below the app bar (1100) and dialogs */
    background-color: var(--mud-palette-background);
    padding-top: 8px;
}

/* ── Poker Table ──────────────────────────────────────────────────────────── */

.poker-table-wrapper {
    position: relative;
    width: 680px;
    height: 370px;
    margin: 0 auto;
    overflow: visible;
}

/* Horizontal racetrack (stadium): wide straights with fully-rounded ends
   (border-radius = half the height). Geometry is mirrored by SeatLayout.cs. */
.poker-table-felt {
    position: absolute;
    left: 60px;
    top: 70px;
    width: 560px;
    height: 220px;
    background: radial-gradient(ellipse at center, #2d7a2d 0%, #1a4d1a 100%);
    border-radius: 110px;
    border: 8px solid #5d3a1a;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    cursor: pointer;
}

.poker-dealer-marker {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: 1;
    pointer-events: none;
}

.poker-dealer-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #5d3a1a;
    border: 2px solid #8b6914;
    color: #f0d080;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    user-select: none;
}

.poker-seat {
    position: absolute;
    width: 96px;
    height: 96px;
    cursor: pointer;
    z-index: 1;
}

.poker-seat-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4px;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    user-select: none;
}

.poker-seat.seat-empty .poker-seat-inner {
    background: var(--cm-empty-seat-bg, #BDBDBD);
    border: 2px dashed rgba(255,255,255,0.4);
    color: var(--cm-empty-seat-text, rgba(255,255,255,0.7));
}

.poker-seat.seat-occupied .poker-seat-inner {
    background: var(--cm-occupied-seat-bg, #FFFFFF);
    border: 2px solid var(--mud-palette-primary);
    color: var(--cm-occupied-seat-text, var(--mud-palette-text-primary));
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.poker-seat.seat-selected .poker-seat-inner {
    background: var(--cm-occupied-seat-bg, #FFFFFF);
    border: 2px solid var(--mud-palette-primary);
    outline: 2px solid var(--mud-palette-primary);
    color: var(--cm-occupied-seat-text, var(--mud-palette-text-primary));
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.poker-seat.seat-selectable:hover .poker-seat-inner {
    transform: scale(1.1);
    box-shadow: 0 3px 10px rgba(0,0,0,0.5);
}

.poker-seat-number {
    font-size: 10px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 2px;
    opacity: 0.7;
}

.cm-promo-amount {
    color: var(--cm-promo-highlight, var(--mud-palette-primary));
}

.tier-next {
    color: var(--cm-promo-highlight, var(--mud-palette-primary));
}

.poker-seat-player {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poker-seat-membership {
    font-size: 9px;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 1px;
    opacity: 0.75;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.membership-tier-pill {
    display: inline-block;
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    padding: 2px 5px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    max-width: 86px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poker-seat-chips {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 2px;
}

.seat-chips-alert {
    color: var(--mud-palette-error);
}

/* --- Club Settings hours: clock dialog sizing ------------------------------
   The weekly-hours tables use narrow time-picker inputs. Setting that width on
   the MudTimePicker root also constrained its dialog-variant clock popup, so
   the clock opened very small with a horizontal scrollbar. Apply the narrow
   width to the input only, and guarantee the clock dialog renders the full
   clock face (260px) without horizontal overflow. The :has() guard scopes the
   dialog rule to time pickers (those containing a clock) so date pickers are
   unaffected. */
.club-hours-timepicker .mud-input-control {
    width: 110px;
}

.mud-picker-content:has(.mud-picker-time-clock) {
    min-width: 328px;
    overflow-x: hidden;
}

.poker-seat.seat-drag-source {
    opacity: 0.4;
}

.poker-seat.seat-valid-target .poker-seat-inner {
    box-shadow: 0 0 8px 3px rgba(76, 175, 80, 0.6);
    border-color: #4CAF50;
}

.poker-seat.drop-hover .poker-seat-inner {
    box-shadow: 0 0 12px 5px rgba(76, 175, 80, 0.9);
    border-color: #4CAF50;
    transform: scale(1.1);
}

.poker-seat-label {
    font-size: 10px;
    opacity: 0.6;
    line-height: 1;
}

/* ── Detail Drawer ────────────────────────────────────────────────────────── */

/*
 * MudBlazor colours list-item icons with --mud-palette-action-default (a dark
 * rgba tuned for its default white drawer). Our drawer backgrounds are dark, so
 * the icons all but disappear. Inherit the drawer's text colour instead, which
 * the theme already derives from the drawer background.
 */
.mud-drawer .mud-list-item-icon {
    color: inherit;
}
