.chatbot-gif {
    position: fixed;
    width: 150px;
    cursor: pointer;
    bottom: 25%;
    right: -20px;
    z-index: 800;
}

.chatbot-modal {
    position: fixed;
    z-index: 800;
    width: 350px;
    height: 550px;
    min-width: 300px;
    min-height: 400px;
    background-color: rgb(255,255,255);
    border-radius: 10px;
    display: none;
    margin-right: 20px;
    overflow: hidden;
    /* border: solid 1px green; */
    box-shadow: 3px 3px 5px rgb(80,80,80,0.6);
    flex-direction: column;
    bottom: 20px;
    right: 0px;
}

.chatbot-modal-ref {
    width: 450px;
}

.chatbot-modal-header {
    background-color: #c8e4d8;
}

.chatbot-modal-body {
    background-color: #f7f7f7;
    flex-grow: 1;
    padding-top: 10px;
    padding-bottom: 10px;
    overflow-y: auto;
    position: relative;
    z-index: 801;
    cursor: grab;
}

.chatbot-close-button {
    background-color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    border: none;
    padding: 0;
}

.chat-container-1 {
    display: flex;
    align-items: start;
    justify-content: start;
}

.chat-container-2 {
    display: flex;
    align-items: start;
    justify-content: end;
}

.chat-content-container {
    flex-grow: 0;
    z-index: 802;
    cursor: text;
}

.chat-content-1 {
    background-color: #c8e4d8;
    max-width: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.chat-content-2 {
    background-color: #ffffff; 
    max-width: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
}

.chat-content {
    white-space: pre-line;
}

.chat-photo {
    display: flex; 
    flex-direction: column; 
    align-items:center; 
    justify-content: center;
    min-width: 50px;
}

.chat-profile-name {
    font-weight: 600;
}

.chatbot-modal-footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-timestamp {
    font-size: 0.8rem;
    font-weight: 700;
    color: rgb(80,80,80);
}

/* Chatbot Resize Handler */

.chatbot-resize-handle {
    background-color: transparent !important;
    z-index: 888;
    position: absolute;
}

.resize-handle-top {
    height: 10px;
    width: 100%;
    top: -8px;
    cursor: ns-resize;
}

.resize-handle-bottom {
    height: 10px;
    width: 100%;
    bottom: -8px;
    cursor: ns-resize;
}

.resize-handle-right {
    height: 100%;
    width: 15px;
    right: -12px;
    cursor: ew-resize;
}

.resize-handle-left {
    height: 100%;
    width: 15px;
    left: -12px;
    cursor: ew-resize;
}


/* Scrollbar track */
.chatbot-modal-body::-webkit-scrollbar {
    width: 8px; /* Lebar scrollbar */
}

/* Handle (slider) */
.chatbot-modal-body::-webkit-scrollbar-thumb {
    background-color: #c8e4d8; /* Warna handle */
    border-radius: 8px; /* Membuat handle menjadi rounded */
}

/* Handle on hover */
.chatbot-modal-body::-webkit-scrollbar-thumb:hover {
    background-color: #a2cebb; /* Warna handle saat hover */
}

/* Scrollbar track */
.chatbot-modal-body::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Warna track scrollbar */
    border-radius: 8px; /* Rounded track */
}

/* Chatbot Input Scroll */

/* Scrollbar track */
#chatbot-input::-webkit-scrollbar {
    width: 8px; /* Lebar scrollbar */
}

/* Handle (slider) */
#chatbot-input::-webkit-scrollbar-thumb {
    background-color: #c8e4d8; /* Warna handle */
    border-radius: 8px; /* Membuat handle menjadi rounded */
}

/* Handle on hover */
#chatbot-input::-webkit-scrollbar-thumb:hover {
    background-color: #a2cebb; /* Warna handle saat hover */
}

/* Scrollbar track */
#chatbot-input::-webkit-scrollbar-track {
    background-color: #f1f1f1; /* Warna track scrollbar */
    border-radius: 8px; /* Rounded track */
}

.chatbot-loading {
    position: absolute; 
    left: calc(50% - 25px); 
    top: calc(50% - 8.5px)
}

.chat-date {
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: rgb(230,230,230);
    letter-spacing: 2px;
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 10px !important;
    text-transform: uppercase;
}

.chat-margin-right{
    margin-right: 50px;
}

.chat-margin-left{
    margin-left: 50px;
}

.chatbot-param{
    flex-grow: 1;
}

@media screen and (max-width: 768px) {
    .chatbot-gif {
        width: 100px;
        right: -20px;
        z-index: 800;
    }
    
    .chatbot-modal {
        width: 80%;
        height: 60%;
        min-width: 200px;
        min-height: 300px;
    }

    .chatbot-modal-ref {
        width: 80%;
    }

    .chat-content-container {
        font-size: 0.8rem;
    }

    .chat-margin-right{
        margin-right: 50px;
    }
    
    .chat-margin-left{
        margin-left: 50px;
    }

    .chat-photo {
        width: 30px !important;
    }

    .chat-margin-right{
        margin-right: 30px;
    }
    
    .chat-margin-left{
        margin-left: 30px;
    }

    .chat-profile-name {
        font-size: 0.8rem !important;
    }
}