/**
 * Estilos para el sistema de procesamiento asíncrono
 * WP Travel Chatbot
 */

/* Contenedor del mensaje de procesamiento */
.wptc-processing-message {
    position: relative;
    padding: 15px;
    border-radius: 10px;
    background-color: #f5f9ff;
    border-left: 4px solid #4a90e2;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

/* Estados diferentes */
.wptc-processing-message.pending {
    border-left-color: #f5a623;
    background-color: #fffaf0;
}

.wptc-processing-message.processing {
    border-left-color: #4a90e2;
    background-color: #f5f9ff;
}

.wptc-processing-message.error {
    border-left-color: #e74c3c;
    background-color: #fff5f5;
}

.wptc-processing-message.completed {
    border-left-color: #2ecc71;
    background-color: #f0fff4;
}

/* Indicador de procesamiento (spinner) */
.wptc-processing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.wptc-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(74, 144, 226, 0.3);
    border-radius: 50%;
    border-top-color: #4a90e2;
    animation: wptc-spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes wptc-spin {
    to { transform: rotate(360deg); }
}

/* Texto de estado */
.wptc-processing-status {
    font-size: 0.9em;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

/* Indicador de "pensando" con puntos animados */
.wptc-thinking-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
}

.wptc-thinking-dots span {
    background-color: #4a90e2;
    border-radius: 50%;
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 3px;
    animation: wptc-thinking 1.4s infinite ease-in-out both;
}

.wptc-thinking-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.wptc-thinking-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes wptc-thinking {
    0%, 80%, 100% { 
        transform: scale(0);
    } 40% { 
        transform: scale(1);
    }
}

/* Mensaje de error */
.wptc-error {
    color: #e74c3c;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .wptc-processing-message {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .wptc-spinner {
        width: 20px;
        height: 20px;
    }
}