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

a, .btn-link {
    color: #0f7a63;
}

.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 #0f7a63;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.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;
}

/* Admin home: "Needs attention" rows and compact stat links (Components/Pages/Home.razor,
   Components/DashboardCard.razor). */
.attention-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    color: inherit;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.attention-row:last-child {
    border-bottom: none;
}

.attention-row:hover {
    background-color: var(--mud-palette-action-default-hover);
}

.attention-text {
    flex: 1;
}

.attention-clear {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dash-stat {
    display: block;
    color: inherit;
    height: 100%;
}

.dash-stat-body {
    height: 100%;
    transition: border-color 0.15s;
}

.dash-stat:hover .dash-stat-body {
    border-color: var(--mud-palette-primary);
}

.dash-stat-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-stat-arrow {
    opacity: 0.4;
}

.dash-stat:hover .dash-stat-arrow {
    opacity: 1;
    color: var(--mud-palette-primary);
}

.dash-stat-count {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 500;
}

.nav-with-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cormorant defaults to old-style figures, which make a count like 11 read as "ıı". */
.dash-stat-count {
    font-variant-numeric: lining-nums;
}

.attention-row,
.attention-row:hover {
    color: var(--mud-palette-text-primary);
}

.attention-row .attention-text {
    color: var(--mud-palette-text-primary);
}

.grid-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

/* Field labels sit above the box, not floating in its border (decided 2026-11-15; MudBlazor 9.10.0
   has no built-in label-above mode). Every field uses Variant.Outlined, so this restyles the
   outlined label for the whole app: the label is a sibling after .mud-input in MudBlazor's markup,
   so `order: -1` lifts it above, and !important is needed to beat the focus/shrink transform rules.
   The border's legend notch is collapsed so the box is a complete rectangle. */
.mud-input-control > .mud-input-control-input-container > label.mud-input-label.mud-input-label-outlined {
    order: -1;
    position: static !important;
    transform: none !important;
    max-width: 100% !important;
    padding: 0 0 0.25rem 0 !important;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
}

.mud-input-control > .mud-input-control-input-container > .mud-input:focus-within ~ label.mud-input-label.mud-input-label-outlined {
    color: var(--mud-palette-primary);
}

.mud-input.mud-input-outlined > .mud-input-outlined-border legend {
    display: none !important;
}

/* ---- Shared chrome (2026-11-21 UX round) ---- */

/* Sign-in and access-denied: one card centered on the cream background. */
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f1e8;
    padding: 24px;
}

/* Brand name in the top bar: reads as a heading, still a link home. */
.brand-link {
    color: inherit;
    text-decoration: none;
}

.brand-link:hover {
    text-decoration: underline;
}

.native-button:focus-visible {
    outline: 2px solid #2c3e50;
    outline-offset: 2px;
}

/* Native (non-Mud) form controls on the sign-in and access-denied cards. */
.native-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.native-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 4px;
    border: 1px solid #929292;
    background: #fff;
    font: inherit;
    font-size: 0.9375rem;
}

.native-field input:focus {
    outline: 2px solid #0f7a63;
    outline-offset: 1px;
    border-color: #0f7a63;
}

.native-button {
    padding: 11px;
    border-radius: 4px;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.native-button-primary {
    border: none;
    background: #1abc9c;
    color: #0a1628;
}

.native-button-primary:hover {
    background: #16a085;
}

.native-button-quiet {
    border: 1px solid #929292;
    background: #fff;
    color: inherit;
}

.native-button-quiet:hover {
    background: #f0ede4;
}

/* Account menu in the top bar (Components/Layout/UserMenu.razor). */
.user-avatar-button {
    background: none;
    border: none;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
}

.user-avatar-button:focus-visible {
    outline: 2px solid #2c3e50;
    outline-offset: 2px;
}

.user-avatar {
    font-weight: 600;
}

.user-menu-header {
    padding: 0.5rem 1rem;
    min-width: 200px;
}

.user-menu-signout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    width: 100%;
    padding: 6px 16px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    text-align: left;
}

.user-menu-signout:hover,
.user-menu-signout:focus-visible {
    background-color: var(--mud-palette-action-default-hover);
    outline: none;
}

/* A table with no search box would otherwise keep MudBlazor's empty toolbar row above its headers. */
.no-toolbar .mud-toolbar {
    display: none;
}

/* Portal: gigs that have already happened read as history. */
.past-gigs {
    opacity: 0.75;
}

/* Admin nav: a small group label above each block of links. */
.nav-group {
    display: block;
    padding: 1rem 1rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5a6878;
}

/* Tables: the row you can click says so before the click. */
.mud-table-hover .mud-table-row[style*="cursor:pointer"]:hover {
    background-color: rgba(15, 122, 99, 0.07);
}

/* Respect reduced motion for the dashboard hover transition. */
@media (prefers-reduced-motion: reduce) {
    .dash-stat-body {
        transition: none;
    }
}

/* Light chrome like dougrosenbergdev light mode: a hairline under the bar and beside the drawer. */
.mud-appbar {
    border-bottom: 1px solid rgba(44, 62, 80, 0.12);
}

.mud-drawer {
    border-right: 1px solid rgba(44, 62, 80, 0.12);
}

/* Brand teal as small text or an outline on cream must be the darker #0f7a63 (the filled-button
   teal, #1abc9c, is only ~2:1 there). Filled primary controls keep the bright teal. */
.mud-button-text-primary,
.mud-button-outlined-primary,
.mud-link-primary {
    color: #0f7a63;
}

.mud-button-outlined-primary {
    border-color: rgba(15, 122, 99, 0.5);
}

.mud-nav-link.active:not(.mud-nav-link-disabled),
.mud-nav-link.active:not(.mud-nav-link-disabled) .mud-icon-root {
    color: #0f7a63;
}

/* Password box with a show/hide eye (Components/PasswordInput.razor). */
.password-field {
    position: relative;
}

.native-field .password-field input {
    padding-right: 44px;
}

.password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #5a6878;
    cursor: pointer;
}

.password-toggle:hover {
    color: #2c3e50;
}

.password-toggle:focus-visible {
    outline: 2px solid #0f7a63;
    outline-offset: -2px;
    border-radius: 4px;
}

.password-toggle .icon-hide,
.password-toggle.is-showing .icon-show {
    display: none;
}

.password-toggle.is-showing .icon-hide {
    display: block;
}

/* Links styled as the native buttons (error page actions). */
.error-action {
    display: inline-block;
    padding: 10px 18px;
    text-decoration: none;
    text-align: center;
}
