﻿.mic-visualizer {
    display: flex;
    align-items: flex-end;
    height: 24px;
    gap: 3px;
    margin-left: 10px;
}

    .mic-visualizer .bar {
        width: 4px;
        height: 6px;
        background-color: #007bff;
        transform-origin: bottom;
        transform: scaleY(1);
        border-radius: 2px;
        opacity: 0.85;
    }

    /* Animate bars only when speaking */
    .mic-visualizer.speaking .bar1 {
        animation: bounceTall 0.3s infinite ease-in-out alternate;
    }

    .mic-visualizer.speaking .bar2 {
        animation: bounceWide 0.4s infinite ease-in-out alternate 0.1s;
    }

    .mic-visualizer.speaking .bar3 {
        animation: bounceTall 0.25s infinite ease-in-out alternate 0.2s;
    }

    .mic-visualizer.speaking .bar4 {
        animation: bounceWide 0.35s infinite ease-in-out alternate 0.3s;
    }

    .mic-visualizer.speaking .bar5 {
        animation: bounceTall 0.3s infinite ease-in-out alternate 0.15s;
    }

@keyframes bounceTall {
    0% {
        transform: scaleY(0.2);
    }

    50% {
        transform: scaleY(2.2);
    }

    100% {
        transform: scaleY(0.4);
    }
}

@keyframes bounceWide {
    0% {
        transform: scaleY(0.4);
    }

    30% {
        transform: scaleY(2.0);
    }

    60% {
        transform: scaleY(1.0);
    }

    100% {
        transform: scaleY(0.3);
    }
}

#drop-zone {
    border: 3px dashed #007bff;
    padding: 10px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

    #drop-zone.bg-primary {
        background-color: #007bff;
        color: #fff;
        border-color: #0056b3;
    }

    #drop-zone i {
        transition: transform 0.3s;
    }

#file-preview {
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#prompts_Specific .pre-prompt, #prompts_Primary .pre-prompt {
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    overflow-x: auto;
    padding: 8px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.chat-header {
    background-color: #00008B;
    border-radius: inherit;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    color: white;
}

.circle-image {
    max-width: 100px;
    border-radius: 50%;
    border: 0px solid #000;
    object-fit: cover;
    max-height: 50px;
}

/* Background o message list */
#messagesdiv {
    padding-top: 20px;
    flex: 1;
    overflow: auto;
}

/* Response typed by bot */
.response {
    float: left;
    display: inline-block;
    background-color: #cccccc;
    width: 80%;
    margin-left: 4px;
    margin-bottom: 10px;
    border-radius: 20px 20px 20px 0px;
    color: black;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .response {
        width: 98%; /* Adjust to full width for small devices */
    }
}

/* Question typed by user */
.question {
    float: right;
    display: inline-block;
    background-color: dodgerblue;
    width: 80%;
    margin-right:4px;
    margin-bottom: 10px;
    border-radius: 20px 20px 0px 20px;
    font-size: 1rem;
    color: white;
}

@media (max-width: 768px) {
    .question {
        width: 98%; /* Adjust to full width for small devices */
    }
}

    .response pre, .question pre {
        word-break: break-word;
        white-space: break-spaces;
        font-size: inherit;
        font-family: inherit;
        font-weight: inherit;
    }

/* System message */
.system {
    float: left;
    background-color: gray;
    width: 80%;
    padding: 10px;
    color: white;
    font-size: 13px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

@media (max-width: 576px) {
    .system {
        width: 99%; /* Adjust to full width for small devices */
    }
}
    .system pre {
        word-break: break-word;
        white-space: break-spaces;
        font-family: 'Courier', monospace;
        font-weight: bold;
    }


.chat-col-height {
    height: calc(100vh - 110px);
}

@media (min-width: 576px) {
    .chat-col-height {
        height: calc(100vh - 155px);
    }
}

.btn-action {
    float: left;
    margin-bottom: 10px;
}

/* Error message */
.response_error {
    float: left;
    display: inline-block;
    background-color: red;
    width: 80%;
    padding: 10px;
    margin: 5px 20px;
    border-radius: 20px 20px 0 20px;
    color: white;
    font-size: 13px;
}

    .response_error pre {
        word-break: break-word;
        white-space: break-spaces;
        font-family: 'Courier', monospace;
        font-weight: bold;
    }

.avatar_div {
    float: left;
    margin-right: 10px;
    padding-right: 5px;
    border-right: 1px solid black;
}

.avatar_img {
    border-radius: 50%;
    max-height: 65px;
}

.user_uploaded_img {
    margin-bottom:10px;
    max-height: 200px;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .user_uploaded_img {
        max-height: 300px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .user_uploaded_img {
        max-height: 400px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .user_uploaded_img {
        max-height: 500px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .user_uploaded_img {
        max-height: 590px;
    }
}

.textmessage input {
    width: 100%;
    padding: 20px;
    border: none;
}

    .textmessage input:focus {
        outline: none;
    }

.typing-div {
    float: left;
    display: inline-block;
    clear: both;
}

.typing-text {
    font-size: 1rem;
    padding-left: 20px;
    color: black !important;
}

/* The "Typing..." text */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
}

    .typing-indicator span {
        display: inline-block;
        width: 6px;
        height: 6px;
        margin-right: 3px;
        background-color: black;
        border-radius: 50%;
        opacity: 0;
        animation: typing 1.5s infinite;
    }

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

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

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

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

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

@keyframes typing {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* When hovered over message time is shown */
.time-question, .time-response, .time-system {
    background-image: url('/img/clock.png');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position-x: 5px;
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    color: black;
    padding: 5px;
    padding-left: 30px;
    border: 1px solid #ccc;
}

.time-response {
    border-radius: 20px 20px 0 20px;
}

.time-question {
    border-radius: 20px 20px 20px 0;
}

.time-system {
    border-radius: 20px 20px 20px 0;
}

.hover-div-response {
    position: relative;
    border: 1px solid black;
    padding: 10px;
    padding-bottom: 0px;
    box-sizing: border-box;
}

.hover-div-question {
    position: relative;
    border: 1px solid black;
    padding: 10px;
    padding-bottom:0px;
    box-sizing: border-box;
}

.hover-div-system {
    position: relative;
    border-style: dashed;
    border-width: 2px;
    border-color: #333;
    padding:10px;
    padding-bottom: 0px;
    box-sizing: border-box;
    background-color: white;
    color: black;
    margin-bottom: 10px;
}

    .hover-div-response:hover .time-response, .hover-div-question:hover .time-question, .hover-div-system:hover .time-system {
        display: block;
    }

.textmessage .btn {
    padding: .25rem .5rem;
    font-size: .875rem;
}

.questioninput {
    width: 100%;
    resize: none;
    outline: none;
    padding:10px!important;
    font-weight: 600;
    font-size: 1rem;
    height:100%;
    border: 1px solid #ced4da;
    border-radius: .375rem;
}

#activeEmployees .card {
    border: none;
    background-color: #fafafa;
}


.slide-in-left {
    transform: translateX(-100%);
    animation: slideInFromLeft 0.5s forwards;
}

.slide-out-left {
    transform: translateX(0%);
    animation: slideOutToLeft 0.5s forwards;
}

.slide-in-right {
    transform: translateX(100%);
    animation: slideInFromRight 0.5s forwards;
}

.slide-out-right {
    transform: translateX(0%);
    animation: slideOutToRight 0.5s forwards;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToLeft {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes slideOutToRight {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

@keyframes fadeInHighlight {
    from {
        background-color: #ffffff;
        transform: scale(1);
        box-shadow: none;
    }

    to {
        background-color: #f0f8ff; /* Light blue background */
        transform: scale(1.01); /* Slight pop */
        box-shadow: 0px 0px 15px rgba(0, 123, 255, 0.5); /* Glow effect */
    }
}

.my-employee:hover {
    background-color: #f8f9fa;
    cursor: pointer;
    transform: scale(1.01); /* Small hover effect */
    transition: transform 0.2s ease-in-out;
}

.selected-employee, .selected-company, .selected-user {
    animation: fadeInHighlight 0.3s ease-in-out forwards;
    border: 2px solid #007bff;
    cursor: default;
}