﻿/* Estilos para Soportin AI - Sistema CST-ERP */

.soportin-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Botón Flotante */
.soportin-launcher {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), inset 0 2px 2px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.soportin-launcher:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.4);
}

.soportin-launcher i {
    font-size: 28px;
    color: white;
}

/* Ventana de Chat */
.soportin-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
    display: none; /* Oculto por defecto */
    transform-origin: bottom right;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.8) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Cabecera */
.soportin-header {
    background: rgba(30, 41, 59, 0.5);
    padding: 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.soportin-avatar {
    width: 40px;
    height: 40px;
    background: #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: white;
    font-size: 20px;
}

.soportin-status {
    flex-grow: 1;
}

.soportin-status h4 {
    margin: 0;
    font-size: 14px;
    color: white;
    font-weight: 600;
}

.soportin-status span {
    font-size: 11px;
    color: #10b981;
    display: flex;
    align-items: center;
}

.soportin-status span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    margin-right: 5px;
}

/* Área de Mensajes */
.soportin-messages {
    flex-grow: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.soportin-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}

.message-bot {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.message-bot strong, .message-bot b {
    color: #fef08a; /* Amarillo Pastel para datos dinámicos */
}

.message-user {
    align-self: flex-end;
    background: #3b82f6;
    color: white;
    border-bottom-right-radius: 2px;
}

/* Input Area */
.soportin-input-area {
    padding: 16px;
    background: rgba(30, 41, 59, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.soportin-input-wrapper {
    display: flex;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 5px 5px 5px 15px;
    align-items: center;
}

.soportin-input-wrapper input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 13px;
    outline: none;
    padding: 8px 0;
}

.soportin-send {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    border: none;
    transition: 0.2s;
}

.soportin-send:hover {
    background: #2563eb;
    transform: scale(1.1);
}

/* Scrollbar */
.soportin-messages::-webkit-scrollbar {
    width: 4px;
}
.soportin-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

/* Chips y Botones Rápidos Interactivos */
.soportin-chips {
    margin-top: 6px;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 12px;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.soportin-chip {
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.soportin-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
