/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
#components-reconnect-modal[b-12pvq85s3n] {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1400;
    overflow: hidden;
    background-color: transparent;
    border: none;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
}

    #components-reconnect-modal[b-12pvq85s3n]::backdrop {
        background: rgba(10, 16, 28, 0.5);
    }

    #components-reconnect-modal.components-reconnect-show[b-12pvq85s3n],
    #components-reconnect-modal[open][b-12pvq85s3n],
    #components-reconnect-modal.components-reconnect-failed[b-12pvq85s3n],
    #components-reconnect-modal.components-reconnect-repeated-attempt[b-12pvq85s3n],
    #components-reconnect-modal.components-reconnect-paused[b-12pvq85s3n],
    #components-reconnect-modal.components-reconnect-resume-failed[b-12pvq85s3n],
    #components-reconnect-modal.components-pause[b-12pvq85s3n],
    #components-reconnect-modal.components-resume-failed[b-12pvq85s3n] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.components-reconnect-backdrop[b-12pvq85s3n] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(90% 60% at 80% 0%, color-mix(in srgb, var(--mud-palette-primary, #594AE2) 12%, transparent), transparent 60%), radial-gradient(80% 55% at 0% 100%, color-mix(in srgb, var(--mud-palette-info, #2196f3) 16%, transparent), transparent 62%), rgba(8, 12, 20, 0.5);
}

.components-reconnect-surface[b-12pvq85s3n] {
    width: min(480px, 100%);
    border-radius: var(--mud-default-borderradius, 12px);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default, #e0e0e0) 70%, transparent);
    background: var(--mud-palette-surface, #fff);
    box-shadow: var(--mud-elevation-24, 0 16px 30px rgba(0, 0, 0, 0.28));
    color: var(--mud-palette-text-primary, #1f2937);
    padding: 20px 20px 18px;
}

.components-reconnect-header[b-12pvq85s3n] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

    .components-reconnect-header h2[b-12pvq85s3n] {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.3;
    }

.components-reconnect-status-dot[b-12pvq85s3n] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mud-palette-warning, #f59e0b);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--mud-palette-warning, #f59e0b) 25%, transparent);
}

.components-reconnect-supporting[b-12pvq85s3n],
.components-reconnect-message[b-12pvq85s3n] {
    margin: 0;
    line-height: 1.45;
    font-size: 0.95rem;
}

.components-reconnect-supporting[b-12pvq85s3n] {
    color: var(--mud-palette-text-secondary, #52607a);
    margin-bottom: 14px;
}

.components-reconnect-message[b-12pvq85s3n] {
    font-weight: 500;
}

.components-reconnect-danger[b-12pvq85s3n] {
    color: var(--mud-palette-error, #b00020);
}

.components-reconnect-actions[b-12pvq85s3n] {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.components-reconnect-first-attempt-visible[b-12pvq85s3n],
.components-reconnect-repeated-attempt-visible[b-12pvq85s3n],
.components-reconnect-failed-visible[b-12pvq85s3n],
.components-pause-visible[b-12pvq85s3n],
.components-resume-failed-visible[b-12pvq85s3n] {
    display: none;
}

dialog[open].components-reconnect-show .components-reconnect-first-attempt-visible[b-12pvq85s3n] {
    display: block;
}

dialog[open].components-reconnect-show .components-rejoin-loader[b-12pvq85s3n] {
    display: inline-flex;
}

dialog[open].components-reconnect-failed .components-reconnect-failed-visible[b-12pvq85s3n] {
    display: block;
}

dialog[open].components-reconnect-failed #components-reconnect-button[b-12pvq85s3n] {
    display: block;
}

dialog[open].components-reconnect-repeated-attempt .components-reconnect-repeated-attempt-visible[b-12pvq85s3n] {
    display: block;
}

dialog[open].components-reconnect-repeated-attempt .components-rejoin-loader[b-12pvq85s3n] {
    display: inline-flex;
}

dialog[open].components-reconnect-paused .components-pause-visible[b-12pvq85s3n],
dialog[open].components-pause .components-pause-visible[b-12pvq85s3n] {
    display: block;
}

dialog[open].components-reconnect-paused #components-resume-button[b-12pvq85s3n],
dialog[open].components-pause #components-resume-button[b-12pvq85s3n],
dialog[open].components-reconnect-resume-failed #components-resume-button[b-12pvq85s3n],
dialog[open].components-resume-failed #components-resume-button[b-12pvq85s3n] {
    display: block;
}

dialog[open].components-reconnect-resume-failed .components-resume-failed-visible[b-12pvq85s3n],
dialog[open].components-resume-failed .components-resume-failed-visible[b-12pvq85s3n] {
    display: block;
}

.components-rejoin-loader[b-12pvq85s3n] {
    display: none;
    margin-bottom: 10px;
    gap: 8px;
}

    .components-rejoin-loader div[b-12pvq85s3n] {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-color: var(--mud-palette-primary, #594AE2);
        animation: reconnect-pulse-b-12pvq85s3n 1.2s infinite ease-in-out both;
    }

        .components-rejoin-loader div:nth-child(1)[b-12pvq85s3n] {
            animation-delay: -0.24s;
        }

        .components-rejoin-loader div:nth-child(2)[b-12pvq85s3n] {
            animation-delay: -0.12s;
        }

@keyframes reconnect-pulse-b-12pvq85s3n {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

#components-reconnect-button[b-12pvq85s3n],
#components-resume-button[b-12pvq85s3n] {
    display: none;
    min-width: 92px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: var(--mud-palette-primary, #594AE2);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    transition: filter 140ms ease, transform 140ms ease;
}

    #components-reconnect-button:hover[b-12pvq85s3n],
    #components-resume-button:hover[b-12pvq85s3n] {
        filter: brightness(0.95);
    }

    #components-reconnect-button:active[b-12pvq85s3n],
    #components-resume-button:active[b-12pvq85s3n] {
        transform: translateY(1px);
    }

@media (max-width: 600px) {
    .components-reconnect-backdrop[b-12pvq85s3n] {
        padding: 14px;
    }

    .components-reconnect-surface[b-12pvq85s3n] {
        padding: 16px;
    }
}
/* /Components/Pages/FileExplorer/FileExplorerPage.razor.rz.scp.css */
.drag-over[b-m4hbpwds66] {
    background-color: rgba(33, 150, 243, 0.2) !important;
    outline: 2px dashed #2196F3 !important;
    outline-offset: -2px;
}

tr[draggable=true][b-m4hbpwds66] {
    cursor: grab;
}

tr[draggable=true]:active[b-m4hbpwds66] {
    cursor: grabbing;
    opacity: 0.7;
}
/* /Components/Pages/GestioneLezioni/Wizard/WizardRoleplayPage.razor.rz.scp.css */
/* ── Layout principale ──────────────────────────────────────────────────────── */

.wiz-container[b-9iuirgpo2s] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    padding: 16px;
    gap: 10px;
}

/* ── Header ─────────────────────────────────────────────────────────────────── */

[b-9iuirgpo2s] .wiz-header {
    flex-shrink: 0;
    padding: 10px 16px;
}

/* ── Loading ────────────────────────────────────────────────────────────────── */

.wiz-loading[b-9iuirgpo2s] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Body (chat) ────────────────────────────────────────────────────────────── */

.wiz-body[b-9iuirgpo2s] {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
}

/* ── Storico conversazione ──────────────────────────────────────────────────── */

[b-9iuirgpo2s] .wiz-chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 0;
}

.wiz-chat-empty[b-9iuirgpo2s] {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
}

/* ── Bubble messaggi ────────────────────────────────────────────────────────── */

.wiz-msg-row[b-9iuirgpo2s] {
    display: flex;
    margin-bottom: 12px;
}

.wiz-msg-row--utente[b-9iuirgpo2s] {
    justify-content: flex-end;
}

.wiz-msg-row--ai[b-9iuirgpo2s] {
    justify-content: flex-start;
}

.wiz-msg-bubble[b-9iuirgpo2s] {
    padding: 10px 14px;
    max-width: 75%;
    word-break: break-word;
    line-height: 1.5;
    font-size: 0.9rem;
}

.wiz-msg-bubble[b-9iuirgpo2s]  ol,
.wiz-msg-bubble[b-9iuirgpo2s]  ul {
    margin: 6px 0 2px 0;
    padding-left: 1.4em;
}

.wiz-msg-bubble[b-9iuirgpo2s]  li {
    margin-bottom: 4px;
    padding-left: 0.2em;
}

.wiz-msg-bubble--utente[b-9iuirgpo2s] {
    background: var(--mud-palette-primary);
    color: #fff;
    border-radius: 16px 16px 4px 16px;
}

.wiz-msg-bubble--ai[b-9iuirgpo2s] {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px 16px 16px 4px;
}


/* ── Area input ─────────────────────────────────────────────────────────────── */

.wiz-input-area[b-9iuirgpo2s] {
    flex-shrink: 0;
}

/* ── Riepilogo parametri (al termine wizard) ────────────────────────────────── */

[b-9iuirgpo2s] .wiz-summary {
    flex-shrink: 0;
}

.wiz-input-row[b-9iuirgpo2s] {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.wiz-textarea[b-9iuirgpo2s] {
    flex: 1;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-family: Roboto, sans-serif;
    line-height: 1.5;
    border: 1px solid rgba(128, 128, 128, 0.4);
    border-radius: 8px;
    resize: none;
    background: transparent;
    color: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.wiz-textarea:focus[b-9iuirgpo2s] {
    border-color: var(--mud-palette-primary);
}

.wiz-textarea:disabled[b-9iuirgpo2s] {
    opacity: 0.4;
    cursor: not-allowed;
}

.wiz-send-col[b-9iuirgpo2s] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    flex-shrink: 0;
}

[b-9iuirgpo2s] .wiz-send-btn {
    min-width: 80px;
}

[b-9iuirgpo2s] .wiz-keyboard-hint {
    color: #bdbdbd;
    font-size: 0.62rem;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
}
/* /Components/Pages/Simulator/Simulator.razor.rz.scp.css */
/* ============================================================================
   Simulator.razor.css — Stili scopati del simulatore di roleplay.

   CSS isolation Blazor: ogni selettore viene scopato automaticamente con un
   attributo univoco (b-xxxxxxxx) sugli elementi HTML nativi del componente.

   NOTA: per raggiungere elementi interni di componenti figli (MudBlazor)
   occorre usare ::deep, che genera [b-xxxx] .classe invece di .classe[b-xxxx].
   ============================================================================ */


/* ── Layout principale ──────────────────────────────────────────────────────── */

.sim-container[b-o1jql28g0u] {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    padding: 16px;
    gap: 8px;
}


/* ── Barra controlli ────────────────────────────────────────────────────────── */

[b-o1jql28g0u] .sim-toolbar {
    flex-shrink: 0;
    padding: 8px 16px;
}

.sim-toolbar-inner[b-o1jql28g0u] {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Contatori token */

[b-o1jql28g0u] .sim-token-stack {
    line-height: 1.6;
    font-size: 0.68rem;
    white-space: nowrap;
}

[b-o1jql28g0u] .sim-token-header {
    color: #bdbdbd;
    font-size: 0.62rem;
    white-space: nowrap;
}

[b-o1jql28g0u] .sim-token-last {
    color: #9e9e9e;
    font-size: 0.68rem;
    white-space: nowrap;
}

[b-o1jql28g0u] .sim-token-total {
    color: #7e57c2;
    font-size: 0.68rem;
    white-space: nowrap;
}


/* ── Area principale ────────────────────────────────────────────────────────── */

.sim-main[b-o1jql28g0u] {
    flex: 1;
    min-height: 0;
}

[b-o1jql28g0u] .sim-grid {
    height: 100%;
}


/* ── Pannello avatar ────────────────────────────────────────────────────────── */

[b-o1jql28g0u] .sim-avatar-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.sim-video-wrapper[b-o1jql28g0u] {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.sim-video[b-o1jql28g0u] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sim-video-overlay[b-o1jql28g0u] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ── Pannello chat ──────────────────────────────────────────────────────────── */

[b-o1jql28g0u] .sim-chat-panel {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Scenario iniziale */

.sim-scenario-container[b-o1jql28g0u] {
    flex-shrink: 0;
}

[b-o1jql28g0u] .sim-scenario-label {
    color: #757575;
    font-weight: 600;
    margin-bottom: 3px;
    display: block;
}

.sim-scenario-textarea[b-o1jql28g0u] {
    width: 100%;
    padding: 8px 12px;
    font-size: 0.8rem;
    font-family: Roboto, sans-serif;
    line-height: 1.5;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    resize: none;
    background: rgba(0, 0, 0, 0.03);
    color: inherit;
    outline: none;
    box-sizing: border-box;
    cursor: default;
}

/* Storico conversazione */

[b-o1jql28g0u] .sim-chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    min-height: 0;
}

.sim-chat-empty[b-o1jql28g0u] {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Bubble messaggi */

.sim-msg-row[b-o1jql28g0u] {
    display: flex;
    margin-bottom: 10px;
}

.sim-msg-row--utente[b-o1jql28g0u] {
    justify-content: flex-end;
}

.sim-msg-row--ai[b-o1jql28g0u] {
    justify-content: flex-start;
}

.sim-msg-bubble[b-o1jql28g0u] {
    padding: 8px 12px;
    max-width: 85%;
    white-space: pre-wrap;
    word-break: break-word;
}

.sim-msg-bubble--utente[b-o1jql28g0u] {
    background: var(--mud-palette-primary);
    color: #fff;
    border-radius: 12px 12px 2px 12px;
}

.sim-msg-bubble--ai[b-o1jql28g0u] {
    background: #fff;
    color: #000;
    border: 1px solid #e0e0e0;
    border-radius: 12px 12px 12px 2px;
}

.sim-loading-row[b-o1jql28g0u] {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}


/* ── Area input ─────────────────────────────────────────────────────────────── */

.sim-input-area[b-o1jql28g0u] {
    flex-shrink: 0;
}

.sim-input-row[b-o1jql28g0u] {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.sim-textarea[b-o1jql28g0u] {
    flex: 1;
    padding: 8px 12px;
    font-size: 0.875rem;
    font-family: Roboto, sans-serif;
    line-height: 1.5;
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    resize: none;
    background: transparent;
    color: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out;
}

.sim-send-col[b-o1jql28g0u] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    flex-shrink: 0;
}

[b-o1jql28g0u] .sim-send-btn {
    min-width: 72px;
}

[b-o1jql28g0u] .sim-keyboard-hint {
    color: #bdbdbd;
    font-size: 0.62rem;
    line-height: 1.4;
    white-space: nowrap;
    text-align: center;
}


/* ── Bottone PTT (Push-to-Talk) ─────────────────────────────────────────────── */

.sim-ptt-btn[b-o1jql28g0u] {
    min-width: 72px;
    padding: 6px 12px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: Roboto, sans-serif;
    letter-spacing: 0.02857em;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--mud-palette-secondary);
    color: #fff;
    transition: background-color 0.2s ease, transform 0.1s ease;
    user-select: none;          /* evita selezione testo al mousedown lungo */
    touch-action: none;         /* disabilita scroll/zoom su touch — necessario per pointerdown */
}

.sim-ptt-btn:hover:not(:disabled)[b-o1jql28g0u] {
    background-color: var(--mud-palette-secondary-darken);
}

.sim-ptt-btn:disabled[b-o1jql28g0u] {
    background-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.26);
    cursor: not-allowed;
}

/* Stato attivo (tasto premuto): sfondo rosso + leggero scale */
.sim-ptt-btn--active[b-o1jql28g0u] {
    background-color: #e53935 !important;
    transform: scale(0.97);
}

/* Pallino rosso lampeggiante durante la registrazione */
.sim-ptt-rec[b-o1jql28g0u] {
    color: #fff;
    animation: ptt-blink-b-o1jql28g0u 0.8s step-start infinite;
}

@keyframes ptt-blink-b-o1jql28g0u {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}
/* /Components/Shared/AiTypingIndicator.razor.rz.scp.css */
.ai-typing-row[b-09g9znfor3] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-typing-text[b-09g9znfor3] {
    font-style: italic;
    opacity: 0.75;
    font-size: 0.88rem;
    transition: opacity 0.2s ease;
}
