/* ==============================================
   NemoApp Design System
   Blazor WebAssembly — Budget Tracker Frontend
   ============================================== */

/* --- Design Tokens --- */
:root {
    --primary:        #4F46E5;
    --primary-dark:   #4338CA;
    --primary-light:  #EEF2FF;

    --success:        #10B981;
    --success-light:  #D1FAE5;
    --danger:         #EF4444;
    --danger-light:   #FEE2E2;
    --warning:        #F59E0B;
    --warning-light:  #FEF3C7;
    --info:           #3B82F6;
    --info-light:     #DBEAFE;

    --bg:             #F8FAFC;
    --surface:        #FFFFFF;
    --border:         #E2E8F0;
    --text:           #0F172A;
    --text-muted:     #64748B;
    --text-subtle:    #94A3B8;

    --radius-sm:  6px;
    --radius:     10px;
    --radius-lg:  14px;
    --radius-xl:  20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,.06);
    --shadow:    0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.06);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --sidebar-width: 260px;
    --transition: 200ms ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }


/* ==============================================
   AUTH LAYOUT
   ============================================== */

.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 1.5rem;
}

.auth-card {
    background: var(--surface);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

/* Brand mark used in auth pages */
.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.625rem;
}

.auth-brand-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-brand-icon svg { width: 28px; height: 28px; color: #fff; }

.auth-brand-name {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.025em;
}

.auth-brand-name span { color: var(--primary); }

.auth-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.auth-subheading {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.auth-footer-link a { color: var(--primary); font-weight: 500; }
.auth-footer-link a:hover { text-decoration: underline; }


/* ==============================================
   APP SHELL — Sidebar Layout
   ============================================== */

.app-shell { display: flex; min-height: 100vh; }

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 200;
    transition: transform var(--transition);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.125rem 1.25rem;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
}

.sidebar-brand:hover { text-decoration: none; }

.sidebar-brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-brand-icon svg { width: 16px; height: 16px; color: #fff; }

.sidebar-brand-name {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.sidebar-brand-name span { color: var(--primary); }

/* Nav */
.sidebar-nav { flex: 1; padding: 0.75rem; overflow-y: auto; }

.nav-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-subtle);
    padding: 0.75rem 0.75rem 0.25rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.nav-item:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--primary-light); color: var(--primary); }
.nav-item.active svg { color: var(--primary); }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Sidebar footer / user area */
.sidebar-footer {
    padding: 0.875rem;
    border-top: 1px solid var(--border);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
}

.sidebar-user:hover { background: var(--bg); text-decoration: none; }

.sidebar-user-info { flex: 1; min-width: 0; }

.sidebar-user-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-email {
    font-size: 0.75rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Main content area --- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.page-header-left { display: flex; align-items: center; gap: 0.75rem; }

.page-title { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.page-subtitle { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.125rem; }

.page-body { padding: 2rem; flex: 1; }

/* Mobile toggle */
.sidebar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}

.sidebar-toggle:hover { color: var(--text); }
.sidebar-toggle svg { width: 22px; height: 22px; }

/* Overlay for mobile sidebar */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 199;
    cursor: pointer;
}

.sidebar-overlay.open { display: block; }


/* ==============================================
   FORMS
   ============================================== */

.form-group { margin-bottom: 1.25rem; }

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4375rem;
}

.form-label .req { color: var(--danger); }

.form-input {
    display: block;
    width: 100%;
    padding: 0.65625rem 0.875rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-input::placeholder { color: var(--text-subtle); }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,.12); }
.form-input:disabled { background: var(--bg); color: var(--text-muted); cursor: not-allowed; }

/* Password / icon wrapper */
.input-wrapper { position: relative; }
.input-wrapper .form-input { padding-right: 2.75rem; }

.input-icon-btn {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: var(--text-subtle);
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: color var(--transition);
}

.input-icon-btn:hover { color: var(--text-muted); }
.input-icon-btn svg { width: 18px; height: 18px; }

/* Checkbox row */
.check-row { display: flex; align-items: center; gap: 0.625rem; }
.form-checkbox { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0; }
.check-label { font-size: 0.875rem; color: var(--text-muted); cursor: pointer; user-select: none; }

/* Select wrapper with custom arrow */
.select-wrapper { position: relative; }
.select-wrapper .form-input { appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select-wrapper .select-arrow {
    position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: var(--text-muted);
}

/* Blazor validation */
.validation-message { display: block; font-size: 0.8125rem; color: var(--danger); margin-top: 0.3125rem; }
.valid.modified:not([type=checkbox]) { border-color: var(--success); }
.invalid { border-color: var(--danger) !important; }


/* ==============================================
   BUTTONS
   ============================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6875rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    outline: none;
}

.btn:focus-visible { box-shadow: 0 0 0 3px rgba(79,70,229,.25); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; text-decoration: none; }

.btn-outline { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-outline:hover { background: var(--bg); color: var(--text); text-decoration: none; }

.btn-ghost { background: transparent; color: var(--text-muted); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); text-decoration: none; }

.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { background: #DC2626; border-color: #DC2626; color: #fff; text-decoration: none; }

.btn-google {
    background: var(--surface);
    color: var(--text);
    border-color: var(--border);
    font-weight: 500;
}
.btn-google:hover { background: var(--bg); color: var(--text); text-decoration: none; }

.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.8125rem 1.5rem; font-size: 1rem; }


/* ==============================================
   DIVIDER
   ============================================== */

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.divider-text { font-size: 0.8125rem; color: var(--text-subtle); white-space: nowrap; }


/* ==============================================
   ALERTS / NOTIFICATIONS
   ============================================== */

.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.alert-error   { background: var(--danger-light);  color: #991B1B; }
.alert-success { background: var(--success-light); color: #065F46; }
.alert-warning { background: var(--warning-light); color: #92400E; }
.alert-info    { background: var(--info-light);    color: #1E40AF; }


/* ==============================================
   CARDS
   ============================================== */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.card-header-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.card-header-subtitle { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.1875rem; }

.card-body { padding: 1.5rem; }
.card-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; }


/* ==============================================
   STATS CARDS (Dashboard)
   ============================================== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.stat-card-icon svg { width: 20px; height: 20px; }

.stat-card-icon.purple { background: var(--primary-light); color: var(--primary); }
.stat-card-icon.green  { background: var(--success-light); color: var(--success); }
.stat-card-icon.red    { background: var(--danger-light);  color: var(--danger); }
.stat-card-icon.orange { background: var(--warning-light); color: var(--warning); }

.stat-card-label { font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); margin-bottom: 0.375rem; }
.stat-card-value { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.025em; color: var(--text); }
.stat-card-note { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.375rem; }


/* ==============================================
   AVATAR
   ============================================== */

.avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
    user-select: none;
}

.avatar img { width: 100%; height: 100%; object-fit: cover; }

.avatar-lg { width: 64px;  height: 64px;  font-size: 1.25rem; }
.avatar-xl { width: 88px;  height: 88px;  font-size: 1.75rem; }

/* Upload wrapper */
.avatar-upload {
    position: relative;
    display: inline-block;
}

.avatar-upload-btn {
    position: absolute;
    bottom: 0; right: 0;
    width: 26px;
    height: 26px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid var(--surface);
    transition: background var(--transition);
}

.avatar-upload-btn:hover { background: var(--primary-dark); }
.avatar-upload-btn svg { width: 13px; height: 13px; }


/* ==============================================
   PIN INPUT
   ============================================== */

.pin-group {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin: 1.75rem 0 2rem;
}

.pin-digit {
    width: 52px;
    height: 60px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    outline: none;
    caret-color: transparent;
    -moz-appearance: textfield;
}

.pin-digit::-webkit-outer-spin-button,
.pin-digit::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pin-digit:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

.pin-digit.filled {
    border-color: var(--primary);
    background: var(--primary-light);
}


/* ==============================================
   LOADING SPINNER
   ============================================== */

.spinner {
    width: 18px;
    height: 18px;
    border: 2.5px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
    flex-shrink: 0;
}

.spinner-lg { width: 36px; height: 36px; border-width: 3px; }

.loading-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 240px;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

@keyframes spin { to { transform: rotate(360deg); } }


/* ==============================================
   SETTINGS SECTIONS (Profile page)
   ============================================== */

.settings-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.settings-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.settings-title { font-size: 1rem; font-weight: 600; color: var(--text); }
.settings-desc  { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

.settings-body   { padding: 1.5rem; }
.settings-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; }

/* Profile header row */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 0.25rem;
}

.profile-name  { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.profile-email { font-size: 0.9375rem; color: var(--text-muted); margin-top: 0.25rem; }

/* Connected account badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3125rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
}

.badge svg { width: 14px; height: 14px; }

.badge-connected    { background: var(--success-light); color: #065F46; }
.badge-disconnected { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }


/* ==============================================
   TRANSACTION LIST (Dashboard placeholder)
   ============================================== */

.tx-list { display: flex; flex-direction: column; }

.tx-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border);
}

.tx-item:last-child { border-bottom: none; }

.tx-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.tx-details { flex: 1; min-width: 0; }
.tx-name    { font-size: 0.9375rem; font-weight: 500; color: var(--text); }
.tx-date    { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.125rem; }
.tx-amount  { font-size: 0.9375rem; font-weight: 600; }
.tx-amount.income  { color: var(--success); }
.tx-amount.expense { color: var(--danger); }

/* Placeholder shimmer */
.placeholder {
    background: linear-gradient(90deg, var(--bg) 25%, var(--border) 50%, var(--bg) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }


/* ==============================================
   UTILITY
   ============================================== */

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.w-full { width: 100%; }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    gap: 1rem;
}

.section-title { font-size: 1rem; font-weight: 600; color: var(--text); }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition);
}

.back-link:hover { color: var(--text); text-decoration: none; }
.back-link svg { width: 16px; height: 16px; }


/* ==============================================
   RESPONSIVE
   ============================================== */

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }

    .main-content { margin-left: 0; }

    .sidebar-toggle { display: flex; }

    .page-header { padding: 1rem 1.25rem; }
    .page-body   { padding: 1.25rem; }

    .auth-card { padding: 2rem 1.5rem; }

    .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .pin-digit  { width: 42px; height: 52px; font-size: 1.25rem; }
    .auth-card  { padding: 1.75rem 1.25rem; }
}


/* ==============================================
   BLAZOR BUILT-IN UI (keep)
   ============================================== */

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) 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;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: var(--primary);
    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"); }
