﻿/* Barra superior */
.top-bar {
    width: 100%;
    height: 60px;
    background-color: #4CAF50;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    cursor :grab;
}

.top-bar-icon {
    color: white;
    font-size: 28px;
    cursor: pointer;
    font-weight: bold;
}

/* Estilos da janela modal */
.modal {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 10001;
    left: 50%;
    top: 15%; /* Altera para começar do topo */
    transform: translate(-50%, -20%) scale(0.8); /* Estado inicial da animação, com o zoom vindo do topo */
    transform-origin: top center; /* Define a origem da animação no topo centralizado */
    width: 800px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 5px 4px 14px rgb(0 0 0 / 60%);
    overflow: hidden;
    font-family: Inter, sans-serif;
    background: #434343;
    transition: all 0.3s ease; /* Transição suave */
    border: 3px solid #347232;
}

    .modal.show {
        visibility: visible;
        opacity: 1;
        transform: translate(-50%, 0%) scale(1); /* Anima o modal para a posição correta com zoom */
    }

    .modal.hide {
        opacity: 0;
        transform: translate(-50%, -20%) scale(0.8); /* Retorna para o topo com zoom out */
        transition: all 0.3s ease; /* Transição suave ao fechar */
    }

.modal-header {
    padding: 15px;
    background-color: #333;
    color: white;
    text-align: center;
    font-size: 20px;
    position: relative;
    cursor:move;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 23px;
    cursor: pointer;
    color: #ff5959;
}

.clear-button {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 23px;
    cursor: pointer;
    color: #fff;
}
.icone-assistente {
    position: absolute;
    left: 20px;
    top: 15px;
    font-size: 23px;
    cursor: pointer;
    color: #14ff69;
}
.icone-fala {
    position: absolute;
    left: 60px;
    top: 15px;
    font-size: 23px;
    cursor: pointer;
    color: #14ff69;
}

.modal-body-ia {
    padding: 20px;
    padding-left: 30px;
    height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column-reverse;
    background-color: #f9f9f9;
    background: #434343;
}
    .modal-body-ia html,
    .modal-body-ia body,
    .modal-body-ia div,
    .modal-body-ia dl,
    .modal-body-ia dt,
    .modal-body-ia dd,
    .modal-body-ia ul,
    .modal-body-ia ol,
    .modal-body-ia li,
    .modal-body-ia h1,
    .modal-body-ia h2,
    .modal-body-ia h3,
    .modal-body-ia h4,
    .modal-body-ia h5,
    .modal-body-ia h6,
    .modal-body-ia pre,
    .modal-body-ia form,
    .modal-body-ia fieldset,
    .modal-body-ia input,
    .modal-body-ia p,
    .modal-body-ia blockquote,
    .modal-body-ia th,
    .modal-body-ia td {
        font-size: 15px;
        color: #ffffff;
    }


.modal-footer {
    padding: 15px;
    background-color: #fff;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    align-items: center;
    margin: 20px;
    background: #2f2f2f;
    border-radius: 24px;
}

    .modal-footer textarea {
        width: 100%;
        height: 62px;
        border: none;
        color: white;
        padding: 10px;
        font-size: 16px;
        background: #2f2f2f;
        font-family: Inter, sans-serif;
        margin-right: 10px;
    }

    .modal-footer button {
        margin-top: -3px;
        width: 30px;
        height: 30px;
        background-color: #4CAF50;
        color: black;
        border: none;
        border-radius: 20px;
        cursor: pointer;
        font-size: 17px;
        font-weight: bold;
        background-color: #e9e9e9;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .modal-footer button:hover {
            background-color: #3aa4df;
        }

/* Estilos para as mensagens no chat */
.message {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
}

.user-message {
    text-align: right;
    color: white;
    padding: 12px;
    background: #292929;
    max-width: fit-content;
    border-radius: 20px;
    align-self: end;
}

.user-message-inside {
    text-align: right;
    color: white;
    padding: 10px;
}

.ai-message {
    text-align: left;
    color: #dfdfdf!important;
    padding-left:30px;
    position:relative;
    font-size:15px!important;

}
.modal-footer textarea {
    border: none;
    padding: 5px;
    border-radius: 5px;
    resize: none;
    width: 100%;
    background: #2f2f2f;
}

    .modal-footer textarea:focus {
        outline: none; /* Remove a borda quando estiver em foco */
        border-color: #007BFF; /* Opcional: muda a cor da borda quando em foco */
    }

.ai-message ol,ul{
    margin-left:30px;
    padding-bottom:10px;
}
    .ai-message::before {
        content: "\f82d"; /* Ícone do Font Awesome */
        font-family: 'Font Awesome 5 Pro'; /* Certifique-se de que a fonte está carregada */
        position: absolute;
        top: -5px;
        left: -20px;
        font-size: 27px; /* Ajuste o tamanho do ícone conforme necessário */
        color: #679d5e; /* Cor do ícone */
    }

    /*.ai-message, .ai-message p, .ai-message ol, .ai-message li, .ai-message a {
        font-family: inherit;
        font-size: inherit;
        color: inherit;
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .ai-message ol, .ai-message ul {
            list-style: disc inside;*/ /* Ajuste a lista para bolinhas */
            /*padding-left: 20px;*/ /* Ajuste o espaçamento para listas */
        /*}

        .ai-message a {
            text-decoration: none;*/ /* Retira o sublinhado dos links */
            /*color: #4CAF50;*/ /* Cor dos links */
        /*}*/

/* Animação de bolinhas piscando */
.typing-indicator {
    display: flex;
    justify-content: left;
    margin-bottom: 10px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: #15a7e9;
    border-radius: 50%;
    display: inline-block;
    animation: typing 1s infinite;
}

@keyframes typing {
    0% {
        opacity: 0.2;
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 0.2;
    }
}

.resizer {
    width: 20px;
    height: 20px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    cursor: se-resize;
    color: #ccc;
}