﻿.thread-container {
    padding: 10px;
    overflow-y: auto;
    flex: 1 1 auto;
    height: 0px;
}

.thread-container blockquote {
    font-size: 14px;
    padding: 5px 10px;
}

div.thread-container p {
    margin: 5px 0 5px;
} 

.user-message-container {
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    justify-content: end;
}

.assistant-message-container {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.assistant-message-file-container {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    display: inline-block;
 /*   cursor: pointer;*/
    margin: 0px 5px 5px 5px;
}

.user-message {
    border-width: 1px;
    border-radius: 5px;
    background-color: #fff;
    padding: 10px;
    margin-right: 10px;
    position: relative;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.user-message::after {
    content: "";
    position: absolute;
    right: -8px;
    top: 22px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left-color: #fff;
    border-right: 0;
    margin-top: -8px;
}

.assistant-message {
    margin-left: 10px;
}

.assistant-message table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
    text-align: left;
}

.assistant-message th {
    padding: 5px;
    border: 1px solid #ddd;
}

.assistant-message td {
    padding: 5px;
    border: 1px solid #ddd;
}

.assistant-message img {
    width: 60%;
    display: block;
    margin-bottom: 10px;
}

/*.assistant-message::after {
    content: "";
    position: absolute;
    left: -8px;
    top: 22px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: aliceblue;
    border-left: 0;
    margin-top: -8px;
}*/

.error-message {
    border-width: 1px;
    border-radius: 5px;
    padding: 10px;
    margin-left: 10px;
    position: relative;
}

/*.error-message::after {
    content: "";
    position: absolute;
    left: -8px;
    top: 22px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-right-color: #FF0000;
    border-left: 0;
    margin-top: -8px;
}*/

.error-message-container {
    display: flex;
    align-items: baseline;
}

.loading-message {
    display: flex;
    align-items: center;
    margin-top: 24px;
    margin-left: 24px;
}

.user-input-container {
    display: flex;
    justify-content: space-evenly;
    align-items: anchor-center;
    width: 100%;
    justify-items: center;
    margin-bottom: 15px;
    margin-top: 10px;
}

.user-input {
    width: 85%;
    max-width: 60rem;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 10px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}

.user-input .form-control:focus {
   outline: none;
   border: none;
   box-shadow: none;
}

.avatar-container {
    min-width: 50px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.avatar-user {
    background-color: #fff;
}

.avatar-assistant {
    background-color: aliceblue;
}

.avatar-img {
    width: 65%;
    height: 65%;
    object-fit: cover;
}

.user-avatar-img {
    width: 50%;
    height: 50%;
}

.typing-indicator {
    display: flex;
    gap: 5px;
}

    .typing-indicator span {
        width: 8px;
        height: 8px;
        background-color: #333;
        border-radius: 50%; 
        display: inline-block;
        animation: typing 0.8s infinite alternate;
    }

        .typing-indicator span:nth-child(1) {
            animation-delay: 0s;
        }

        .typing-indicator span:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator span:nth-child(3) {
            animation-delay: 0.4s;
        }

.chat-window-logo {
    background: url('../images/chat-assistant-icon.png');
    background-size: 25px;
    width: 30px;
    height: 30px;
    display: inline-block;
    line-height: 30px;
    vertical-align: middle;
    background-repeat: no-repeat;
}

.user-input-textarea {
    border: none;
    overflow: auto;
    outline: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
    resize: none; 
}

.chat-btn {
    cursor: pointer;
}

.stop-chat-btn {
    color: darkred;
}

.send-message-btn {
    color: #1c4e9e;
}

.chat-btn:hover {
    color: #00c2d1
}

.chat-btn-disabled {
    cursor: pointer;
    opacity: 0.7;
    color: grey;
}

.chat-btn-disabled:hover {
    color: grey;
}

.mic-btn, .text-btn  {
    color: grey;
    opacity: 0.7;
}

.mic-btn-active {
    color: #1c4e9e;
}

.documents-btn {
    height: 1.6rem;
    width: 11.5rem;
    font-size: 12px;
    border-radius: 8px;
    align-content: center;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.5);
}

.help-prompts-btn {
    height: 1.6rem;
    width: 10.5rem;
    font-size: 12px;
    border-radius: 8px;
    justify-content: center;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    background-color: aliceblue;
}

.help-prompts-btn.active {
    background-color: rgb(72 170 255);
    color: white;
}

.help-prompts-btn:hover {
     background-color: rgba(42, 88, 120, 0.8);
      color: white;
}

.help-prompts-subtitle {
    text-align: left;
    width: 90%;
    font-size: 1.2rem;
    margin-left: -1rem;
    margin-top: 2rem;
    font-weight: 500;
}

.documents-btn-disabled {
    opacity: 0.7;
    background-color: rgb(0,0,0,0.1);
}

    .documents-btn-disabled:hover {
        opacity: 0.7;
        background-color: rgba(42, 88, 120, 0.8);
        color: white;
    }

.documents-btn-enabled {
    background-color: rgb(72 170 255);
    color: white;
}

    .documents-btn-enabled:hover {
        background-color: rgba(42, 88, 120, 0.8);
    }

.no-select {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none; 
}

.voice-mode-container {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.voice-mode {
    width: 50px;
    height: 50px;
    background: aliceblue;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.3s ease-in-out;
    cursor: pointer;
}

    voice-mode.active::before,
    .voice-mode.active::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background: aliceblue;
        opacity: 0.7;
        transform: scale(1);
        animation: wave 1.0s infinite;
    }

    .voice-mode::after {
        animation-delay: 1.25s;
    }

    .voice-mode i {
        color: #1c4e9e;
    }

@keyframes wave {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

.voice-mode.active::before,
.voice-mode.active::after {
    animation-play-state: running;
}

.voice-mode-error {
    background: #D2122E;
    opacity: 0.5;
}

    .voice-mode-error i {
        color: white;
    }

.voice-mode-disabled {
    background: grey;
    opacity: 0.5;
}

    .voice-mode-disabled i {
        color: white;
    }

.help-prompts-container {
    max-width: 60rem;
    margin: 0 auto;
}

.help-prompts-container.active-thread {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.greet-user-msg {
    text-align: center;
    margin-top: 0.1rem;
    margin-bottom: 1.2rem;
    font-size: 1.5rem
}

.help-prompts {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
}

.help-prompts-group {
    padding: 0.5rem;
    text-align: center;
    min-width: 8rem;
    max-width: 8rem;
    background-color: aliceblue;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 5rem;
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    color: #1c4e9e;
}

.help-prompts-group-title {
    white-space: normal;
    margin-top: 0.5rem;
    text-align: center
}

.help-prompts-group:hover,
.help-prompts-group.selected {
    border-color: #00c2d1;
}

.help-prompt {
    border-width: 1px;
    border-radius: 5px;
    background-color: #fff;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 1rem;
    border-width: 1px;
    border-style: solid;
    border-color: transparent;
    width: 90%;
    cursor: pointer;
}

    .help-prompt:hover {
        border-color: #00c2d1;
    }

@keyframes typing {
    from {
        opacity: 0.2;
        transform: translateY(0px);
    }

    to {
        opacity: 1;
        transform: translateY(-5px); 
    }
}
