﻿@font-face {
    font-family: CustomFont;
    src: url("../assets/fonts/Sora-VariableFont_wght.ttf");
    font-display: swap;
    font-weight: 100 1000;
    font-stretch: 25% 151%
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    /* Optional: subtle blur behind (supported browsers only) */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Center card */
.loading-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 22px 24px;
    min-width: 170px;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.55);
    border-radius: 18px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.25), 0 2px 10px rgba(0,0,0,0.12);
}

/* The spinner */
.spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid rgba(0,0,0,0.12);
    border-top-color: rgba(0,0,0,0.75);
    animation: spin 0.9s linear infinite;
}

.loading-text {
    font: 500 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: rgba(0,0,0,0.68);
    letter-spacing: 0.2px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Optional: respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .spinner {
        animation: none;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: CustomFont,sans-serif
}

body, html {
    touch-action: manipulation;
    background-color: #f7f8fa;
    height: 100%;
    text-size-adjust: none;
    -webkit-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -moz-text-size-adjust: none
}

#app, .content, .page {
    width: 100%;
    height: 100%
}

.skeleton-shadow {
    background-color: #444;
    min-height: 12px;
    border-radius: 5px;
    opacity: .1;
    min-width: 10px;
    animation: 1.5s infinite fading
}

@keyframes fading {
    0%,100% {
        opacity: .1
    }

    50% {
        opacity: .2
    }
}

.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

.cursor-pointer {
    cursor: pointer
}

ol {
    list-style: none
}

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

::-webkit-scrollbar-track {
    background: 0 0
}

::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: var(--primary-muted)
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--primary)
    }

@media only screen and (max-width:768px) {
    _::-webkit-full-page-media, _:future, :root .safari_only {
        padding-bottom: 65px
    }
}

.validation-message {
    color: var(--error);
    font-size: 12px
}

#blazor-error-ui {
    background: #ffffe0;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000
}

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


.btn-icon {
    border: none;
    outline: none;
    font-size: 24px;
    cursor:pointer;
}

.w-100 {
    width:100% !important;
}