/* ============================================
   app.css — base styles for the WebSite
   ============================================ */

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Geist', system-ui, -apple-system, sans-serif;
    color: #1F1937;
    background: #FBF9F4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a, .btn-link {
    color: #6B21D6;
}

.btn-primary {
    color: #fff;
    background-color: #7C3AED;
    border-color: #6B21D6;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: #FFE6DD;
    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;
    color: #1F1937;
    font-size: 14px;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

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

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

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

code {
    color: #6B21D6;
}

::selection {
    background: #7C3AED;
    color: #fff;
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #F4F1FB; }
::-webkit-scrollbar-thumb { background: #C9B8EE; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #9676DA; }
