/* ============================================
   CHATBOT VERIMA MARCAS - DESIGN MINIMALISTA
   ============================================ */

/* Container principal */
.verima-bot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

/* Botão flutuante */
.verima-bot-button {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    color: #0e0e0e;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2);
    position: relative;
    transition: all 0.3s ease;
    border: 2px solid #ffffff;
}

.verima-bot-button:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3);
}

.verima-bot-button i {
    font-size: 28px;
}

.bot-notification {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ffffff;
    color: #0e0e0e;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #0e0e0e;
}

/* Janela do chat */
.verima-bot-chat {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background-color: #0e0e0e;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transform-origin: bottom right;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.verima-bot-chat.active {
    transform: scale(1);
    opacity: 1;
    pointer-events: all;
}

/* Cabeçalho do chat */
.verima-bot-header {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-header-info {
    display: flex;
    align-items: center;
}

.bot-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    background-color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.bot-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bot-info h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

.bot-info p {
    margin: 0;
    font-size: 13px;
    color: #999999;
    font-family: 'Inter', sans-serif;
}

.bot-close {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    color: #999999;
}

.bot-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Corpo do chat */
.verima-bot-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background-color: #0e0e0e;
}

/* Scrollbar personalizada */
.verima-bot-body::-webkit-scrollbar {
    width: 6px;
}

.verima-bot-body::-webkit-scrollbar-track {
    background: transparent;
}

.verima-bot-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.verima-bot-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Estilos para mensagens */
.bot-message {
    margin-bottom: 16px;
    max-width: 75%;
    clear: both;
    position: relative;
}

.bot-received {
    float: left;
    background-color: #1a1a1a;
    border-radius: 12px 12px 12px 4px;
    padding: 12px 16px;
    border-left: 2px solid #ffffff;
    animation: fadeInLeft 0.3s ease;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.bot-sent {
    float: right;
    background-color: #ffffff;
    color: #0e0e0e;
    border-radius: 12px 12px 4px 12px;
    padding: 12px 16px;
    animation: fadeInRight 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-time {
    font-size: 10px;
    color: #666666;
    margin-top: 6px;
    display: block;
    font-family: 'Inter', sans-serif;
}

.bot-sent .message-time {
    color: #666666;
}

/* Digitando indicador */
.typing-indicator {
    display: flex;
    align-items: center;
    background-color: #1a1a1a;
    border-radius: 12px 12px 12px 4px;
    padding: 12px 16px;
    max-width: 60px;
    float: left;
    clear: both;
    margin-bottom: 16px;
    border-left: 2px solid #ffffff;
}

.typing-dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    margin: 0 3px;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}
.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}
.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

/* Input de mensagem */
.verima-bot-input {
    display: flex;
    padding: 16px;
    background-color: #1a1a1a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 10px;
}

#bot-input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: #0e0e0e;
    border-radius: 12px;
    padding: 12px 16px;
    outline: none;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.3s ease;
}

#bot-input::placeholder {
    color: #666666;
}

#bot-input:focus {
    border-color: #ffffff;
}

#bot-send {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #ffffff;
    color: #0e0e0e;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

#bot-send:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

#bot-send:active {
    transform: scale(0.95);
}

#bot-send i {
    font-size: 16px;
}

/* Botões de opções */
.bot-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 12px 0;
    clear: both;
}

.option-button {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
    max-width: 75%;
    align-self: flex-start;
}

.option-button:hover {
    background-color: #ffffff;
    color: #0e0e0e;
    border-color: #ffffff;
    transform: translateX(4px);
}

/* Responsividade */
@media (max-width: 480px) {
    .verima-bot-chat {
        width: calc(100vw - 40px);
        height: calc(100vh - 120px);
        right: 20px;
        bottom: 80px;
    }
    
    .verima-bot-button {
        width: 56px;
        height: 56px;
    }
    
    .verima-bot-button i {
        font-size: 26px;
    }
} 