/* =========================================
   FMoreira IA - Premium Dark Theme
========================================= */

#fmoreiraia.screen {
    padding: 0 !important;
    background-color: #111b2b !important;
}


.ia-container {
    display: flex;
    height: 100%;
    min-height: 85vh;
    background: #111b2b; /* Azul escuro premium do seu ERP */
    border: none;
    border-radius: 0 !important; 
    box-shadow: none !important;
    overflow: hidden;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    
}

/* Barra Lateral */
.ia-sidebar {
    width: 280px;
    background: #0a1019; /* Fundo mais profundo para contraste */
    color: #fff;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #1f304a;
}

.ia-nova-conversa {
    background: transparent;
    color: #d4af37;

    border: 1px solid rgba(212,175,55,.45);

    padding: 12px 18px;

    border-radius: 999px;

    cursor: pointer;

    font-weight: 700;

    font-size: 13px;

    margin-bottom: 30px;

    letter-spacing: .8px;

    transition: all .25s ease;

    text-transform: uppercase;
}

.ia-nova-conversa:hover {

    background: rgba(212,175,55,.12);

    border-color: #d4af37;

    box-shadow:
        0 0 18px rgba(212,175,55,.15);

    transform: translateY(-1px);
}


.ia-historico-titulo {
    font-size: 0.85em;
    color: #8e9ab0;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
    letter-spacing: 1px;
}

#ia-lista-historico { list-style: none; padding: 0; margin: 0; }
#ia-lista-historico li {
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 6px;
    color: #c9d3e6;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 5px;
    transition: background 0.2s;
}
#ia-lista-historico li:hover { background: #1f304a; color: #fff; }

/* Área Principal */
.ia-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    background: #111b2b; /* Combina com o fundo da sua logo */
}

#ia-chat-window {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Tela Inicial com Logo */
#ia-tela-inicial {
    margin: auto;
    text-align: center;
    color: #c9d3e6;
}


.ia-logo-grande {
    width: 480px;
    height: 480px;

    border-radius: 50%;
    object-fit: cover;

    border: 3px solid rgba(212, 175, 55, 0.35);

    box-shadow:
        0 0 30px rgba(212, 175, 55, 0.20),
        0 0 80px rgba(212, 175, 55, 0.10);

    margin-bottom: 30px;
}



#ia-tela-inicial h2 {
    color: #c19a3d;
    font-size: 24px;
    margin-bottom: 10px;
}
#ia-tela-inicial p {
    color: #8e9ab0;
    font-size: 15px;
}

/* Bolhas de Mensagem */
.msg-linha { margin-bottom: 24px; display: flex; flex-direction: column; }
.msg-usuario { align-items: flex-end; }
.msg-ia { align-items: flex-start; }

.msg-balao {
    max-width: 75%;
    padding: 16px 20px;
    border-radius: 12px;
    line-height: 1.6;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.msg-usuario .msg-balao { 
    background: #c19a3d; 
    color: #000; 
    border-bottom-right-radius: 4px;
    font-weight: 500;
}
.msg-ia .msg-balao { 
    background: #1f304a; 
    color: #e2e8f0; 
    border-bottom-left-radius: 4px;
    border: 1px solid #355f9e;
}

/* Área de Input e Dropzone */
#ia-area-input {
    background: #0a1019;
    border-top: 1px solid #1f304a;
    padding: 20px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.ia-dropzone.drag-over {
    background: rgba(193, 154, 61, 0.1);
    border-top: 2px dashed #c19a3d;
}

#ia-prompt {
    flex: 1;
    background: #111b2b;
    color: #fff;
    border: 1px solid #355f9e;
    border-radius: 8px;
    padding: 15px;
    resize: none;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    max-height: 150px;
    overflow-y: auto;
    transition: border-color 0.3s;
}
#ia-prompt:focus {
    border-color: #c19a3d;
}
#ia-prompt::placeholder {
    color: #64748b;
}

#ia-btn-anexo {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    padding: 10px;
    color: #8e9ab0;
    transition: color 0.3s;
}
#ia-btn-anexo:hover { color: #c19a3d; }

#ia-btn-enviar {

    background: transparent;

    color: #d4af37;

    border: 1px solid rgba(212,175,55,.45);

    padding: 12px 22px;

    border-radius: 999px;

    cursor: pointer;

    font-weight: 700;

    font-size: 13px;

    letter-spacing: .8px;

    transition: all .25s ease;

    text-transform: uppercase;

    height: fit-content;
}

#ia-btn-enviar:hover {

    background: rgba(212,175,55,.12);

    border-color: #d4af37;

    box-shadow:
        0 0 18px rgba(212,175,55,.15);

    transform: translateY(-1px);
}

.ia-menu-conversa {

    position: absolute;

    width: 180px;

    background: #0f1725;

    border: 1px solid #2f4568;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(0,0,0,.45);

    z-index: 99999;

    animation: menuFade .15s ease;
}

.ia-menu-item {

    padding: 12px 16px;

    cursor: pointer;

    color: #d7e0f0;

    font-size: 14px;

    transition: .2s;
}

.ia-menu-item:hover {

    background: #1f304a;
}

.ia-menu-item.excluir {

    color: #ff7d7d;
}

.ia-menu-item.excluir:hover {

    background: rgba(255,0,0,.08);
}

@keyframes menuFade {

    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}




















/* Scrollbars personalizadas para a IA */
#ia-chat-window::-webkit-scrollbar, #ia-prompt::-webkit-scrollbar { width: 8px; }
#ia-chat-window::-webkit-scrollbar-track, #ia-prompt::-webkit-scrollbar-track { background: #0a1019; }
#ia-chat-window::-webkit-scrollbar-thumb, #ia-prompt::-webkit-scrollbar-thumb { background: #1f304a; border-radius: 4px; }
#ia-chat-window::-webkit-scrollbar-thumb:hover, #ia-prompt::-webkit-scrollbar-thumb:hover { background: #355f9e; }