/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-tj456nnz73] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-tj456nnz73] {
    flex: 1;
}

.sidebar[b-tj456nnz73] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-tj456nnz73] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-tj456nnz73]  a, .top-row[b-tj456nnz73]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-tj456nnz73]  a:hover, .top-row[b-tj456nnz73]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-tj456nnz73]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-tj456nnz73] {
        justify-content: space-between;
    }

    .top-row[b-tj456nnz73]  a, .top-row[b-tj456nnz73]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-tj456nnz73] {
        flex-direction: row;
    }

    .sidebar[b-tj456nnz73] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-tj456nnz73] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-tj456nnz73]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-tj456nnz73], article[b-tj456nnz73] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-tj456nnz73] {
    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[b-tj456nnz73] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/*
    Tycoonist-Style für den Blazor-Reconnect-Dialog.

    Hinweis: Diese Datei wird von Blazor-CSS-Isolation umgeschrieben, ABER der
    Inhalt des <dialog> wird von Blazor-Runtime selbst manipuliert (id-basiert,
    siehe Components.Server.LowLevel) — die Scope-Attribute fehlen darauf. Deshalb
    sind alle Selektoren bewusst id-basiert (#components-reconnect-modal …), damit
    sie überhaupt greifen.

    Farben aus tailwind.config.js gespiegelt (ink/cash/lime/rose), damit Light/Dark-
    Themes konsistent bleiben — keine Tailwind-Klassen, weil Blazor das Markup vor
    dem Style-Pipeline rendert.
*/

/* — Visibility-Toggle (Blazor steuert via classList .components-reconnect-show etc.) — */
.components-reconnect-first-attempt-visible[b-377ycmmuoe],
.components-reconnect-repeated-attempt-visible[b-377ycmmuoe],
.components-reconnect-failed-visible[b-377ycmmuoe],
.components-pause-visible[b-377ycmmuoe],
.components-resume-failed-visible[b-377ycmmuoe],
.components-rejoining-animation[b-377ycmmuoe] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-377ycmmuoe],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-377ycmmuoe],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-377ycmmuoe],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-377ycmmuoe],
#components-reconnect-modal.components-reconnect-retrying[b-377ycmmuoe],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-377ycmmuoe],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-377ycmmuoe],
#components-reconnect-modal.components-reconnect-failed[b-377ycmmuoe],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-377ycmmuoe] {
    display: block;
}

/* — Dialog Card — */
#components-reconnect-modal[b-377ycmmuoe] {
    /* Tycoonist .card-Look: dunkles Panel, weicher Glow, Gold-Akzent */
    background: linear-gradient(180deg, #11172A 0%, #0A0E1A 100%); /* ink-800 → ink-900 */
    color: #ffffff;
    font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
    width: min(26rem, calc(100vw - 2rem));
    margin: 18vh auto;
    padding: 2rem 1.75rem 1.75rem;
    border: 0;
    border-radius: 1.25rem; /* matches rounded-2xl */
    box-shadow:
        0 0 0 1px rgba(245, 158, 11, 0.18),   /* cash-500 hairline */
        0 20px 60px -10px rgba(0, 0, 0, 0.75),
        0 8px 24px -4px rgba(245, 158, 11, 0.18); /* warm gold glow */
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: tyc-reconnect-fade-out-b-377ycmmuoe 0.4s both;
}

#components-reconnect-modal[open][b-377ycmmuoe] {
    animation:
        tyc-reconnect-slide-up-b-377ycmmuoe 1.2s cubic-bezier(.05, .89, .25, 1.02) 0.2s,
        tyc-reconnect-fade-in-b-377ycmmuoe 0.45s ease-in-out 0.2s;
    animation-fill-mode: both;
}

#components-reconnect-modal[b-377ycmmuoe]::backdrop {
    background: rgba(6, 8, 15, 0.78); /* ink-950 mit blur */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: tyc-reconnect-fade-in-b-377ycmmuoe 0.4s ease-in-out;
    opacity: 1;
}

/* — Container Layout — */
.components-reconnect-container[b-377ycmmuoe] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* — Headline — */
#components-reconnect-modal .tyc-reconnect-title[b-377ycmmuoe] {
    margin: 0;
    font-family: 'Bricolage Grotesque', 'Geist', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-align: center;
}

/* — Body-Text — */
#components-reconnect-modal p[b-377ycmmuoe] {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* — Sekunden-Counter im Repeat-Attempt-Text als Akzent — */
#components-reconnect-modal #components-seconds-to-next-attempt[b-377ycmmuoe] {
    color: #FBBF24; /* cash-400 */
    font-weight: 600;
    font-feature-settings: "tnum" 1, "lnum" 1;
}

/* — Failed-State: rote Tönung — */
#components-reconnect-modal.components-reconnect-failed .tyc-reconnect-title[b-377ycmmuoe],
#components-reconnect-modal.components-reconnect-resume-failed .tyc-reconnect-title[b-377ycmmuoe] {
    color: #FB7185; /* rose-400 */
}
#components-reconnect-modal.components-reconnect-failed .tyc-reconnect-logo[b-377ycmmuoe],
#components-reconnect-modal.components-reconnect-resume-failed .tyc-reconnect-logo[b-377ycmmuoe] {
    filter: grayscale(0.4);
}

/* — Icon — */
#components-reconnect-modal .tyc-reconnect-logo[b-377ycmmuoe] {
    font-size: 2.25rem;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.35));
    animation: tyc-reconnect-pulse-b-377ycmmuoe 2.2s ease-in-out infinite;
}

/* — Buttons — */
#components-reconnect-modal button[b-377ycmmuoe] {
    margin-top: 0.5rem;
    border: 0;
    background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%); /* cash-500 → cash-600 */
    color: #1A1208;
    font-family: 'Geist', ui-sans-serif, system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    border-radius: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.15) inset,
                0 4px 12px -2px rgba(245, 158, 11, 0.45);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

#components-reconnect-modal button:hover[b-377ycmmuoe] {
    filter: brightness(1.07);
    transform: translateY(-1px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset,
                0 6px 16px -2px rgba(245, 158, 11, 0.55);
}

#components-reconnect-modal button:active[b-377ycmmuoe] {
    transform: translateY(0);
    filter: brightness(0.95);
}

#components-reconnect-modal button:focus-visible[b-377ycmmuoe] {
    outline: 2px solid #FBBF24;
    outline-offset: 2px;
}

/* — Spinner-Animation: Ring statt expandierende Kreise, dezenter — */
.components-rejoining-animation[b-377ycmmuoe] {
    position: relative;
    width: 56px;
    height: 56px;
}

.components-rejoining-animation div[b-377ycmmuoe] {
    position: absolute;
    inset: 0;
    border: 3px solid transparent;
    border-top-color: #F59E0B; /* cash-500 */
    border-right-color: #FBBF24; /* cash-400 */
    border-radius: 50%;
    animation: tyc-reconnect-spin-b-377ycmmuoe 1.1s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-377ycmmuoe] {
    inset: 8px;
    border-top-color: rgba(163, 230, 53, 0.7); /* lime-400 trace */
    border-right-color: transparent;
    border-left-color: rgba(163, 230, 53, 0.4);
    animation-direction: reverse;
    animation-duration: 1.4s;
}

/* — Keyframes — */
@keyframes tyc-reconnect-spin-b-377ycmmuoe {
    to { transform: rotate(360deg); }
}

@keyframes tyc-reconnect-pulse-b-377ycmmuoe {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.08); opacity: 0.85; }
}

@keyframes tyc-reconnect-slide-up-b-377ycmmuoe {
    0%   { transform: translateY(24px) scale(0.96); }
    100% { transform: translateY(0)    scale(1); }
}

@keyframes tyc-reconnect-fade-in-b-377ycmmuoe {
    from { opacity: 0; } to { opacity: 1; }
}

@keyframes tyc-reconnect-fade-out-b-377ycmmuoe {
    from { opacity: 1; } to { opacity: 0; }
}

/* Reduced-motion-Respekt: keine Spin/Pulse-Animationen */
@media (prefers-reduced-motion: reduce) {
    .components-rejoining-animation div[b-377ycmmuoe],
    #components-reconnect-modal .tyc-reconnect-logo[b-377ycmmuoe],
    #components-reconnect-modal[b-377ycmmuoe],
    #components-reconnect-modal[open][b-377ycmmuoe] {
        animation: none !important;
    }
}
