﻿
/*CHATBOT*/
#chatbot-icon {
    /*position: relative;
    top: -5px;
    right: -275px;*/
    float:right;
    width: 8px;
    height: 8px;
    padding-right: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
}   
/*#chatbot-icon:hover {
    transform: scale(1.1);
}*/
#icon-main {
    position: relative;
    z-index: 1;
}
#icon-close {
    position: absolute;
    top: -20px;
    right: -36px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
#chatbot-window {
    position: fixed;
    bottom: 20px;
    right: 20px;
    min-width: 260px;
    min-width: 300px;
    width: 20%;
    height: 480px;
    background: #faf7f6;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    animation: fadeInUp 0.3s ease;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
    padding: 15px 20px;
    font-size: 14px;
}

.chat-header-actions {
    display: flex;
    gap: 10px;
}

.chat-header-actions span {
    cursor: pointer;
    color: #1a73e8;
    font-size: 18px;
    transition: color 0.2s;
}

.chat-header-actions span:hover {
    color: #1558b0;
}

.chat-header .close-btn {
    position: absolute;
    right: 15px;
    top: 10px;
    cursor: pointer;
    font-size: 18px;
}

#chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.direct-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #fafafa;
    height: calc(100% - 110px);
    scroll-behavior: smooth;
}

.direct-chat-msg {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-end;
}

.direct-chat-msg.right {
    justify-content: flex-end;
}

.direct-chat-text-login {
    max-width: 85%;
    padding-top: 4px;
    padding-right: 12px;
    padding-bottom: 7px;
    padding-left: 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    background: #fff;
}
.direct-chat-text-system {
    max-width: 85%;
    padding-top: 10px;
    padding-right: 12px;
    padding-bottom: 7px;
    padding-left: 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.4;
    background: #fff;
}
.direct-chat-msg.right .direct-chat-text-login {
    background: #3977ab;
    color: white;
}
.direct-chat-msg.right .direct-chat-text-system {
    background: #3977ab;
    color: white;
}
.direct-chat-info {
    font-size: 12px;
    color: #888;
    margin-bottom: 5px;
}

.direct-chat-img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 8px;
}

.direct-chat-msg.right .direct-chat-img {
    margin-right: 0;
    margin-left: 8px;
}

#input-area {
    display: flex;
    align-items: center;
    border-top: 1px solid #ddd;
    padding: 10px;
    background: #fff;
}

#input-area input {
    flex: 1;
    border: none;
    background: transparent;
    color: #333;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    margin-right: 8px;
    transition: none;
}

#input-area input:focus {
    outline: none;
    border: none;
    box-shadow: none;
}

#input-area button {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

#input-area button:focus,
#input-area button:hover {
    border: none;
    background: transparent;
    outline: none;
    box-shadow: none;
}

#input-area button i {
    font-size: 20px;
    color: #1a73e8;
    transition: color 0.2s ease;
}

#input-area button i:hover {
    color: #1558b0;
}

#btn-minimizar {
    cursor: pointer;
    color: #1a73e8;
    font-size: 18px;
    transition: color 0.2s;
}

#btn-minimizar:hover {
    color: #1558b0;
}

#btn-nuevo-chat {
    cursor: pointer;
    color: #1a73e8;
    font-size: 18px;
    transition: color 0.2s;
}

#btn-nuevo-chat:hover {
    color: #1558b0;
}

.typing-indicator {
    display: flex;
    align-items: center;
    margin: 10px;
    padding: 10px;
    background: #fff;
    border-radius: 15px;
    width: 45px;
    justify-content: space-between;
}

.typing-indicator span {
    width: 5px;
    height: 5px;
    background-color: #555;
    border-radius: 50%;
    opacity: 0.4;
    animation: blink 1.4s infinite both;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0%, 80%, 100% {
        opacity: 0.4;
    }

    40% {
        opacity: 1;
    }
}
