@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

html,
body {
    font-family: 'Helvetica Neue', Helvetica, Arial, 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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYw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MSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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

/* ReplyPage Custom Loader - Brand-Aligned */

.replypage-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f5f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

/* Soft brand-tinted orbs on white background */
.replypage-loader::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(91, 106, 240, 0.08) 0%, transparent 65%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
    pointer-events: none;
}

.replypage-loader::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(123, 143, 255, 0.07) 0%, transparent 65%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    pointer-events: none;
}

.loader-content {
    text-align: center;
    color: #1a2458;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

/* --- Logo Icon Animation --- */
.logo-animation {
    position: relative;
    margin: 0 auto 20px;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: iconFloat 3s ease-in-out infinite;
}

/* Glow ring around icon */
.logo-animation::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 30px;
    background: radial-gradient(circle, rgba(91, 106, 240, 0.12) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out infinite;
}

.brand-icon {
    width: 100px;
    height: 100px;
    filter: drop-shadow(0 6px 18px rgba(91, 106, 240, 0.25));
}

/* Outer bubble: gentle scale pulse */
.brand-icon .bubble-outer {
    animation: bubblePulse 2s ease-in-out infinite;
    transform-origin: 50px 46px;
}

/* Checkmark stroke draw animation */
.brand-icon .check-mark {
    stroke-dasharray: 60;
    stroke-dashoffset: 60;
    animation: drawCheck 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s infinite alternate;
}

@keyframes drawCheck {
    0% {
        stroke-dashoffset: 60;
        opacity: 0.4;
    }
    60% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
    100% {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes bubblePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.08);
    }
}

/* --- Brand Wordmark --- */
.loader-brand {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 28px;
    animation: fadeSlideUp 0.6s ease-out 0.1s both;
}

.brand-reply {
    color: #1a2458;
}

.brand-page {
    color: #5B6AF0;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Progress Bar --- */
.loader-bar {
    width: 220px;
    height: 4px;
    background: rgba(91, 106, 240, 0.12);
    border-radius: 99px;
    margin: 0 auto 16px;
    overflow: hidden;
    animation: fadeSlideUp 0.6s ease-out 0.2s both;
    position: relative;
}

.loader-bar-fill {
    height: 100%;
    width: 5%;
    background: linear-gradient(90deg, #5B6AF0, #7B8FFF);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* --- Loader Text --- */
.loader-text {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    color: rgba(26, 36, 88, 0.45);
    margin: 0;
    letter-spacing: 0.5px;
    animation: fadeSlideUp 0.6s ease-out 0.3s both;
}



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