/* Enlaces en mensajes del bot */
.a.bot-link {
    color: #c01cb2 !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}

div.assistant-message a,
div.assistant-message .bot-link,
.message.assistant-message a,
.message.assistant-message .bot-link {
    color: #4b70eb !important;
    text-decoration: underline !important;
    cursor: pointer !important;
}
div.assistant-message a:hover,
div.assistant-message .bot-link:hover,
.message.assistant-message a:hover,
.message.assistant-message .bot-link:hover {
    color: #96aaec !important;
}

/* Estilos para la encuesta de satisfacción */
.satisfaction-survey-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.satisfaction-survey-modal {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.satisfaction-survey-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #e9ecef;
}

.satisfaction-survey-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background-color: #f8f9fa;
    color: #dc3545;
}

.satisfaction-survey-body {
    padding: 20px;
    text-align: center;
}

.survey-icon {
    font-size: 3rem;
    color: #4b70eb;
    margin-bottom: 15px;
}

.survey-question {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.5;
}

.survey-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.survey-btn {
    min-width: 120px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.survey-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.survey-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.survey-btn.btn-success {
    background-color: #198754;
    color: white;
}

.survey-btn.btn-success:hover:not(:disabled) {
    background-color: #157347;
}

.survey-btn.btn-danger {
    background-color: #dc3545;
    color: white;
}

.survey-btn.btn-danger:hover:not(:disabled) {
    background-color: #bb2d3b;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Estilos para botones de satisfacción integrados en el chat */
.satisfaction-buttons {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.satisfaction-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    justify-content: center;
}

.satisfaction-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.satisfaction-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.satisfaction-btn.btn-success {
    background-color: #198754;
    color: white;
}

.satisfaction-btn.btn-success:hover:not(:disabled) {
    background-color: #157347;
}

.satisfaction-btn.btn-danger {
    background-color: #dc3545;
    color: white;
}

.satisfaction-btn.btn-danger:hover:not(:disabled) {
    background-color: #bb2d3b;
}

/* Estilos para botones de satisfacción expirados */
.satisfaction-btn.expired {
    background-color: #6c757d !important;
    color: #adb5bd !important;
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.satisfaction-btn.expired:hover {
    background-color: #6c757d !important;
    transform: none !important;
    box-shadow: none !important;
}

.expired-message {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
}

.expired-message .text-muted {
    color: #6c757d !important;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.expired-message .fas.fa-clock {
    color: #6c757d;
    font-size: 0.75rem;
}

/* Responsividad */
@media (max-width: 768px) {
    .satisfaction-survey-modal {
        margin: 20px;
        width: calc(100% - 40px);
    }
    
    .survey-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .survey-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .satisfaction-buttons {
        gap: 8px;
    }
    
    .satisfaction-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 70px;
    }
}