@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

/* Global branding token set (used across the app) */
:root {
    --primary-dark: #2c1a0e; /* deep brown */
    --accent-red: #991b1b; /* rgb(153 27 27) base */
    --accent-red-dark: #7f1d1d; /* darker */
    --accent-red-hover: #b91c1c; /* hover */
    --amber: #f8c14b; /* phone / highlight amber */
    --cream: #fdf8f4; /* light background */
    --muted-border: #e8ddd4; /* card and border color */
    --text-dark: #2c1a0e;
    --text-mid: #6b5a4c;
    --text-light: #8f7f73;
}

html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 16px !important;
}

/* Consistent 8px gap between adjacent buttons across the whole app (Save/Back/etc.).
   Button groups stay visually joined, so exclude their members. */
.btn + .btn {
    margin-left: 8px;
}
.btn-group > .btn + .btn,
.btn-group-vertical > .btn + .btn {
    margin-left: -1px; /* preserve Bootstrap's joined button-group look */
}

.blog {
    margin-bottom: 25px;
    font-size: 21px !important;
    font-family: 'Roboto';
}

table {
    font-size: smaller;
}

h1:focus {
    outline: none;
}

/* Links and btn-link use branding token */
a, .btn-link {
    color: var(--accent-red);
}

a, .no-underline {
    text-decoration: none;
}

/* Primary button uses branding tokens and explicit states */
.btn-primary {
    color: #fff;
    background-color: var(--accent-red);
    border-color: var(--accent-red-dark);
}
.btn-primary:hover {
    background-color: var(--accent-red-hover);
    border-color: var(--accent-red);
    color: #fff;
}
.btn-check:focus + .btn-primary,
.btn-primary:focus,
.btn-primary.focus {
    background-color: var(--accent-red-hover);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.25rem rgba(153,27,27,0.4);
    color: #fff;
}
.btn-check:active + .btn-primary,
.btn-check:checked + .btn-primary,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
    background-color: var(--accent-red-dark);
    border-color: #6b1a1a;
    color: #fff;
}
.btn-check:active + .btn-primary:focus,
.btn-check:checked + .btn-primary:focus,
.btn-primary.active:focus,
.btn-primary:active:focus,
.show > .btn-primary.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.25rem rgba(153,27,27,0.4);
}
.btn-primary.disabled,
.btn-primary:disabled {
    color: #fff;
    background-color: var(--accent-red);
    border-color: var(--accent-red-dark);
}

/* Outline variant mapping (Bootstrap .btn-outline-primary) */
.btn-outline-primary {
    color: var(--accent-red);
    border-color: var(--accent-red);
    background-color: transparent;
}
.btn-outline-primary:hover {
    background-color: var(--accent-red-hover);
    color: #fff;
    border-color: var(--accent-red-hover);
}
.btn-check:focus + .btn-outline-primary,
.btn-outline-primary:focus {
    box-shadow: 0 0 0 0.25rem rgba(153,27,27,0.4);
}
.btn-check:active + .btn-outline-primary,
.btn-check:checked + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show {
    color: #fff;
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}
.btn-check:active + .btn-outline-primary:focus,
.btn-check:checked + .btn-outline-primary:focus,
.btn-outline-primary.active:focus,
.btn-outline-primary.dropdown-toggle.show:focus,
.btn-outline-primary:active:focus {
    box-shadow: 0 0 0 0.25rem rgba(153,27,27,0.4);
}
.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
    color: var(--accent-red);
    background-color: transparent;
}

/* Form controls — override Bootstrap blue focus rings with branding red */
.form-control:focus,
.form-select:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.25rem rgba(153,27,27,0.25);
}
.form-check-input:checked {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
}
.form-check-input:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.25rem rgba(153,27,27,0.25);
}
.form-check-input:checked:focus {
    box-shadow: 0 0 0 0.25rem rgba(153,27,27,0.25);
}

/* Pagination — override Bootstrap blue with branding red */
.page-link {
    color: var(--accent-red);
}
.page-link:hover {
    color: var(--accent-red-dark);
}
.page-link:focus {
    color: var(--accent-red-dark);
    box-shadow: 0 0 0 0.25rem rgba(153,27,27,0.25);
}
.page-item.active .page-link {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

/* Popover header — override Bootstrap blue (#465a83) with branding red */
.popover-header {
    background-color: var(--accent-red);
    color: #fff;
    border-bottom: 1px solid var(--accent-red-dark);
}

/* Keep same sizing utility */
.btn-samesize {
    width: 120px;
}

/* Wider submit button for longer labels (e.g. checkout's "Pay & Place Order")
   so the text doesn't wrap. Overrides the 120px .btn-samesize width. The right
   margin spaces it 12px from the adjacent Back button. */
.btn-pay-wide {
    width: auto;
    min-width: 210px;
    margin-right: 12px;
}

/* Give the secondary (Back/Cancel) outline button a solid white background
   instead of the default transparent one, while leaving Bootstrap's hover/focus
   fill intact. */
.btn-outline-primary.btn-samesize:not(:hover):not(:focus) {
    background-color: #fff;
}

/* Parcel dimension labels overlaid on the package.png image (admin OrderDetails).
   Offsets are tuned to the package.png artwork; adjust if the image changes. */
.parcel-dim {
    font-weight: bold;
    font-size: 1.1em;
    position: relative;
}
.parcel-dim.width  { top: -303px; left: -42px; }
.parcel-dim.length { top: -330px; left: 79px; }
.parcel-dim.height { top: -172px; left: -120px; }
.parcel-dim.weight { top: -140px; left: 14px; }

/* Order status audit-trail timeline (admin OrderDetails + customer ViewOrder).
   Horizontal flow of statuses with arrows; scrolls on narrow screens. */
.status-timeline {
    display: flex;
    align-items: flex-start;
    gap: 0.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.status-timeline-step {
    flex: 0 0 auto;
    text-align: center;
    min-width: 7rem;
    padding: 0.25rem 0.5rem;
}
.status-timeline-name {
    font-weight: 600;
    color: var(--accent-red-dark);
}
.status-timeline-date {
    font-size: 0.8rem;
    color: var(--text-mid);
}
.status-timeline-by {
    font-size: 0.75rem;
    color: var(--text-light);
}
.status-timeline-arrow {
    align-self: center;
    font-size: 1.25rem;
    color: var(--text-light);
    flex: 0 0 auto;
}

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

.pointer {
    cursor: pointer;
}

/* Replace darkblue usage with branding red */
.clickable {
    color: var(--accent-red);
}

.clickable:hover {
    text-decoration: underline;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

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

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

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

/* Offline page — shown when a tenant's IsTenantActive=false (US-007b). */
.offline-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    padding: 2rem 1rem;
}
.offline-card {
    max-width: 560px;
    width: 100%;
    background: #fff;
    border-radius: 1rem;
    padding: 3rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    text-align: center;
    border-top: 6px solid var(--accent-red);
}
.offline-icon {
    font-size: 4rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
    line-height: 1;
}
.offline-card h1 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.offline-card h2 {
    color: var(--text-mid);
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1.75rem;
}
.offline-card p {
    color: var(--text-mid);
    margin-bottom: 1.25rem;
}
.offline-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
    margin-top: 1rem;
}
.offline-contact {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-red);
    font-weight: 600;
    font-size: 1.05rem;
    text-decoration: none;
}
.offline-contact:hover {
    text-decoration: underline;
}
.offline-contact i {
    font-size: 1.2rem;
}

.mynavbar-logo-collapsed {
    display: inline-block;
    max-width: 200px;
}

.mynavbar-logo-collapsed img {
    display: inline-block;
    width: 100%;
}

.navbar-icons {
    font-size: 30px;
    margin-right: 2px;
    margin-left: 2px;
}

.nav-link span {
    font-size: 24px;
}

/* Highlight the navbar link for the page you're currently on.
   NavLink adds the .active class automatically when the route matches.
   The navbar forces white link text (.navbar-custom .nav-link), so we mark
   the current page with a bold white underline rather than a color change. */
.navbar-custom .navbar-nav .nav-link.active {
    font-weight: 700;
    border-bottom: 3px solid #fff;
    padding-bottom: 2px;
}

/* Admin/checkout form sections: render each <fieldset class="fieldset-border">
   as a distinct card with a brand-red accent bar and a bold heading legend,
   so it's obvious which fields belong to the section you're editing. */
.fieldset-border {
    border: 1px solid #e5e5e5;
    border-left: 4px solid var(--accent-red);
    border-radius: 0.5rem;
    background-color: #fff;
    padding: 0.75rem 1.25rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.legend-border {
    /* Bootstrap Reboot makes <legend> full-width and floated; undo that so the
       heading sits compactly at the top-left of the section card. */
    float: none;
    width: auto;
    margin-bottom: 0.5rem;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-red);
}

.card-name {
    font-size: 20px;
    font-weight: bold;
}

.card-text {
    height: 50px;
    overflow: hidden;
}

/* Hide number field arrows */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* Custom typeography */
.bold {
    font-weight: bold;
}

.italic {
    font-style: italic;
}

.smallText {
    font-size: small;
}

.bigText {
    font-size: larger;
}

/* ===========================
   Landing page branding (moved from LandingPage.razor)
   - Section headings, category pills, product cards, info strip, services
   =========================== */

/* Section heading token */
.section-heading {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--text-dark);
    border-bottom: 3px solid var(--accent-red);
    display: inline-block;
    padding-bottom: 4px;
    margin-bottom: 1.5rem;
}

/* Eye-catching banner used for the landing-page Featured Products section */
.featured-banner {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-red-dark));
    color: #fff;
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: 1px;
    padding: 0.65rem 2.25rem;
    border-radius: 3rem;
    box-shadow: 0 6px 18px rgba(153, 27, 27, 0.35);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.featured-banner i {
    color: var(--amber);
    margin: 0 0.5rem;
    font-size: 1.5rem;
    vertical-align: middle;
}
/* Streamline the banner on small screens so the text + both stars stay on one line. */
@media (max-width: 576px) {
    .featured-banner {
        font-size: 1.05rem;
        letter-spacing: 0.5px;
        padding: 0.4rem 1.1rem;
        white-space: nowrap;
    }
    .featured-banner i {
        font-size: 0.9rem;
        margin: 0 0.3rem;
    }
}

/* Category pills (filters) */
.category-pill {
    cursor: pointer;
    border-radius: 2rem;
    padding: .45rem 1.2rem;
    font-weight: 600;
    background: var(--cream);
    border: 2px solid var(--accent-red);
    color: var(--accent-red);
    transition: all .2s;
    white-space: nowrap;
}
.category-pill:hover, .category-pill.active {
    background: var(--accent-red);
    color: #fff;
}

/* Product card */
.product-card {
    border: 1px solid var(--muted-border);
    border-radius: .5rem;
    /* NOTE: deliberately NOT overflow:hidden. The Add-to-Cart options modal is
       rendered inside this card, and on iOS Safari a position:fixed modal inside an
       overflow:hidden ancestor gets clipped (only the backdrop shows). We round the
       image corners directly instead of clipping the whole card. */
    transition: box-shadow .2s;
    background: #fff;
    height: 100%;
}
.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.12); }
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
}
.product-card .card-body { padding: .9rem; }
.product-card .card-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: .25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-card .card-price {
    color: var(--accent-red);
    font-weight: 700;
    font-size: 1.1rem;
}
.product-card .card-desc {
    font-size: .85rem;
    color: #666;
    height: 40px;
    overflow: hidden;
}

/* Stars */
.stars { color: var(--amber); letter-spacing: -1px; }

/* Info strip */
.info-strip {
    background: var(--primary-dark);
    color: var(--cream);
}
.info-strip .info-icon { font-size: 2rem; color: var(--amber); }
.info-strip h5 { font-weight: 700; color: var(--cream); }
.info-strip p { color: var(--text-light); margin: 0; }

/* Services card */
.service-card {
    border-left: 4px solid var(--accent-red);
    background: var(--cream);
    border-radius: .25rem;
    padding: 1.2rem 1.4rem;
}
.service-card h5 { font-weight: 700; color: var('--text-dark'); }

/* Hero phone link used on landing page */
.hero-phone {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--amber);
    text-decoration: none;
}
.hero-phone:hover { color: #ffe082; }

/* ===========================
   Custom navbar background
   =========================== */
/* Let the nav links flow onto a second row instead of running off the screen.
   The admin menu has 13 links: once the navbar expands at lg they needed ~1213px on
   one line, which stretched <nav> to 1697px and gave EVERY admin page a horizontal
   scrollbar at 1326px, with "Backups" and "Error Logs" off-screen entirely.

   flex-wrap alone does nothing here. Each level of the navbar is sized by its content
   and flex items default to min-width:auto (= min-content), so the list is never given
   a width small enough to wrap against. min-width:0 is what lets the ancestors shrink;
   flex-wrap is what they do once they can. Both are required.

   Wrapping beats raising the expand breakpoint: navbar-expand-xxl would hide the whole
   admin menu behind a hamburger on any screen under ~1400px. Scoped to min-width 992px
   because below lg the links are already a vertical stack in the collapsed menu.

   Lives here rather than in a .razor.css because it spans two components — the collapse
   wrapper is in Navbar.razor, the list itself in NavbarLinksAdmin/NavbarLinks. */
@media (min-width: 992px) {
    nav.navbar .navbar-collapse,
    nav.navbar .navbar-nav {
        min-width: 0;
    }

    nav.navbar ul.navbar-nav {
        flex-wrap: wrap;
        row-gap: 0.25rem;
    }
}

.navbar-custom {
    background-color: var(--accent-red) !important;
}

/* Ensure links and toggler are visible on the custom background */
.navbar-custom .navbar-brand,
.navbar-custom .nav-link,
.navbar-custom .navbar-text {
    color: #ffffff !important;
}

.navbar-custom .navbar-toggler-icon {
    filter: invert(1) brightness(2); /* make toggler icon visible */
}

.navbar-custom .navbar-toggler {
    border-color: rgba(255,255,255,0.25);
}

/* Text-based logo styles � added for text "Country Home Meats" */
.mynavbar-logo-collapsed,
.mynavbar-text-logo {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0.15rem 0.25rem;
    line-height: 1;
    font-size: 1rem; /* small screens */
}

/* Larger, prominent text for large screens */
.mynavbar-logo-large {
    color: #fff;
    font-weight: 800;
    font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 1.35rem; /* adjust as needed */
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
    padding-left: 0.25rem;
}

/* Ensure navbar-brand link inherits visibility rules */
.navbar-custom .navbar-brand {
    color: #fff !important;
}

/* Slight responsive bump for very large displays */
@media (min-width: 1400px) {
    .mynavbar-logo-large {
        font-size: 1.6rem;
    }
}

/* Cart badge � white fill with navbar-red text to match color scheme */
.badge-cart {
    background-color: #fff !important;
    color: var(--accent-red) !important;
    font-weight: 700;
    border: 2px solid var(--accent-red);
}

/* AddToCart button � ensure it uses the global red branding (var(--accent-red)) */
.button-add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.45rem 0.75rem;
    color: #fff !important;
    background-color: var(--accent-red) !important;
    border: 1px solid var(--accent-red-dark) !important;
    border-radius: 0.25rem;
    transition: background-color .15s ease, border-color .15s ease, transform .08s ease;
}

/* Hover / focus / active states */
.button-add-to-cart:hover:not(:disabled),
.button-add-to-cart:focus:not(:disabled) {
    background-color: var(--accent-red-hover) !important;
    border-color: var(--accent-red) !important;
    color: #fff !important;
}
.button-add-to-cart:active:not(:disabled),
.button-add-to-cart.active:not(:disabled) {
    background-color: var(--accent-red-dark) !important;
    border-color: #6b1a1a !important;
    color: #fff !important;
}

/* Disabled appearance */
.button-add-to-cart:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

/* Inner label */
.button-add-to-cart .span-add-to-cart {
    display: inline-block;
    line-height: 1;
}

/* Cart icon inside button � make strokes visible on red background */
.button-add-to-cart .cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.button-add-to-cart .cart svg {
    width: 1.25rem;
    height: 1.25rem;
}
.button-add-to-cart .cart polyline,
.button-add-to-cart .cart path,
.button-add-to-cart .cart circle {
    stroke: #fff;
    fill: none;
    stroke-width: 1.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Loading state used by the component's CSS class 'loading' */
.button-add-to-cart.loading {
    position: relative;
    overflow: hidden;
}
.button-add-to-cart.loading .span-add-to-cart {
    opacity: 0; /* hide text while showing spinner */
}
.button-add-to-cart.loading::after {
    content: "";
    position: absolute;
    right: 0.6rem;
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: ba-spinner 0.75s linear infinite;
}

/* spinner animation */
@keyframes ba-spinner {
    to { transform: rotate(360deg); }
}

/* Full-screen overlay backdrop for Blazor overlay-pattern modals */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 60px;
    overflow-y: auto;
    overflow-x: hidden;
}

.overlay-content-size {
    width: min(90%, 860px);
    box-sizing: border-box;
}

/* Modal body scroll wrapper � vertical scroll only, clip horizontal bleed */
.hideScrollbar {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}
.hideScrollbar::-webkit-scrollbar {
    width: 4px;
}
.hideScrollbar::-webkit-scrollbar-thumb {
    background: var(--muted-border);
    border-radius: 4px;
}

/* Applied only AFTER scrolling past it */
.sticky-top-element.fixed {
    position: fixed;
    top: 20px;
    left: 30px;
    width: 100%; /* optional — remove if you want a small button */
    z-index: 999;
}

/* ── Social Media Links ───────────────────────────────────────── */
.social-media-links .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}
.social-media-links .social-link:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.15);
    color: #fff;
}
/* Dark variant — for use on light backgrounds (pass Dark="true"). */
.social-media-links--dark .social-link {
    background: rgba(0, 0, 0, 0.06);
    color: #212529;
}
.social-media-links--dark .social-link:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #000;
}