/* ============================================
   ESTILOS DE CHAT - VIDEO INLINE
   ============================================ */

/* Contenedor de mensajes */
.chat-message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mensajes del usuario (izquierda) */
.chat-message.user {
    justify-content: flex-start;
}

/* Respuestas admin (derecha) */
.chat-message.admin {
    justify-content: flex-end;
}

/* Burbuja de mensaje */
.chat-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 18px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Burbuja usuario */
.chat-message.user .chat-bubble {
    background-color: #ffffff;
    border-bottom-left-radius: 4px;
}

/* Burbuja admin */
.chat-message.admin .chat-bubble {
    background-color: #1a5259;
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* Contenido del mensaje */
.chat-content {
    word-wrap: break-word;
    line-height: 1.5;
}

/* Metadata del mensaje */
.chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 0.75rem;
}

.chat-message.user .chat-meta {
    color: #6c757d;
}

.chat-message.admin .chat-meta {
    color: rgba(255,255,255,0.8);
    justify-content: flex-end;
}

/* Botón de video */
.btn-video-chat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    margin-top: 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.chat-message.user .btn-video-chat {
    background-color: #e9ecef;
    color: #1a5259;
    border: 1px solid #dee2e6;
}

.chat-message.user .btn-video-chat:hover {
    background-color: #dee2e6;
    border-color: #1a5259;
}

.chat-message.admin .btn-video-chat {
    background-color: rgba(255,255,255,0.2);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.3);
}

.chat-message.admin .btn-video-chat:hover {
    background-color: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
}

/* Badge de estado */
.chat-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 8px;
}

/* Separador de fecha */
.chat-date-separator {
    text-align: center;
    margin: 30px 0 20px 0;
    position: relative;
}

.chat-date-separator span {
    background-color: #6c757d;
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-block;
}

/* Animación de blink para grabación */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.blink {
    animation: blink 1.5s infinite;
}

/* Scrollbar personalizado */
#hiloContenedor::-webkit-scrollbar {
    width: 8px;
}

#hiloContenedor::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#hiloContenedor::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#hiloContenedor::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.video-inline-wrapper {
    max-width: 260px;
    aspect-ratio: 16 / 9;
}

.video-element-chat {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
