@font-face {
    font-family: 'Open Sans';
    src: url('../WebFonts/OpenSans-Regular.ttf');
}

:root {
    --primary-color: #FF7811;
    --primary-font: 'Open Sans', sans-serif;
}

body {
    display: flex;
    justify-content: center;
}

.cursor-wait {
    cursor: wait !important;
}

.cursor-not-allowed {
    cursor: not-allowed !important
}

.pointer {
    cursor: pointer !important;
}

.hidden {
    display: none !important;
}

.icon-20 {
    font-size: 20px;
}

.icon-22 {
    font-size: 22px;
}

.chatbot-container {
    width: 100%;
    height: 100%;
    margin: 0 auto;
    background-color: #f5f5f5;
    border: 1px solid #cccccc;
    border-radius: 7px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input, textarea {
    font-size: 13.5px;
    font-family: var(--primary-font);
}

#chatbot {
    background-color: #f5f5f5;
    border: 1px solid #eef1f5;
    box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

#cg-cia {
    margin-right: 8px;
    width: 30px;
    height: 30px;
}

#header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 10px;
    font-size: 9px;
    font-family: var(--primary-font);
    height: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
}

    #header #left-section {
        display: flex;
        align-items: center;
    }

    #header #rigth-section {
        float: right;
        cursor: pointer;
    }

    #header #configurations-container {
        display: none;
        position: absolute;
        top: 50px;
        right: 8px;
        color: #333333;
        background-color: rgb(251,191,132);
        border: 1px solid #ccc;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        width: 200px;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: translateY(-10px);
        opacity: 0;
        z-index: 1000;
        font-size: 1.1em;
        padding: 10px;
        border-radius: 5px;
        font-family: var(--primary-font);
        font-size: 13px;
    }

        #header #configurations-container.show {
            display: block;
            opacity: 1;
            transform: translateY(0);
        }

        #header #configurations-container ul {
            margin: 0;
            padding: 0;
            list-style: none;
        }

            #header #configurations-container ul li {
                margin: 0;
                padding: 12px;
                border: none !important;
                display: flex;
                justify-content: start;
                align-items: center;
            }

                #header #configurations-container ul li input[type="checkbox"] {
                    margin-right: 15px;
                }

                #header #configurations-container ul li span {
                    margin-right: 10px;
                    font-size: 18px;
                    color: #333333;
                    opacity: 0.8;
                }

.div-elements-table {
    display: flex;
    align-items: center;
    gap: 8px 8px;
    margin: 12px 0 8px 0;
}

.input-analyze-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 8px;
    width: 100%;
    margin-left: 10px;
}

    .input-analyze-group input {
        max-width: 500px;
    }

.div-upload-archives {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0 10px 0;
}

.div-upload-file-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.upload-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-upload-file {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

    .btn-upload-file i {
        font-size: 22px;
    }

.label-upload-file {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    cursor: pointer;
}

.div-upload-checkbox {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 15px;
}

    .div-upload-checkbox label {
        cursor: pointer;
    }

.suggestion-items, .audio-response-items {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 8px;
}

.suggestion-items {
    margin-bottom: 10px !important;
}

.labels {
    max-width: 400px;
}

.subject {
    border-radius: 7px;
    border: none;
    color: white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    padding: 7px;
    margin: 0px;
    cursor: pointer;
    background-color: transparent;
    font-family: var(--primary-font);
    font-size: 12.5px;
}

    .subject:hover {
        box-shadow: 0 1px 2px #333333;
        transform: scale(1.1);
        transition: all 0.2s;
    }

.subject-selected {
    box-shadow: 0 1px 2px #333333;
    transform: scale(1.1);
}

.table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: var(--primary-font);
    font-size: 12.5px;
}

    .table th {
        background-color: #dddddd;        
        font-size: 13.5px;
        padding: 8px;
        border: 1px solid #CCCCCC;
        color: #333333;
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .table td {
        padding: 8px;
        border: 1px solid #CCCCCC;
    }

    .table tr:nth-child(even) {
        background-color: #e2e2e2;
    }

    .table tr:nth-child(odd) {
        background-color: #f5f5f5;
    }

    .table tr:hover {
        background-color: var(--primary-color);
        color: #ffffff;
        cursor: default;
    }

.chatbot-table {
    overflow-y: auto;
    overflow-x: auto;
    max-height: 50vh;
    white-space: nowrap;
    scroll-behavior: smooth;
    width: 100%;
}

.icon-arrows {
    cursor: pointer;
}

.icon-arrows-hidden {
    display: none !important;
    cursor: pointer;
}

.list {
    width: 100%;
    padding-left: 20px;
}

li {
    margin: 10px 0px 10px 0px;
}

.iframe-hidden {
    height: 500px;
    width: 100%;
    display: none;
}

.itemList {
    color: #0000EE;
    cursor: pointer;
    text-decoration: underline;
}

#textarea-field {
    display: none;
    resize: none;
    height: 90px;
    flex: 1;
    border-radius: 4px;
    padding: 0 10px;
    margin: 10px 0px 10px 0px;
    transition: border-color 0.3s;
    background: #ffffff;
    color: #333333;
    border: none;
    overflow-y: hidden;
}

message-container {
    background: #ffffff;
    width: 100%;
    display: none;
    align-items: center;
    border-top: 1px solid #eef1f5;
}

#conversation {
    height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 0px;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

@keyframes message-fade-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.chatbot-message {
    display: flex;
    align-items: flex-start;
    position: relative;
    font-size: 13.5px;
    line-height: 20px;
    border-radius: 20px;
    word-wrap: break-word;
    white-space: pre-wrap;
    max-width: 95%;
    padding: 0 15px 7px 15px;
    font-family: var(--primary-font);
}

.chatbot-message-bi {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 15px;
}

.user-message {
    justify-content: flex-end;
    max-width: 100%;
}

.chatbot-text {
    background-color: #eeeeee;
    color: #333333;
    font-size: 1.1em;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: var(--primary-font);
    font-size: 13.5px;
    margin: 8px 8px 8px 0px;
    max-width: 100%;
}

.chatbot-text-bi {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    padding: 0 10px 10px 10px;
    margin: 8px 8px 8px 0px;
}

.chatbot-text-user {
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 1.1em;
    padding: 10px;
    margin: 13px 0px 8px 8px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-family: var(--primary-font);
    font-size: 13.5px;
    display: flex;
    justify-content: center;
    align-items: center;
}


#input-form {
    display: flex;
    align-items: center;
    width: 100%;
}

input[type="file"] {
    flex: 1;
}

.input, .input-verification-code, .combobox-secret-question {
    border-radius: 4px;
    padding: 0 5px;
    background: #f5f5f5;
    transition: border-color 0.3s;
    color: #333333;
    border: 1px solid #808080;
    margin: 5px 0px 5px 0px;
    height: 25px;
    font-family: var(--primary-font);
    font-size: 13.5px;
    width: 70%;
}

    .input:focus, .input-verification-code:focus, .combobox-secret-question, textarea:focus {
        border-color: #333333;
        outline: none;
    }

.input-verification-code {
    width: 45%;
}


.input-container-gpt {
    display: flex;
    align-items: center;
}

.combobox-secret-question {
    width: 72%;
    min-height: 27px;
    padding: 0px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    margin: 0px 0px 10px 0px;
}

.checkbox {
    margin: 0px 5px 0px 0px;
    cursor: pointer;
}

#info-chave-gpt, #info-cors {
    padding: 0px 0px 15px 0px;
    font-size: 12.5px;
}

#input-field {
    height: 60px;
    border-radius: 4px;
    padding: 0 10px;
    transition: border-color 0.3s;
    background: #ffffff;
    color: #333333;
    border: none;
    width: 100%;
}

    #input-field:focus, textarea:focus {
        border-color: #333333;
        outline: none;
    }


#gpt-key {
    font-size: 8px;
}

    #gpt-key::placeholder {
        font-size: 13.5px;
    }


#img-config {
    font-size: 22px;
    color: #ffffff;
    opacity: 0.9;
}

#submit-button {
    background-color: transparent;
    border: none;
    margin: 10px;
    cursor: pointer;
    padding: 0px;
}

#microphone-button {
    background-color: transparent;
    margin: 0 10px 0 10px;
    border: none;
    cursor: pointer;
    padding: 0px;
}

#expand-button {
    background-color: transparent;
    border: none;
    margin: 10px;
    cursor: pointer;
    padding: 0px;
}

#subject-button {
    background-color: transparent;
    border: none;
    margin-left: 10px;
    cursor: pointer;
    padding: 0px;
}

#history-button {
    background-color: transparent;
    border: none;
    margin: 10px 5px 10px 10px;
    cursor: pointer;
    padding: 0px;
}

#clear-history-button {
    background-color: transparent;
    border: none;
    margin: 5px;
    cursor: pointer;
    padding: 0px;
}

#assunto-ativo {
    display: flex;
    justify-content: center;
    align-content: center;
    border-radius: 7px;
    padding: 7px;
    color: white;
    margin: 0px 0px 0px 10px;
    font-family: var(--primary-font);
    font-size: 12.5px;
    white-space: nowrap;
    background-color: var(--primary-color);
    cursor: pointer;
    width: 17px;
}

.btn {
    border-radius: 7px;
    border: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: white;
    padding: 7px;
    margin: 0px;
    cursor: pointer;
    background-color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 12.5px;
}

    .btn:hover {
        box-shadow: 0 1px 2px #333333;
        transform: scale(1.1);
        transition: all 0.2s;
    }

.btn-cancelar {
    background-color: #808080;
}

.btn-resend {
    background-color: transparent;
    border: none;
    margin: 4px 0px 0px 7px;
    padding: 0;
    cursor: pointer;
}

.btn-copy-text-bot {
    background-color: transparent;
    border: none;
    cursor: pointer;
    float: right;
    padding: 0;
    margin: 0;
}

.buttons-group {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px 8px;
}

.hour {
    font-family: var(--primary-font);
    font-size: 9px;
    color: #ffffff;
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 0px 20px 12px 0px;
}

p[sentTime]:hover::after {
    content: attr(sentTime);
    position: absolute;
    top: -3px;
    font-size: 14px;
    color: gray;
}

.chatbot p[sentTime]:hover::after {
    left: 15px;
}

.user-message p[sentTime]:hover::after {
    right: 15px;
}

.bi-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.bi-container-mobile {
    flex-direction: column;
    align-items: stretch;
}

.div-menu-dashboard {
    min-width: 10%;
}

.menu-dashboard {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    background-color: #eeeeee;
    gap: 7px;
}

    .menu-dashboard li {
        flex: 1;
        text-align: center;
    }

        .menu-dashboard li a {
            display: block;
            padding: 7px;
            margin: 5px;
            color: #333;
            text-decoration: none;
            background-color: #dddddd;
            border-radius: 7px;
        }

            .menu-dashboard li a:hover {
                background-color: #cccccc;
            }

            .menu-dashboard li a.active {
                color: white;
                background-color: var(--primary-color);
            }

.container-interagir, .container-interagir-mobile {
    flex: 1;
    margin-left: 15px;
}

.container-interagir-mobile {
    margin: 0;
}

.div-confirmar {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

.div-interagir {
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;
}

    .div-interagir input {
        width: 65%;
        margin-right: 10px;
        height: 30px;
        font-size: 13.5px !important;
        font-family: var(--primary-font);
    }

        .div-interagir input.microphone {
            border-right: none;
            margin-right: 0;
            border-radius: 0;
            border-top-left-radius: 4px;
            border-bottom-left-radius: 4px;
        }

    .div-interagir button {
        min-width: 80px;
        font-size: 13.5px !important;
        font-family: var(--primary-font);
    }

    .div-interagir .fas.fa-microphone {
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
        padding: 0 5px;
        background: #f5f5f5;
        border: 1px solid #808080;
        border-left: none;
        height: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 20px;
        cursor: pointer;
        margin-right: 10px;
    }

@media screen and (max-width: 1280px) {
    .div-interagir input {
        width: 100%;
    }
}

.div-opcoes-interacoes-dashboard {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    overflow-x: auto;
    margin-bottom: 5px;
}

.div-interacoes-txt {
    column-width: 250px;
    column-fill: auto;
    border: 1px solid #808080;
    padding: 15px !important;
    overflow-y: auto;
    box-sizing: border-box;
    height: 90%;
}

.div-tips-txt {
    column-count: 2;
    overflow-y: auto;
    box-sizing: border-box;
}

.content {
    display: none;
    width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.active {
    display: block;
    width: 100%;
    padding: 0;
    margin-right: 0;
    box-sizing: border-box;
}

.loading-msg {
    display: flex;
    padding: 0;
    margin: 0;
}

.loading-dots {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 5px;
}

.dot {
    width: 4px;
    height: 4px;
    background-color: #000000;
    border-radius: 50%;
    animation: pulse 1s infinite ease-in-out;
}

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.loading-spinner {
    width: 4px;
    height: 4px;
    border: 2px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    padding: 4px;
    margin-left: 4px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
