/* /Shared/SocraticChat.razor.rz.scp.css */
/* Floating Action Button */
.socratic-fab[b-zl1hv05wnz] {
    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-zl1hv05wnz] {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.socratic-fab.hidden[b-zl1hv05wnz] {
    display: none;
}

.socratic-fab svg[b-zl1hv05wnz] {
    width: 24px;
    height: 24px;
}

.unread-badge[b-zl1hv05wnz] {
    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-zl1hv05wnz] {
    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-zl1hv05wnz] {
    transform: scale(1);
    opacity: 1;
}

/* Header */
.chat-header[b-zl1hv05wnz] {
    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-zl1hv05wnz] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.header-title svg[b-zl1hv05wnz] {
    width: 20px;
    height: 20px;
}

.header-actions[b-zl1hv05wnz] {
    display: flex;
    align-items: center;
    gap: 8px;
}

.context-badge[b-zl1hv05wnz] {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.tier-selector[b-zl1hv05wnz] {
    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-zl1hv05wnz] {
    color: #333;
}

.icon-btn[b-zl1hv05wnz] {
    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-zl1hv05wnz] {
    background: rgba(255, 255, 255, 0.2);
}

.icon-btn svg[b-zl1hv05wnz] {
    width: 16px;
    height: 16px;
}

/* Messages Container */
.chat-messages[b-zl1hv05wnz] {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #f8fafc;
}

.welcome-message[b-zl1hv05wnz] {
    text-align: center;
    padding: 32px 16px;
    color: #64748b;
}

.welcome-icon[b-zl1hv05wnz] {
    margin-bottom: 16px;
    color: #667eea;
}

.welcome-message h3[b-zl1hv05wnz] {
    font-size: 16px;
    font-weight: 600;
    color: #334155;
    margin: 0 0 8px 0;
}

.welcome-message p[b-zl1hv05wnz] {
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Messages */
.message[b-zl1hv05wnz] {
    max-width: 85%;
    animation: fadeIn-b-zl1hv05wnz 0.2s ease;
}

@keyframes fadeIn-b-zl1hv05wnz {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message[b-zl1hv05wnz] {
    align-self: flex-end;
}

.assistant-message[b-zl1hv05wnz] {
    align-self: flex-start;
}

.message-content[b-zl1hv05wnz] {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-message .message-content[b-zl1hv05wnz] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 4px;
}

.assistant-message .message-content[b-zl1hv05wnz] {
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 4px;
}

.message-content code[b-zl1hv05wnz] {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 13px;
}

.typing-indicator[b-zl1hv05wnz] {
    animation: blink-b-zl1hv05wnz 1s infinite;
}

@keyframes blink-b-zl1hv05wnz {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Loading Dots */
.loading-dots[b-zl1hv05wnz] {
    display: flex;
    gap: 4px;
}

.loading-dots span[b-zl1hv05wnz] {
    width: 8px;
    height: 8px;
    background: #94a3b8;
    border-radius: 50%;
    animation: bounce-b-zl1hv05wnz 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1)[b-zl1hv05wnz] { animation-delay: -0.32s; }
.loading-dots span:nth-child(2)[b-zl1hv05wnz] { animation-delay: -0.16s; }

@keyframes bounce-b-zl1hv05wnz {
    0%, 80%, 100% { transform: scale(0.6); }
    40% { transform: scale(1); }
}

/* Action Confirmation */
.action-confirmation[b-zl1hv05wnz] {
    margin-top: 8px;
    padding: 12px;
    background: #f1f5f9;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.action-confirmation.destructive[b-zl1hv05wnz] {
    background: #fef2f2;
    border-color: #fecaca;
}

.action-header[b-zl1hv05wnz] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #475569;
    margin-bottom: 8px;
}

.warning-icon[b-zl1hv05wnz] {
    color: #ef4444;
}

.action-buttons[b-zl1hv05wnz] {
    display: flex;
    gap: 8px;
}

.action-buttons button[b-zl1hv05wnz] {
    flex: 1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-confirm[b-zl1hv05wnz], .btn-execute[b-zl1hv05wnz] {
    background: #667eea;
    color: white;
    border: none;
}

.btn-confirm:hover[b-zl1hv05wnz], .btn-execute:hover[b-zl1hv05wnz] {
    background: #5a6fd6;
}

.btn-cancel[b-zl1hv05wnz] {
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.btn-cancel:hover[b-zl1hv05wnz] {
    background: #f8fafc;
}

/* Input Area */
.chat-input[b-zl1hv05wnz] {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

.chat-input textarea[b-zl1hv05wnz] {
    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-zl1hv05wnz] {
    border-color: #667eea;
}

.chat-input textarea[b-zl1hv05wnz]::placeholder {
    color: #94a3b8;
}

.send-btn[b-zl1hv05wnz] {
    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-zl1hv05wnz] {
    transform: scale(1.05);
}

.send-btn:disabled[b-zl1hv05wnz] {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-btn svg[b-zl1hv05wnz] {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 480px) {
    .socratic-chat-panel[b-zl1hv05wnz] {
        width: calc(100vw - 32px);
        height: calc(100vh - 120px);
        bottom: 16px;
        right: 16px;
    }

    .socratic-fab[b-zl1hv05wnz] {
        bottom: 16px;
        right: 16px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .socratic-chat-panel[b-zl1hv05wnz] {
        background: #1e293b;
    }

    .chat-messages[b-zl1hv05wnz] {
        background: #0f172a;
    }

    .assistant-message .message-content[b-zl1hv05wnz] {
        background: #334155;
        color: #e2e8f0;
        border-color: #475569;
    }

    .welcome-message[b-zl1hv05wnz] {
        color: #94a3b8;
    }

    .welcome-message h3[b-zl1hv05wnz] {
        color: #e2e8f0;
    }

    .chat-input[b-zl1hv05wnz] {
        background: #1e293b;
        border-top-color: #334155;
    }

    .chat-input textarea[b-zl1hv05wnz] {
        background: #0f172a;
        color: #e2e8f0;
        border-color: #334155;
    }

    .action-confirmation[b-zl1hv05wnz] {
        background: #334155;
        border-color: #475569;
    }

    .action-confirmation.destructive[b-zl1hv05wnz] {
        background: #450a0a;
        border-color: #7f1d1d;
    }

    .action-header[b-zl1hv05wnz] {
        color: #94a3b8;
    }

    .btn-cancel[b-zl1hv05wnz] {
        background: #334155;
        color: #e2e8f0;
        border-color: #475569;
    }
}
