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

h1:focus {
    outline: none;
}

.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 {
    display: none;
    position: fixed !important;
    bottom: 2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    top: auto !important;
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    z-index: 100000 !important;

    background-color: rgba(45, 25, 25, 0.9) !important;
    backdrop-filter: blur(8px) !important;
    color: #f8d7da !important;
    padding: 8px 18px 8px 24px !important;
    border-radius: 50px !important;
    border: 1px solid rgba(255, 100, 100, 0.2) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;

    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-family: 'Aladin', cursive !important;
    white-space: nowrap !important;
}

#blazor-error-ui .error-text {
    margin: 0 12px 0 0 !important; /* Standardized gap */
    font-size: 1.1rem !important;
}

#blazor-error-ui .reload {
    display: inline-block !important;
    color: #fff !important;
    background-color: rgba(220, 53, 69, 0.4) !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    font-weight: bold !important;
    cursor: pointer !important;
    margin-right: 10px !important;
}

#blazor-error-ui .reload:hover {
    background-color: rgba(220, 53, 69, 0.7) !important;
}

#blazor-error-ui .dismiss {
    position: static !important;
    cursor: pointer !important;
    color: rgba(255, 255, 255, 0.3) !important;
    font-family: sans-serif !important;
    font-size: 0.9rem !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

#blazor-error-ui .dismiss:hover {
    color: #fff !important;
}

@keyframes fadeInLoader {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.loader-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: #373740;
    overflow: hidden;
}

.loader-ui {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    animation: fadeInLoader 0.4s ease-out forwards;
    animation-delay: 0.1s;
}

.progress-ring {
    position: absolute;
    width: 100%;
    height: 100%;
}

.progress-ring circle {
    fill: none;
    stroke-width: 4px;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.ring-bg {
    stroke: rgba(255, 255, 255, 0.05);
}

.ring-fill {
    stroke: url(#ring-gradient);
    stroke-linecap: round;

    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.1s ease-in-out;
}

.logo-text-container {
    position: relative;
    font-family: 'Aladin', cursive;
    font-size: 5rem;
    letter-spacing: 2px;
    margin-top: -5px;
    user-select: none;
}

.logo-text {
    margin: 0;
    padding: 0;
    line-height: 1;
    white-space: nowrap;
}

@keyframes bounceWave {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    30% {
        transform: translateY(-14px) scale(1.05);
    }
    60% {
        transform: translateY(0) scale(1);
    }
}

.logo-text span {
    display: inline-block;
    animation: bounceWave 1.2s infinite cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.logo-text span:nth-child(1) {
    animation-delay: 0.0s;
    color: #0fb537;
}

.logo-text span:nth-child(2) {
    animation-delay: 0.15s;
    color: #1bc88a;
}

.logo-text span:nth-child(3) {
    animation-delay: 0.3s;
    color: #0fb537;
}

.logo-text span:nth-child(4) {
    animation-delay: 0.45s;
    color: #1bc88a;
}

.logo-text span:nth-child(5) {
    animation-delay: 0.6s;
    color: #0fb537;
}

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

.mud-drop-item {
    touch-action: none;
}

.indicator-anchor {
    position: sticky;
    left: 0;
    width: 100%;
    height: 0;
    z-index: 1000;
    overflow: visible;
    pointer-events: none !important;
}

.indicator-anchor * {
    pointer-events: none !important;
}

.indicator-anchor.top {
    top: 0;
}

.indicator-anchor.bottom {
    bottom: 0;
}

.scroll-indicator {
    position: absolute;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

#main-scroll-container.is-dragging .scroll-indicator {
    opacity: 1;
}

.scroll-indicator.top {
    top: 0;
    background: linear-gradient(to bottom, var(--mud-palette-primary), transparent);
}

.scroll-indicator.bottom {
    bottom: 0;
    background: linear-gradient(to top, var(--mud-palette-primary), transparent);
}

#main-scroll-container.is-dragging * {
    cursor: grabbing !important;
}

#main-scroll-container.is-dragging {
    user-select: none !important;
    -webkit-user-select: none !important;
}

.show-only-in-export {
    display: none !important;
}