/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-1gwuln9bh4] {
    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-1gwuln9bh4] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-893817ldyn],
.components-reconnect-repeated-attempt-visible[b-893817ldyn],
.components-reconnect-failed-visible[b-893817ldyn],
.components-pause-visible[b-893817ldyn],
.components-resume-failed-visible[b-893817ldyn],
.components-rejoining-animation[b-893817ldyn] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-893817ldyn],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-893817ldyn],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-893817ldyn],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-893817ldyn],
#components-reconnect-modal.components-reconnect-retrying[b-893817ldyn],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-893817ldyn],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-893817ldyn],
#components-reconnect-modal.components-reconnect-failed[b-893817ldyn],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-893817ldyn] {
    display: block;
}


#components-reconnect-modal[b-893817ldyn] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-893817ldyn 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-893817ldyn 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-893817ldyn 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-893817ldyn]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-893817ldyn 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-893817ldyn {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-893817ldyn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-893817ldyn {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-893817ldyn] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-893817ldyn] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-893817ldyn] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-893817ldyn] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-893817ldyn] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-893817ldyn] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-893817ldyn] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-893817ldyn 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-893817ldyn] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-893817ldyn {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Shared/SocraticChat.razor.rz.scp.css */
/* Floating Action Button */
.socratic-fab[b-39kgc6by1b] {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    z-index: 1000;
}

.socratic-fab:hover[b-39kgc6by1b] {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.socratic-fab.hidden[b-39kgc6by1b] {
    display: none;
}

.socratic-fab svg[b-39kgc6by1b] {
    width: 24px;
    height: 24px;
}

.unread-badge[b-39kgc6by1b] {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

/* Chat Panel */
.socratic-chat-panel[b-39kgc6by1b] {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 550px;
    max-height: calc(100vh - 100px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    transform: scale(0);
    transform-origin: bottom right;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    overflow: hidden;
}

.socratic-chat-panel.expanded[b-39kgc6by1b] {
    transform: scale(1);
    opacity: 1;
}

/* Header */
.chat-header[b-39kgc6by1b] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.header-title[b-39kgc6by1b] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.header-title svg[b-39kgc6by1b] {
    width: 20px;
    height: 20px;
}

.header-actions[b-39kgc6by1b] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-badge[b-39kgc6by1b] {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.tier-selector[b-39kgc6by1b] {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

.tier-selector option[b-39kgc6by1b] {
    color: #333;
}

.icon-btn[b-39kgc6by1b] {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.icon-btn:hover[b-39kgc6by1b] {
    background: rgba(255, 255, 255, 0.2);
}

.icon-btn svg[b-39kgc6by1b] {
    width: 16px;
    height: 16px;
}

/* Messages Container */
.chat-messages[b-39kgc6by1b] {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.welcome-message[b-39kgc6by1b] {
    text-align: center;
    padding: 32px 16px;
    color: #64748b;
}

.welcome-icon[b-39kgc6by1b] {
    margin-bottom: 16px;
    color: #667eea;
}

.welcome-message h3[b-39kgc6by1b] {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 8px 0;
}

.welcome-message p[b-39kgc6by1b] {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Messages */
.message[b-39kgc6by1b] {
    max-width: 85%;
    animation: fadeIn-b-39kgc6by1b 0.2s ease;
}

@keyframes fadeIn-b-39kgc6by1b {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message[b-39kgc6by1b] {
    align-self: flex-end;
}

.assistant-message[b-39kgc6by1b] {
    align-self: flex-start;
}

.message-content[b-39kgc6by1b] {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-message .message-content[b-39kgc6by1b] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.assistant-message .message-content[b-39kgc6by1b] {
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.message-content code[b-39kgc6by1b] {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.typing-indicator[b-39kgc6by1b] {
    animation: blink-b-39kgc6by1b 1s infinite;
}

@keyframes blink-b-39kgc6by1b {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Loading Dots */
.loading-dots[b-39kgc6by1b] {
    display: flex;
    gap: 4px;
}

.loading-dots span[b-39kgc6by1b] {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: bounce-b-39kgc6by1b 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1)[b-39kgc6by1b] { animation-delay: -0.32s; }
.loading-dots span:nth-child(2)[b-39kgc6by1b] { animation-delay: -0.16s; }

@keyframes bounce-b-39kgc6by1b {
    0%, 80%, 100% { transform: scale(0.6); }
    40% { transform: scale(1); }
}

/* Action Confirmation */
.action-confirmation[b-39kgc6by1b] {
    margin-top: 8px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.action-confirmation.destructive[b-39kgc6by1b] {
    background: #fef2f2;
    border-color: #fecaca;
}

.action-header[b-39kgc6by1b] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.warning-icon[b-39kgc6by1b] {
    color: #ef4444;
}

.action-buttons[b-39kgc6by1b] {
    display: flex;
    gap: 8px;
}

.action-buttons button[b-39kgc6by1b] {
    flex: 1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-confirm[b-39kgc6by1b], .btn-execute[b-39kgc6by1b] {
    background: #667eea;
    color: white;
    border: none;
}

.btn-confirm:hover[b-39kgc6by1b], .btn-execute:hover[b-39kgc6by1b] {
    background: #5a6fd6;
}

.btn-cancel[b-39kgc6by1b] {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-cancel:hover[b-39kgc6by1b] {
    background: #f8fafc;
}

/* Input Area */
.chat-input[b-39kgc6by1b] {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.chat-input textarea[b-39kgc6by1b] {
    flex: 1;
    resize: none;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 10px 16px;
    font-size: 14px;
    font-family: inherit;
    max-height: 120px;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input textarea:focus[b-39kgc6by1b] {
    border-color: #667eea;
}

.chat-input textarea[b-39kgc6by1b]::placeholder {
    color: #94a3b8;
}

.send-btn[b-39kgc6by1b] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.send-btn:hover:not(:disabled)[b-39kgc6by1b] {
    transform: scale(1.05);
}

.send-btn:disabled[b-39kgc6by1b] {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-btn svg[b-39kgc6by1b] {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 480px) {
    .socratic-chat-panel[b-39kgc6by1b] {
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
        bottom: 16px;
        right: 16px;
    }

    .socratic-fab[b-39kgc6by1b] {
        bottom: 16px;
        right: 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .socratic-chat-panel[b-39kgc6by1b] {
        background: #1e293b;
    }

    .chat-messages[b-39kgc6by1b] {
        background: #0f172a;
    }

    .assistant-message .message-content[b-39kgc6by1b] {
        background: #334155;
        color: #e2e8f0;
        border-color: #475569;
    }

    .welcome-message[b-39kgc6by1b] {
        color: #94a3b8;
    }

    .welcome-message h3[b-39kgc6by1b] {
        color: #e2e8f0;
    }

    .chat-input[b-39kgc6by1b] {
        background: #1e293b;
        border-top-color: #334155;
    }

    .chat-input textarea[b-39kgc6by1b] {
        background: #0f172a;
        color: #e2e8f0;
        border-color: #334155;
    }

    .action-confirmation[b-39kgc6by1b] {
        background: #334155;
        border-color: #475569;
    }

    .action-confirmation.destructive[b-39kgc6by1b] {
        background: #450a0a;
        border-color: #7f1d1d;
    }

    .action-header[b-39kgc6by1b] {
        color: #94a3b8;
    }

    .btn-cancel[b-39kgc6by1b] {
        background: #334155;
        color: #e2e8f0;
        border-color: #475569;
    }
}
