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

a, .btn-link {
    color: #006bb7;
}

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

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;
}
/* ---- Mustang Wrestling ---- */
:root { --mustang: #7a1f1f; --mustang-dark: #4a1010; }
.sidebar { background-image: linear-gradient(180deg, var(--mustang) 0%, var(--mustang-dark) 70%) !important; }
.btn-primary { --bs-btn-bg: var(--mustang); --bs-btn-border-color: var(--mustang); --bs-btn-hover-bg: var(--mustang-dark); --bs-btn-hover-border-color: var(--mustang-dark); --bs-btn-active-bg: var(--mustang-dark); --bs-btn-disabled-bg: var(--mustang); --bs-btn-disabled-border-color: var(--mustang); }
.pre-wrap { white-space: pre-wrap; }
.top-row { justify-content: flex-end; align-items: center; }
.bell { position: relative; font-size: 1.25rem; text-decoration: none; }
.bell .badge { position: absolute; top: -6px; right: -12px; font-size: .65rem; }

/* event type colours */
.badge.evt-practice, .cal-evt.evt-practice { background: #e7f0ff; color: #1d4f91; }
.badge.evt-meet, .cal-evt.evt-meet { background: #fff2d6; color: #8a5300; }
.badge.evt-tournament, .cal-evt.evt-tournament { background: #fde2e2; color: var(--mustang); font-weight: 600; }
.badge.evt-other, .cal-evt.evt-other { background: #ececec; color: #444; }
.cancelled { text-decoration: line-through; opacity: .6; }

/* month grid */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid #ddd; border-top: 1px solid #ddd; }
.cal-head { font-size: .8rem; font-weight: 600; padding: .25rem .4rem; background: #f6f6f6; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.cal-day { min-height: 6.5rem; padding: .2rem; border-right: 1px solid #ddd; border-bottom: 1px solid #ddd; overflow: hidden; }
.cal-day.other { background: #fafafa; color: #aaa; }
.cal-day.today .cal-num { background: var(--mustang); color: #fff; border-radius: 50%; width: 1.6rem; text-align: center; }
.cal-num { font-size: .8rem; margin-bottom: .15rem; }
.cal-evt { display: block; font-size: .72rem; padding: 1px 4px; border-radius: 3px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
@media (max-width: 640px) {
    .cal-day { min-height: 4rem; }
    .cal-evt { font-size: 0; height: 6px; padding: 0; }
}

/* chat */
.chat-wrap { display: flex; gap: 1rem; height: calc(100vh - 7rem); min-height: 420px; }
.chat-channels { width: 220px; flex-shrink: 0; display: flex; flex-direction: column; }
.chat-channels a { padding: .35rem .6rem; border-radius: 4px; text-decoration: none; color: inherit; }
.chat-channels a.active { background: var(--mustang); color: #fff; }
.chat-channels a.active .text-muted { color: #f3d6d6 !important; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; border: 1px solid #ddd; border-radius: 6px; }
.chat-header { padding: .5rem .75rem; border-bottom: 1px solid #ddd; }
.chat-messages { flex: 1; overflow-y: auto; padding: .5rem .75rem; }
.chat-msg { padding: .35rem 0; border-bottom: 1px solid #f2f2f2; }
.chat-msg.hidden-msg { opacity: .65; }
.chat-msg.flagged-msg { background: #fff8e1; }
.chat-meta { display: flex; gap: .5rem; align-items: baseline; }
.chat-actions { margin-left: auto; }
.chat-actions .btn { padding: 0 .25rem; font-size: .75rem; }
.chat-body { white-space: pre-wrap; overflow-wrap: anywhere; }
.role { font-size: .7rem; padding: 0 .35rem; border-radius: 3px; background: #eee; }
.role-coach { background: var(--mustang); color: #fff; }
.role-parent { background: #e7f0ff; color: #1d4f91; }
.role-wrestler { background: #e8f6ea; color: #1d6b2b; }
.chat-compose { display: flex; gap: .5rem; padding: .5rem; border-top: 1px solid #ddd; }
.chat-compose textarea { resize: none; }
@media (max-width: 640px) {
    .chat-wrap { flex-direction: column; height: auto; }
    .chat-channels { width: auto; flex-direction: row; flex-wrap: wrap; }
    .chat-rules { display: none; }
    .chat-messages { max-height: 60vh; }
}

/* weights */
.weight-chart { max-width: 720px; margin: 0 0 1rem; }
.weight-chart svg { width: 100%; height: auto; }
.weight-chart .grid { stroke: #e5e5e5; }
.weight-chart .axis { font-size: 11px; fill: #777; }
.weight-chart .line { fill: none; stroke: var(--mustang); stroke-width: 2.5; stroke-linejoin: round; }
.weight-chart .pt { fill: #fff; stroke: var(--mustang); stroke-width: 2; }
.weight-chart .pt.official { fill: var(--mustang); }
.weight-chart .class-line { stroke: #1d4f91; stroke-dasharray: 5 4; }
.weight-chart .class-label { font-size: 11px; fill: #1d4f91; }
.admin-box { border: 1px solid #e0c4c4; border-radius: 6px; padding: .75rem 1rem; background: #fdf8f8; }

/* calendar groups (imported sources) */
.group-swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; background: #ddd; }
.group-swatch.src-team { background: linear-gradient(135deg, #e7f0ff 0 33%, #fff2d6 33% 66%, #fde2e2 66%); border: 1px solid var(--mustang); }
.badge.src-wrestlingreimagined, .cal-evt.src-wrestlingreimagined, .group-swatch.src-wrestlingreimagined { background: #ede3fb; color: #5b2a9e; }
.group-swatch.src-wrestlingreimagined { border: 1px solid #5b2a9e; }
.badge.src-usaw, .cal-evt.src-usaw, .group-swatch.src-usaw { background: #d9f3ef; color: #0d6b5e; }
.group-swatch.src-usaw { border: 1px solid #0d6b5e; }
.list-group-item.imported.src-wrestlingreimagined { border-left: 4px solid #5b2a9e; }
.list-group-item.imported.src-usaw { border-left: 4px solid #0d6b5e; }
.fb-post img { max-width: 100%; max-height: 360px; object-fit: cover; border-radius: 6px; }
.fb-embed { width: 100%; max-width: 500px; height: 900px; border: none; overflow: hidden; display: block; }
.badge.src-smoothcomp, .cal-evt.src-smoothcomp, .group-swatch.src-smoothcomp { background: #ffe8d6; color: #a14a00; }
.group-swatch.src-smoothcomp { border: 1px solid #a14a00; }
.list-group-item.imported.src-smoothcomp { border-left: 4px solid #a14a00; }

/* bracket sheet printing */
.print-only { display: none; }
@media print {
    .sidebar, .top-row, .no-print, #blazor-error-ui { display: none !important; }
    .print-only { display: block; }
    main, .content { padding: 0 !important; margin: 0 !important; }
}
