h1:focus {
    outline: none;
}

.admin-loading {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    text-align: center;
    padding-top: 80px;
    color: #666;
}

#blazor-error-ui {
    background: lightyellow;
    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;
    }


/* Dashboard: the check-in counter flashes on every new check-in (a new @key restarts the animation). */
.admin-counter-card {
    text-align: center;
}

.admin-counter {
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    border-radius: 12px;
    margin: 8px 0;
}

.admin-flash {
    animation: admin-flash 1.2s ease-out;
}

@keyframes admin-flash {
    0% { color: #fff; background-color: #2e7d32; transform: scale(1.08); box-shadow: 0 0 32px rgba(46, 125, 50, 0.7); }
    40% { color: #2e7d32; background-color: rgba(46, 125, 50, 0.12); transform: scale(1.02); }
    100% { background-color: transparent; transform: scale(1); box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    .admin-flash {
        animation: none;
    }
}

.admin-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}

.admin-bar-label {
    width: 96px;
    flex: none;
    font-size: 0.85rem;
}

.admin-bar {
    height: 14px;
    min-width: 2px;
    background: var(--mud-palette-primary);
    border-radius: 3px;
}

.admin-bar-value {
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}