#chatContainer {
    position: fixed;
    top: 100px;
    left: 60%;
    right: unset;
    bottom: unset;
    width: 30%;
    max-width: 100%;
    height: 80%;
    max-height: 100%;
    background-color: white;
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    display: none;
    flex-direction: column;
    transition: height 0.3s ease;
}




@media (max-width: 768px) {

    #chatContainer {
        width: 95vw;
        height: 90vh;
        top: 5vh;
        left: 2.5vw;
    }

        #chatContainer .chat-header {
            flex-direction: column;
            gap: 10px;
        }

        #chatContainer .chat-header-left img {
            height: 40px;
        }

        #chatContainer .chat-input {
            flex-direction: column;
        }

        #chatContainer #userInput {
            width: 100%;
        }
}


#chatContainer .chat-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: visible !important;
}


#chatContainer .chat-header {
    background: #f2f2f2;
    color: white;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
}


#chatContainer .chat-messages {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid #ccc;
}


#chatContainer .chat-input {
    background: #f2f2f2;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

#chatContainer .chat-input textarea {
        min-width: 90%;
        width: 100%;
        max-width: 100%;
        min-height: 55px;
        flex-grow: 1;
        border: none;
        resize: none;
        padding: 10px;
        border-radius: 10px;
        height: 55px;
        max-height: 75px;
        outline: none;
        font-size: 14px;
        margin: 0;
}

#chatContainer .chat-input textarea:focus {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
}


#chatContainer .chat-input textarea:focus {
            outline: none !important;
            box-shadow: none !important;
            border: none !important;
}



#chatContainer .chat-input-interno {
    background-color: white;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    padding: 5px;
    width: 100%;
    flex-wrap: wrap;
}

#chatContainer #inputImage .custom-file-upload {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 5px;
}

#chatContainer #inputImage .left-buttons {
    display: flex;
    gap: 5px;
    align-items: center;
}

#chatContainer #clearChatBtn {
    background-color: transparent;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

#chatContainer #clearChatBtn:hover {
    background-color: #cccccc5c;
}


#chatContainer .message-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

#chatContainer .talia-wrapper {
    flex-direction: row;
    align-self: flex-start;
}

#chatContainer .user-wrapper {
    flex-direction: row-reverse;
    align-self: flex-end;
}

#chatContainer .talia-message,
#chatContainer .user-message {
    padding: 10px 14px;
    border-radius: 16px;
    max-width: 100%;
    width: fit-content;
    line-height: 1.4;
}

#chatContainer .talia-message {
    background-color: white;
    color: #333;
    border-bottom-left-radius: 0;
}

#chatContainer .user-message {
    background-color: #ccdce6;
    color: #333;
    border-bottom-right-radius: 0;
    text-align: left;
}

#chatContainer .message-sender {
    color: #91c0d3;
    margin-top: 4px;
}


#chatContainer .typing-indicator {
    font-style: italic;
    color: #02006d;
    padding: 10px;
    background-color: #C2EEFF;
    border-radius: 8px;
    animation: blink 1.5s infinite;
    max-width: 200px;
}

@keyframes blink {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}




#chatContainer #sendBtn:focus {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}




#chatContainer #imageBtn {
    background-color: none;
    color: #808080c9;
    margin: 5px;
}



#chatContainer #sendBtn {
    background-color: none;
    color: #808080c9;
    margin: 5px;
}


#chatContainer .chat-input-interno {
    background-color: white;
    display: flex;
    flex-direction: column;
    border-radius: 15px;
    padding: 5px;
    width: 100%;
    flex-wrap: wrap;
}

#chatContainer .custom-file-upload {
    display: inline-block;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


#chatContainer #imageBtn,
#chatContainer #sendBtn {
    background-color: transparent;
    border: none;
    color: #002f58;
    font-size: 16px;
    padding: 5px;
    cursor: pointer;
}


#chatContainer .custom-file-upload input[type="file"] {
    display: none;
}

#chatContainer .upload-button {
    background-color: white;
    color: #ccc;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 20px;
    height: fit-content;
    font-weight: normal;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chatContainer .upload-button:hover {
        background-color: #ffffff44;
        text-decoration: none;
}

#chatContainer .file-name {
    margin-left: 10px;
    color: #555;
}

#chatContainer .dragover {
    border: 2px dashed #0F99CE;
    background-color: #e8f4ff;
}

#chatContainer .chat-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

#chatContainer .chat-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

#chatContainer .clear-chat-btn,
#chatContainer #toggleCollapseBtn,
#chatContainer .chat-header a {
    background-color: #d5d5d5;
    color: #003366;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chatContainer .clear-chat-btn:hover,
#chatContainer #toggleCollapseBtn:hover,
#chatContainer .chat-header a:hover {
        background-color: #ffffff44;
        text-decoration: none;
}

#chatContainer .chat-header img {
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

#chatContainer.collapsed {
    height: auto !important;
    width: auto;
    min-width: 250px;
    max-width: 90%;
    border-radius: 8px;
    overflow: visible;
}

    #chatContainer.collapsed .chat-box {
        height: auto;
    }

    #chatContainer.collapsed .chat-messages,
    #chatContainer.collapsed .chat-input,
    #chatContainer.collapsed #file-name {
        display: none;
    }

    #chatContainer.collapsed .chat-header {
        border-radius: 8px;
    }

#chatContainer #file-name {
    color: #003366;
}


#chatContainer ::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

#chatContainer ::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ccc, #91c0d3);
    border-radius: 10px;
    border: 2px solid #ffffff
}

#chatContainer ::-webkit-scrollbar-track {
    background: #ffffff00;
    border-radius: 10px;
}



#chatContainer .dropdown-container {
    position: relative;
    display: inline-block;
}


#chatContainer .dropdown-toggle-btn {
    background-color: #d5d5d5;
    color: #003366;
    border: none;
    border-radius: 5px;
    padding: 6px 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#chatContainer .dropdown-toggle-btn:hover {
        background-color: #ffffff44;
}

#chatContainer .dropdown-menu {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    left: 0;
    top: 100%;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1001;
    border-radius: 6px;
    overflow: visible;
}



#chatContainer .dropdown-item {
    color: #333;
    padding: 10px 16px;
    text-align: left;
    background-color: white;
    border: none;
    width: fit-content;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

    #chatContainer .dropdown-item:hover {
        background-color: #f0f0f0;
    }

#chatContainer .dropdown-container:hover .dropdown-menu {
    display: block;
}

#chatContainer #popup-sessao {
    display: none;
    position: fixed;
    background-color: #ead6d6;
    color: #7d0101;
    padding: 16px 20px;
    border-radius: 5px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    z-index: 999;
    max-width: 29%;
    transition: opacity 0.3s ease-in-out;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#chatContainer .btn-fechar {
    background: none;
    border: none;
    color: #856404;
    font-weight: bold;
    float: right;
    font-size: 18px;
    margin-left: 10px;
    cursor: pointer;
}
