body {
    background-color: #F8F8F8;
    font-family: 'Roboto', Arial, sans-serif;
    color: #333333;
    margin: 0%;
    width: 100%;
    height: 120%;
}

#selection_menu, #chat_window{
    padding-top:12%;
}

/* Navbar */
.navbar {
    z-index: 1;
    background-color: white;
    width: 100vw;
    position: fixed;
    padding: 15px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #7E37AD;
    cursor: pointer;
}
.navbar-brand:hover {
    color: #333333;
    text-decoration: none;
}
.logo {
    width: 50px;
    max-height: 49px;

    margin-right: 10px;
    flex-shrink: 0;
    color: #7E37AD;
    overflow: hidden;
    height: auto; 
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo img {
    width: 49px;
    height: 29px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    object-fit: cover;
    object-position: center; 
}

.text_logo{
    color: #7E37AD;
}

.status {
    color: #00CEB3;
    margin-left: 10px;
    margin-top:  0.5rem;
    font-size: 13.5px;
}

/* Ícones do lado direito */
.navbar-icons i {
    font-size: 20px;
    margin-left: 20px;
    color: #7C4DFF;
    cursor: pointer;
}
.navbar-icons i:hover {
    color: #7C4DFF;
}
/* Botões */
.btn-custom {
    background-color: #EAEAEA;
    color: #333333;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 15px;
    padding: 15px;
    font-size: 16px;
    border: none;
    transition: background-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: 0.5s
}
.btn-custom:hover {
    background-color: #7c4dff46;
    color: #190749;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
    /* transition: all 0.5s ease; */
    transition: 0.5s
}
.btn-custom.active{
    background-color: #7c4dff9c;
    color: #190749;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.15);
    transition: 0.5s
}
.btn-custom i {
    margin-right: 5px;
    color: #00CEB3;
}

/* Conteúdo Dinâmico */
#content {
    min-height: 70vh;
    max-height: 70vh;
}
/* Chat Window */
.chat-window {

    max-height: 90vh;
    overflow-y: auto;
    padding: 10px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.mt-5, .my-5{
    margin-top: 0rem!important
}

/* Mensagens do usuário */
.message.user {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}
.message.user .message-content {
    background-color: #8359FF; /* Cor de fundo roxo */
    color: #FFFFFF; /* Texto branco */
    padding: 10px;
    border-radius: 20px; /* Ajustado para bordas arredondadas iguais */
    max-width: 60%;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    cursor: pointer;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
/* Mensagens do assistente */
.persona-title {
    font-size: 12px;
    text-align: left;
    margin-left: 60px;
    margin-bottom: 5px;
    color: #555;
    display: block;
    position: relative;
    top: 10px;
}
.message.bot {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
    align-items: flex-start;
}
.message.bot .avatar {
    margin-right: 10px;
    margin-top: 5px;
    flex-shrink: 0;
}
.message.bot .message-content {
    background-color: #F3F3F3; /* Cor de fundo cinza claro */
    color: #000000; /* Texto preto */
    padding: 10px;
    border-radius: 20px; /* Ajustado para bordas arredondadas iguais */
    max-width: 60%;
    font-size: 16px;
    line-height: 1.5;
    position: relative;
    cursor: pointer;
    word-wrap: break-word;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.message.bot .message-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-right: 10px solid #F3F3F3;
    border-bottom: 10px solid transparent;
}
/* Avatar do assistente */
.avatar img {
    width: 49px;
    height: 29px;
    object-fit: cover;
}
/* Modal de referências */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999; /* Certifique-se de que este valor é adequado */
}
.modal-content {
    background-color: #8359FF; /* Fundo roxo */
    padding: 20px;
    border-radius: 20px;
    max-width: 60%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    color: #FFFFFF; /* Texto branco */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.modal-content .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: #FFFFFF;
    cursor: pointer;
}
.modal-content h4 {
    margin-top: 0;
    border-bottom: 1px solid #FFFFFF;
    padding-bottom: 10px;
}
/* Se estiver usando a mesma classe, pode haver conflito */
.modal-selection-overlay {
    /* Defina estilos específicos para o modal de seleção */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 998; /* Defina um z-index menor que o modal de referências */
}
/* Modal de Referências */
.modal-overlay.references-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}
/* Modal de Seleção */
.modal-overlay.selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.container_chat{
    width: 100%;
    display: grid;
    place-items: center;
}

/* Chat Input */
.chat-input {
    position: fixed;
    bottom: 0;
    width: 60%;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.chat-input textarea {
    flex: 1;
    box-shadow:  0 2px 8px rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    margin-right: 10px;
    font-size: 16px;
}

.chat-input textarea::placeholder {
    color: #7E37AD;
    font-weight: bolder;
}

.chat-input textarea:focus {
    outline: none; 
}

.chat-input textarea:focus::placeholder {
    transition-duration: 1s;
    color: #7e37ad91;
    font-weight: 300;
}

.chat-input input:double-button {
    transition-duration: 1s;
    color: #30054d0a;
}

.chat-input button {
    background-color: #7c4dffc2;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    background-color: #9A6DF0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.auto-resize {
    min-height: 45px;
    max-height: 150px;
    overflow-y: auto;
    resize: none;
    line-height: 1.5;
    transition: height 0.2s ease;
}

.menu-container{
    max-width: 80%;
}

/* Estilos para conteúdo Markdown */
.message.bot .message-content p {
    margin: 0;
}
.message.bot .message-content h1,
.message.bot .message-content h2,
.message.bot .message-content h3,
.message.bot .message-content h4,
.message.bot .message-content h5,
.message.bot .message-content h6 {
    margin: 10px 0 5px;
}
.message.bot .message-content ul,
.message.bot .message-content ol {
    margin: 10px 0 10px 20px;
}
.message.bot .message-content code {
    background-color: #eaeaea;
    padding: 2px 4px;
    border-radius: 4px;
    font-family: monospace;
}
.navbar-btn {
    color: #333333;
    font-size: 16px;
    margin-left: 15px;
    text-decoration: none;
}
.navbar-btn:hover {
    color: #7C4DFF;
    text-decoration: none;
}
.form-control{
    max-height: 90vh;
    overflow-y: auto;
    padding: 10px;
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.form-persona-control{
    padding: 3rem;
}
/* CRIAR BANCO DE DADOS NOVO */

#new_db_files{
height: 100%;
}

#db_action_select{
    height: 100%;
}

/* Estilos para a área de drag-and-drop */
.drop-zone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cccccc;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    color: #cccccc;
    transition: background-color 0.3s, border-color 0.3s;
    margin-bottom: 15px;
    cursor: pointer;
}

.drop-zone.dragover {
    background-color: #f0f8ff;
    border-color: #1e90ff;
    color: #1e90ff;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    top: 0;
    left: 0;
    cursor: pointer;
}

.Ger_banco{
    padding-top: 5em;
}

.btn-success {
    background-color: #00ceb39a;
    border: none;
}

.btn-success:hover {
    background-color: #00ceb39a;
}

/* PERSONAS TELA */
#selected_persona_edit, #persona_name, #sobre_persona, #como_responder{
    height: 100%;
    box-shadow:  0 2px 8px rgba(0, 0, 0, 0.2);
    border-style: none;
    margin-bottom: 2rem;
}

/* Responsividade */
@media (max-width: 767px) {
    .navbar-brand {
        flex-grow: 1;
    }
    .navbar-icons {
        margin-top: 10px;
    }
    .content-row {
        flex-direction: column;
    }
    .content-col {
        margin-bottom: 30px;
    }
    .modal-content {
        max-width: 90%;
    }
}
