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

body {
    font-family: 'Inter', sans-serif;
}


h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

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

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNi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AyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

/* ═══════════════════════════════════════════════════════════════
   FiberX Loading Screen
   ═══════════════════════════════════════════════════════════════ */

.fx-loader {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 10;
}

/* Soft radial glow behind the rings */
.fx-loader-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle,
        rgba(255, 123, 83, 0.10) 0%,
        rgba(75, 62, 123, 0.06) 40%,
        transparent 70%);
    animation: fxl-glow-pulse 3s ease-in-out infinite;
    pointer-events: none;
}

/* Container for SVG rings + center content */
.fx-loader-orbit {
    position: relative;
    width: 220px;
    height: 220px;
}

.fx-loader-svg {
    width: 100%;
    height: 100%;
}

/* Spinning arcs */
.fx-arc {
    transform-origin: 100px 100px;
}

.fx-arc-1 {
    animation: fxl-spin 2.4s linear infinite;
    filter: drop-shadow(0 0 6px rgba(255, 123, 83, 0.4));
}

.fx-arc-2 {
    animation: fxl-spin 3.2s linear infinite reverse;
    filter: drop-shadow(0 0 4px rgba(75, 62, 123, 0.3));
}

/* Progress arc — fills based on Blazor load variable */
.fx-arc-progress {
    transform-origin: 100px 100px;
    transform: rotate(-90deg);
    transition: stroke-dasharray 0.4s ease;
    filter: drop-shadow(0 0 5px rgba(255, 123, 83, 0.35));
}

/* Floating particles orbiting */
.fx-particle {
    transform-origin: 100px 100px;
}
.fx-p1 { animation: fxl-spin 6s linear infinite; }
.fx-p2 { animation: fxl-spin 8s linear infinite reverse; }
.fx-p3 { animation: fxl-spin 7s linear infinite; }
.fx-p4 { animation: fxl-spin 9s linear infinite reverse; }

/* Center overlay with percentage + logo */
.fx-loader-center {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    animation: fxl-fade-in 0.5s ease 0.2s both;
}

.fx-loader-percent {
    font-family: 'Inter', sans-serif;
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #2D2350, #4B3E7B, #FF7B53);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fxl-gradient-shift 3s ease infinite;
    line-height: 1;
    letter-spacing: -1px;
}

.fx-loader-logo {
    width: 100px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 2px 8px rgba(45, 35, 80, 0.15));
}

/* Status text below rings */
.fx-loader-status {
    display: flex;
    align-items: center;
    gap: 2px;
    animation: fxl-fade-in 0.6s ease 0.4s both;
}

.fx-loader-text {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4B3E7B;
    letter-spacing: 0.3px;
}

.fx-loader-dots::after {
    content: '';
    animation: fxl-dots 1.5s steps(4, end) infinite;
}

/* ── Animations ── */
@keyframes fxl-spin {
    to { transform: rotate(360deg); }
}

@keyframes fxl-glow-pulse {
    0%, 100% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.1); opacity: 1; }
}

@keyframes fxl-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fxl-gradient-shift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fxl-dots {
    0%  { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* Keep hidden Blazor defaults functional */
.loading-progress { display: none; }
.loading-progress-text { display: none; }

code {
    color: #c02d76;
}

.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;
}
/*new one*/

:root{
    --fx-primary-orange:#FF7B53;
    --fx-secondary-orange:#FF9575;
    --fx-purple:#4B3E7B;
    --fx-dark:#2D2350;

    --fx-bg-1:#E8E5F0;
    --fx-bg-2:#F5F3F8;
    --fx-bg-3:#FFF5F0;
}

/* Global page background */
html, body{
    height:100%;
}

body{
    background: linear-gradient(135deg, var(--fx-bg-1) 0%, var(--fx-bg-2) 50%, var(--fx-bg-3) 100%);
}

/* Put Blazor app above the background */
#app{
    position:relative;
    z-index:1;
    min-height:100vh;
}

/* One-layer circle waves background (NO animation) */
.fx-bg{
    position:fixed;
    inset:0;
    z-index:0;
    overflow:hidden;
    pointer-events:none;
}

.fx-wave{
    position:absolute;
    width:200%;
    height:200%;
    top:-50%;
    left:-50%;
    opacity:.30;
}

.fx-wave.wave-1{
    background: repeating-radial-gradient(circle at 50% 50%,
    transparent 0px, transparent 30px,
    rgba(123,104,184,0.12) 32px, rgba(123,104,184,0.12) 34px);
}
.fx-wave.wave-2{
    background: repeating-radial-gradient(circle at 50% 50%,
    transparent 0px, transparent 40px,
    rgba(255,123,83,0.10) 42px, rgba(255,123,83,0.10) 44px);
}
.fx-wave.wave-3{
    background: repeating-radial-gradient(circle at 50% 50%,
    transparent 0px, transparent 50px,
    rgba(123,104,184,0.08) 52px, rgba(123,104,184,0.08) 54px);
}
