﻿
.af-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2000;
    background: rgba(13,110,253,.15);
    overflow: hidden
}

.af-topbar-fill {
    height: 100%;
    width: 35%;
    background: #0d6efd;
    animation: af-slide 1.1s ease-in-out infinite
}

@keyframes af-slide {
    0% {
        margin-left: -35%
    }

    100% {
        margin-left: 100%
    }
}

.af-overlay {
    position: fixed;
    inset: 0;
    z-index: 1990;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(1px);
    display: flex;
    align-items: center;
    justify-content: center
}

.af-overlay-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 2.25rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,.12)
}

.af-toasts {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 2100;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: min(380px,92vw)
}

.af-toast {
    display: flex;
    align-items: center;
    color: #fff;
    border-radius: 8px;
    padding: .7rem .9rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.2);
    font-size: .9rem;
    animation: af-in .2s ease-out
}

.af-toast-success {
    background: #198754
}

.af-toast-info {
    background: #0d6efd
}

.af-toast-warning {
    background: #b7791f
}

.af-toast-error {
    background: #c0392b
}

@keyframes af-in {
    from {
        opacity: 0;
        transform: translateY(-6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.af-banner {
    position: sticky;
    top: 0;
    z-index: 1995;
    display: flex;
    align-items: center;
    background: #b02a37;
    color: #fff;
    padding: .55rem 1rem;
    font-size: .9rem
}

.af-error-card {
    max-width: 520px;
    margin: 2.5rem auto;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06)
}

.af-skel {
    padding: 1rem
}

.af-skel-row {
    height: 14px;
    margin-bottom: .85rem;
    border-radius: 6px;
    background: linear-gradient(90deg,#eceff3 25%,#f6f7f9 37%,#eceff3 63%);
    background-size: 400% 100%;
    animation: af-shimmer 1.3s ease infinite
}

@keyframes af-shimmer {
    0% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0 50%
    }
}
/* Blazor's built-in fallback banner (circuit crashed) - make it readable */
#blazor-error-ui {
    background: #fff3cd;
    color: #664d03;
    border-top: 2px solid #ffecb5;
    bottom: 0;
    display: none;
    left: 0;
    padding: .7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 3000
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: .75rem;
        top: .5rem
    }

@media (prefers-reduced-motion:reduce) {
    .af-topbar-fill, .af-skel-row {
        animation: none
    }
}
