/* Global, app-wide styles -- not scoped to any single component. A handful of
   pages also have their own "<PageName>.razor.css" file next to them (Blazor
   "CSS isolation" -- see e.g. Pages/MapPage.razor.css's header comment for how
   that mechanism works) for styling that's genuinely specific to one page; this
   file is for everything else. Most of the actual look-and-feel (colors, fonts,
   shape) is a MudTheme -- see Theme/BartrTheme.cs -- this file only holds things
   a C# theme object can't express: a couple of true page-wide resets, two shape
   utility classes Mud components opt into, and the framework-required Blazor
   loading/error UI below.

   Bartr's brand colors, "Space Grotesk" wordmark/heading font, and "Plus Jakarta
   Sans" body font (loaded via Google Fonts in index.html) all came from the
   original React prototype's design -- see Theme/BartrTheme.cs's header comment. */

html, body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #F0EEE9;
}

h1:focus {
    outline: none;
}

/* MudBlazor has no built-in "fully pill-shaped" button/chip option -- the
   original design used borderRadius:100 on nearly every button, chip, and
   badge, so components that want that look opt in with Class="rounded-pill"
   (MudChip/MudButton/etc. already default to Theme/BartrTheme.cs's
   DefaultBorderRadius of 16px, which suits cards but is too subtle for a
   pill). */
.rounded-pill {
    border-radius: 100px !important;
}

/* The "Bartr" wordmark next to the logo mark in MainLayout.razor's app bar --
   Space Grotesk (see Theme/BartrTheme.cs) at a weight/spacing Typo.h6 alone
   doesn't give it. */
.bartr-wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* MudAppBar with Color.Surface + Elevation="0" (see MainLayout.razor) has no
   built-in separator from the page content below it -- this adds the same
   thin hairline the original design used to divide its top bar from content. */
.border-bottom {
    border-bottom: 1px solid #E5E2DC;
}

/* A handful of pages still use plain flex/text-alignment utility classes on a
   literal <div> (rather than a MudStack/MudText component) for small one-off
   layout tweaks -- e.g. "put this badge on the far right of this row."
   MudBlazor.min.css ships spacing utilities (mb-3, gap-2, pa-4, ...) but NOT
   these flex-alignment/text-alignment/sizing ones, so they're defined here to
   keep that markup working now that Bootstrap's CSS is gone from this project
   (see index.html). */
.justify-content-between { justify-content: space-between; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.text-center { text-align: center; }
.text-start { text-align: left; }
.text-end { text-align: right; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* Custom scrollbar, ported from the original React app's index.css. */
* {
    scrollbar-width: thin;
    scrollbar-color: #E85D3A transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #E85D3A;
    border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1A1A1A;
}

/* ── Everything below this line is required by the Blazor WebAssembly framework
   itself (referenced directly by wwwroot/index.html and blazor.webassembly.js) --
   not part of the Bartr brand, don't remove even though it isn't MudBlazor. ── */

#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+PC9kZWZzPjxnIGNsaXAtcGF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gODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

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

        .loading-progress circle:last-child {
            stroke: #E85D3A;
            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");
    }
