﻿body {
    height: 100vh;
    font-family: Inter,sans-serif !important;
    margin: 0px;
    background-color: white;
    overflow: hidden;
    background: gainsboro;
    display: contents;
}

.title {
    margin: auto;
    font-size: x-large;
    font-family: Inter, sans-serif;
    color: rebeccapurple;
}

@media (min-width: 450px) {
    .main-card {
        width: 96%;
        max-width: 370px;
        height: calc(100% - 62px);
        border-radius: 20px !important;
        max-height: 480px;
        /* margin: 16px !important; */
    }
}

.collapsed {
    width: 48px !important;
    height: 48px !important;
    border-radius: 24px !important;
    margin: 16px !important;
    right: 0 !important;
    bottom: 15px !important;
}

@media screen and (max-width: 768px) {
    #chatbot {
        right: 0 !important;
        bottom: 0 !important;
        width: 100%;
        height: 100%;
    }
}

.main-card {
    z-index: 99999999;
    background: white;
    color: #202020;
    width: 100%;
    height: 100%;
    margin: 0px;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    right: 10px;
    bottom: 32px;
    position: fixed;
    transition: all 0.5s;
    box-shadow: 0 10px 16px 0 rgba(0, 0, 0, 0.2),0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

#chatbot_toggle {
    position: absolute;
    right: 0;
    border: none;
    height: 48px;
    width: 48px;
    background: #202020;
    padding: 14px;
    color: white;
    margin-top: 0 !important;
}

.mini {
    top: 10px;
    padding: 10px;
    position: absolute;
    right: 0;
}
/*
#chatbot_toggle:hover {
    background: #202020;
}*/

.line {
    height: 2px;
    background-color: #fff;
    width: 100%;
    opacity: 0.2;
}

.main-title {
    background-color: #202020;
    font-size: large;
    font-weight: 600;
    display: flex;
    height: 60px;
}

    .main-title > div {
        height: 48px;
        width: 48px;
        display: flex;
        margin-left: 8px;
    }

    .main-title .profile-img {
        height: 35px;
        width: 35px;
        display: flex;
        margin-left: 20px;
        border-radius: 50%;
        overflow: hidden;
        border: 1px solid #ffffff;
        background-color: #d9cab1;
    }

    .main-title svg {
        height: 24px;
        margin: auto;
    }

    .main-title > span {
        margin: auto auto auto 8px;
        color: white;
        font-size: 16px;
    }

.chat-area {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    height: 0px;
    padding: 0 4% 0 4%;
}

.input-message {
    padding: 12px 0px 12px 12px;
    flex-grow: 1;
    border: none;
    overflow-y: auto;
    resize: none;
    width: 89%;
    margin: 2px;
    position: relative;
    display: block;
    max-height: 120px;
    font-weight: 300;
}

    .input-message:focus {
        outline: none;
        border-color: inherit;
        box-shadow: none;
        outline-offset: 2px;
        width: 89%;
        margin: 2px;
        position: relative;
        display: block;
        max-height: 120px;
        font-weight: 300;
    }

.input-div {
    width: 94%;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0 auto 20px auto;
    display: block;
    border-radius: 8px;
    position: relative;
    min-height: 36px;
}

.input-send {
    background: transparent;
    width: fit-content;
    height: fit-content;
    right: 0;
    border: none;
    cursor: pointer;
    position: absolute;
    bottom: 12px;
    display: none;
    padding-right: 12px;
}

    .input-send:hover {
        background-color: transparent !important;
    }

.input-mic {
    background: transparent;
    width: fit-content;
    height: fit-content;
    left: 0;
    border: none;
    cursor: pointer;
    bottom: 0;
    position: absolute;
    display: none;
}

.chat-message-div {
    display: flex;
}

.chat-message-sent {
    background-color: white;
    margin: 8px 16px 8px 64px;
    padding: 8px 16px;
    animation-name: fadeIn;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 100ms;
    color: black;
    border-radius: 8px 8px 2px 8px;
    background-color: lavender;
}

.chat-message-received {
    background-color: white;
    margin: 8px 64px 8px 16px;
    padding: 8px 16px;
    animation-name: fadeIn;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 100ms;
    color: black;
    border-radius: 8px 8px 8px 2px;
    background-color: lavender;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.profile-img {
    margin: auto 0px auto 49px;
}

.Refresh-img {
    margin: auto 2px auto 19px !important;
    width: 33px !important;
}

.minus-img {
    margin: auto 0px auto 49px;
}

.Zoom-img {
    margin: auto 22px auto 1px;
}

.chat-area::-webkit-scrollbar,
.input-message::-webkit-scrollbar {
    width: 0px;
    height: 4px;
}

.chat-area::-webkit-scrollbar-track,
.input-message::-webkit-scrollbar-track {
    background: #ffffff;
}

.chat-area::-webkit-scrollbar-thumb,
.input-message::-webkit-scrollbar-thumb {
    background: #000000;
}

    .chat-area::-webkit-scrollbar-thumb:hover,
    .input-message::-webkit-scrollbar-thumb:hover {
        background: #202020;
    }

.input-message::placeholder {
    color: #9F9F9F;
    font-weight: 300;
}


.message {
    display: flex;
    align-items: flex-end;
    margin-bottom: 10px;
}

    .message.user:first-child {
        margin-right: 20px;
        margin-top: 20px;
    }

    /* Apply only margin-right to all other elements */
    /*.message.user:not(:first-child) {
        margin-right: 20px;
    }*/

    .message.bot {
        flex-direction: column;
        align-items: baseline;
        /* margin-left: 20px;*/
    }

        .message.bot .avatar {
            background-color: #ffffff;
            color: white;
        }

    .message.botyping {
        flex-direction: column;
        align-items: baseline;
    }

        .message.botyping .avatar {
            background-color: #ffffff;
            color: white;
        }
/*
    .message.user .avatar { 
        color: white;
    }*/

.avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background-color: #D9D9D9;
    color: #555555;
    display: inline-flex;
    cursor: context-menu;
}

.message.bot .text {
    padding: 10px 0;
    border-radius: 8px;
    max-width: 86%;
    min-width: 72%;
    font-size: 13px;
    flex: 1;
    text-align: left;
    color: #202020;
    background-color: #ffffff;
    font-weight: 300;
    line-height: 25px;
}

.message.botyping .text {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 15px 10px;
    border-radius: 8px;
    max-width: 72%;
    color: rgba(223, 223, 223, 1);
    font-size: 12px;
    flex: 1;
    text-align: left;
}

.message.user .text {
    background-color: rgba(237, 241, 255, 1);
    padding: 8px 12px;
    border-radius: 8px 8px 0px 8px;
    max-width: 80%;
    margin-left: auto;
    font-size: 13px;
    color: #060339;
    overflow: hidden;
    text-align: left;
    font-weight: 300;
    line-height: 25px;
}

.message-content {
    display: inline;
    align-items: flex-end;
    max-width: 100%;
    min-width: 100%;
}

.message-content-botyping {
    display: flex;
    align-items: flex-end;
}

.message.bot .avatar {
    margin-right: 10px;
    flex-shrink: 0;
    display: inline-table;
}

.message.botyping .avatar {
    margin-right: 10px;
}

.message.user .avatar {
    margin-left: 10px;
}

/* welcome messgae style */

.welcome-message {
    display: flex;
    align-items: center;
}

    .welcome-message .welcome-bot {
        flex-direction: column;
        align-items: baseline;
    }

.welcome-message-content {
    display: flex;
    align-items: center;
    width: 100%;
}

    .welcome-message-content .welcome-text {
        background-color: #000000;
        max-width: 100%;
        color: #FFFFFF;
        font-size: 12px;
        flex: 1;
        text-align: left;
    }
/* .reactionButtons {
      display: flex;
      justify-content: flex-end;
      margin-top: 8px;
      float: right;
      width: 86%;
      position: relative;
    }
  
    @media (max-width: 322px) { 
      .reactionButtons {
        display: flex;
        justify-content: flex-end;
        margin-top: 8px;
        float: right;
        width: 96%;
        position: relative;
      }
    }
  
    @media (min-width: 425px) { 
      .reactionButtons {
        display: flex;
        justify-content: flex-end;
        margin-top: 8px;
        float: right;
        width: 74%;
        position: relative;
      }
    }
  
    @media (min-width: 768px) { 
      .reactionButtons {
        display: flex;
        justify-content: flex-end;
        margin-top: 8px;
        float: right;
        width: 86%;
        position: relative;
      }
    }
  

    .reactionButtons button {
      background-color: #ffffff;
      color: #333;
      border: none; 
      padding:0;
      margin-left: 6px;
      cursor: pointer;
      border-radius: 4px;
    }

    .reactionButtons button:hover {
      background-color: #e0e0e0;
    } */
.typing-indicator {
    display: flex;
    align-items: center;
    /*margin: 8px 64px 8px 58px;*/
}

    .typing-indicator .dot {
        height: 7px;
        width: 14px;
        margin: 0 2px;
        background-color: rgba(223, 223, 223, 1);
        border-radius: 50%;
        display: inline-block;
        animation: typing 1.5s infinite;
    }

        .typing-indicator .dot:nth-child(2) {
            animation-delay: 0.2s;
        }

        .typing-indicator .dot:nth-child(3) {
            animation-delay: 0.4s;
        }

@keyframes typing {
    0%, 100% {
        transform: scale(0.5);
        background-color: rgba(223, 223, 223, 1);
    }

    50% {
        transform: scale(1);
        background-color: rgba(128, 128, 128, 1);
    }
}

.typing-indicator .dot:nth-child(2) {
    animation: typing 1.5s infinite;
    animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
    animation: typing 1.5s infinite;
    animation-delay: 0.4s;
}

.suggestion-box {
    display: none;
    width: 94%;
    margin: auto;
    flex-wrap: wrap;
    justify-content: flex-start;
}

    .suggestion-box .suggestion {
        background-color: rgba(223, 223, 223, 1);
        border: 1px solid rgba(223, 223, 223, 1);
        border-radius: 8px;
        width: fit-content;
        height: fit-content;
        color: #202020;
        padding: 6px;
        margin-left: 3px;
        margin-bottom: 2px;
        font-size: 13px;
        display: none; /* Hide initially for all except the first */
        transition: all 0.3s ease-in-out; /* Add animation for smooth transition */
        font-weight: 300;
    }

        .suggestion-box .suggestion:first-child {
            display: block; /* Show the first suggestion by default */
        }

        .suggestion-box .suggestion:hover {
            background-color: rgb(255 255 255);
            color: rgba(0, 0, 0, 0.7);
            cursor: pointer;
            border: 1px solid rgba(0, 0, 0, 0.5);
        }

.suggestion {
    max-height: 200px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

    .suggestion .close-button-suggest {
        margin-left: 6px;
        color: #202020;
        cursor: pointer;
        display: none;
    }

        .suggestion .close-button-suggest:hover {
            color: #CE7D00;
        }

/* Slide-down animation */
@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }

    to {
        max-height: 200px;
        opacity: 1;
    }
}

.slide-down {
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideUp {
    from {
        max-height: 200px;
        opacity: 1;
    }

    to {
        max-height: 0;
        opacity: 0;
    }
}

.slide-up {
    animation: slideUp 0.3s ease-in-out;
}

.more-button, .less-button {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.5);
    color: #202020;
    border-radius: 8px;
    width: fit-content;
    height: fit-content;
    padding: 6px;
    margin-left: 3px;
    margin-bottom: 2px;
    font-size: 13px;
}

    .more-button:hover, .less-button:hover {
        background-color: #dfdfdf;
        color: rgba(0, 0, 0, 0.7);
        border: 1px solid #dfdfdf;
    }


.chatbox {
    display: contents;
}

.letter {
    display: inline;
    animation: typing-effect 0.05s forwards;
}

.scroll-container {
    width: 100%;
    overflow: auto;
    scrollbar-width: thin; /* Firefox: hide scrollbar */
    border: 1px solid #ccc;
    border-radius: 3px 3px 5px 5px;
}

    .scroll-container::-webkit-scrollbar {
        width: 0; /* Chrome/Safari/Edge: hide scrollbar by default */
    }

    .scroll-container:hover::-webkit-scrollbar {
        width: 8px; /* Chrome/Safari/Edge: show scrollbar on hover */
    }

    .scroll-container::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
    }

.bot_tab tr.gvnormal_bot {
    font-size: 13px !important;
    font-weight: 300;
    line-height: 23px;
}

.highlighted-th {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: rgba(0, 0, 0, 1) !important;
    padding: 6px !important;
    text-align: left !important;
}

.gv_idcube_bot {
    color: #000000fc !important;
    font-family: Inter,sans-serif;
    font-size: 13px;
    font-weight: 300;
    line-height: 25px;
}

.spandownload {
    border: 1.4px solid #5555559c;
    padding: 7px 8px 7px 8px;
    border-radius: 7px;
    color: #000000bd;
    font-weight: bold;
}

.divtextcenter {
    text-align: center;
}


.tippy-box[data-animation=scale][data-placement^=top] {
    transform-origin: bottom
}

.tippy-box[data-animation=scale][data-placement^=bottom] {
    transform-origin: top
}

.tippy-box[data-animation=scale][data-placement^=left] {
    transform-origin: right
}

.tippy-box[data-animation=scale][data-placement^=right] {
    transform-origin: left
}

.tippy-box[data-animation=scale][data-state=hidden] {
    transform: scale(.5);
    opacity: 0
}

.tippy-content {
    font-size: 12px !important;
}

.white-bg {
    background-color: white !important;
}

.blue-bg {
    background-color: lightblue !important;
    border-radius: 4px;
}

.speaker-icon {
    margin-top: 8px;
    font-size: 18px;
    cursor: pointer;
    color: #555;
}

    .speaker-icon:hover {
        color: #204e81;
    }

.tooltip-highlight-blue {
    text-decoration: underline;
    font-weight: bold;
    color: #a6a6a6;
    text-decoration: underline;
}


.download-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffe7c0;
    margin-bottom: 14px;
    border-radius: 8px;
    padding: 6px 10px;
    max-width: 100%;
    font-family: Inter, sans-serif;
    font-size: 13px;
}

.info-text {
    display: flex;
    align-items: center;
    color: #202020;
}

    .info-text i {
        font-style: normal;
        margin-right: 8px;
    }

.download-button {
    display: flex;
    align-items: center;
    background-color: #2c226b; /* Dark blue */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

.btndownload {
    width: 17px;
    height: 17px;
}

.textarea-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}


.toggle-inside {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 13px;
    color: #202020 !important;
    margin-bottom: 10px;
    margin-left: 5px;
    padding: 10px 7px 4px 12px;
    font-weight: 300;
    line-height: 25px;
}

.switchChat {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}

    .switchChat input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 20px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: #33333342;
}

    input:checked + .slider:before {
        transform: translateX(14px);
        background-color: #00a400;
    }

.info-icon {
    cursor: pointer;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 1000000;
}

.popup-content {
    background-color: #fff;
    border-radius: 10px;
    max-width: 30%;
    margin: 0% auto;
    padding: 20px;
    top: 160px;
    position: relative;
}

.gv_idcube_bot tr.gvnormal_bot {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.gv_idcube_bot {
    border: solid 1px rgba(0, 0, 0, 0.05);
}

    .gv_idcube_bot th {
        border-bottom: solid 1px rgba(0, 0, 0, 0.05);
    }

th {
    font-weight: 600;
}

.gv_idcube_bot tr td {
    padding: 0px 5px 0px 5px;
}

.gv_idcube_bot tr th {
    padding: 0px 5px 0px 5px;
}

label {
    margin-bottom: 0px;
}

th {
    font-weight: 500;
}

b, strong {
    font-weight: 500;
}

#spnhName {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.tippy-box {
    background-color: #fff;
    color: #333;
    box-shadow: 2px 4px 8px rgb(0 0 0 / 12%);
    line-height: 16px;
    max-width: 400px;
    max-height: 400px; /* You can adjust height */
    overflow-y: auto;
    z-index: 999999 !important;
}

.tippy-arrow {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.highlight-box {
    background-color: #f0f8ff;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 6px;
}

.tip-box {
    background-color: #F897210D;
    padding: 5px;
    border-radius: 8px;
    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
}

    .tip-box span {
        color: #E38A11;
        font-weight: 700;
        font-size: 12px;
        line-height: 16px;
    }

.title-box {
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 6px;
}

    .title-box span {
        font-weight: 300;
        font-size: 10px;
    }

.Example-box {
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 6px;
}

#chatbot .tittle-top-details {
    overflow: visible !important;
}
