﻿.btn-secondary.dropdown-toggle {
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
}

.btn-secondary.dropdown-toggle:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.offcanvas-body {
    height: calc(100vh - 120px) !important;
    display: flex;
    flex-direction: column;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    height: calc(100vh - 150px);
}

.message-input {
    width: 100%;
    padding: 1vh 6vh;
    border: 1px solid #ccc;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.1);
    min-height: 35px;
    max-height: 140px;
}

.send-btn {
    right: 45px;
    font-size: 18px;
    position: absolute;
    margin: 0 5px;
    background-color: transparent;
    color: rgb(167, 167, 167);
    border: none;
    border-radius: 3vh;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 1vh 1.5vh;
}

    .send-btn.cancel {
        background-color: transparent;
        color: #e40d0d;
        animation: pulse 1.5s infinite;
    }

        .send-btn.cancel .button-content {
            transform: scale(1.05);
        }

    .send-btn:hover {
        background-color: transparent;
        color: #3C8DBC;
    }

.record-btn {
    z-index: 9999 !important;
    margin: 0 5px;
    position: absolute;
    padding: 1vh 1.5vh;
    font-size: 18px;
    background-color: transparent;
    color: rgb(167, 167, 167);
    border: 0;
    border-radius: 3vh;
    transition: all 0.3s ease;
    overflow: hidden;
}

    .record-btn.cancel {
        background-color: transparent;
        color: #e40d0d;
        animation: pulse 1.5s infinite;
    }

        .record-btn.cancel .button-content {
            transform: scale(1.05);
        }

    .record-btn:hover {
        background-color: transparent;
        color: #3C8DBC;
    }


.message {
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 5px 15px;
    max-width: 80%;
    white-space: pre-line;
}

.user-message {
    border-radius: 20px 20px 0px 20px;
    display: table;
    margin: 10px 0px;
    background-color: #0AB39C26 !important;
    color: #0AB39C !important;
    margin-left: auto;
}

.bot-message {
    border-radius: 20px 20px 20px 0px;
    display: table;
    margin: 0px;
    background-color: #f3f6f9 !important;
    color: #212529 !important;
    margin-right: auto;
}

.init-message {
    white-space: pre-line;
    padding: 5px 15px;    
    display: table;
    border-radius: 20px 20px 20px 0px;
    background-color: #f1f1f1;
/*    border: 1.5px solid rgb(60, 141, 188);*/
}

.loading-spinner {
    z-index: 9998 !important;
    display: table;
    width: 4vh;
    height: 4vh;
    border: 0.3vh solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #3498db;
    animation: spin 1s ease-in-out infinite;
    padding: 0.5vh 0.5vh;
    position: relative !important;
}

.send-btn .button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.message-header {
    font-size: 11px;
    color: #777777;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

    .date-separator:first-child {
        margin-top: 0px;
    }

    .date-separator::before, .date-separator::after {
        content: "";
        width: 100%;
        border-top: 1px solid #d1d1d1;
        margin: 0 10px;
    }

#Options {
    display: inline;
    justify-content: space-between;
    flex-wrap: wrap;
    margin: 5px 0px;
}

.btnlist {
    display: inline-block;
    margin-top: 5px;
}

.close {
    font-size: 13px;
    padding-bottom: 0px;
    color: white;
    opacity: 1;
    text-shadow: none;
}

.audioLoding {
    position: absolute;
    margin: 0 5px;
    font-size: 18px;
    padding-top: 5px;
    padding-left: 5px;
    background-color: transparent;
    overflow: hidden;
}

    .audioLoding .loading-spinner {
        width: 25px;
        height: 25px;
    }

@@keyframes recordingPulse {
    0% {
        color: #ff4747;
        transform: scale(1);
        opacity: 1;
        text-shadow: 0 0 5px #ff4747;
    }

    25% {
        color: #ff1a1a;
        transform: scale(1.1);
        opacity: 0.8;
        text-shadow: 0 0 10px #ff1a1a;
    }

    50% {
        color: #b30000;
        transform: scale(1.3);
        opacity: 0.6;
        text-shadow: 0 0 15px #b30000;
    }

    75% {
        color: #ff1a1a;
        transform: scale(1.1);
        opacity: 0.8;
        text-shadow: 0 0 10px #ff1a1a;
    }

    100% {
        color: #ff4747;
        transform: scale(1);
        opacity: 1;
        text-shadow: 0 0 5px #ff4747;
    }
}

.AIbtndiv {
    margin: 5px 0px;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100% !important;
}
