/**
 * Estilos del widget flotante del agente conversacional.
 * Solo se carga en el dashboard junto con el parcial del chat.
 */

.agente-chat-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    padding: 0;
}

.agente-chat-panel {
    position: fixed;
    right: 1.25rem;
    bottom: 5rem;
    z-index: 1040;
    width: min(380px, calc(100vw - 2rem));
    height: min(520px, calc(100vh - 7rem));
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    overflow: hidden;
}

.agente-chat-panel.d-none {
    display: none !important;
}

.agente-chat-messages {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agente-chat-bubble {
    max-width: 85%;
    padding: 0.65rem 0.85rem;
    border-radius: 0.75rem;
    font-size: 0.925rem;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
}

.agente-chat-bubble-bot {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e9ecef;
    color: #212529;
}

.agente-chat-bubble-user {
    align-self: flex-end;
    background: #0d6efd;
    color: #ffffff;
}

.agente-chat-bubble-error {
    align-self: stretch;
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    font-size: 0.85rem;
}
