﻿.chat-wrapper {
    font-family: 'Segoe UI';
    width: 460px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: absolute;
    right: 75px;
    bottom: 39px;
    z-index: 10;
}

.gap-8px {
    gap: 8px;
}

.chat-header {
    color: white;
    background: linear-gradient(90deg, #0074CA 0%, #5297FF 100%);
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}

#chat_refresh, #chatbot_close {
    background: transparent;
    padding: 4px;
}

.send-btn {
    background: linear-gradient(90deg, #0074CA 0%, #5297FF 100%);
}

.chat-container {
    height: 40vh;
    overflow-y: auto;
    margin-bottom: 4px;
    margin-right: 4px;
}

.chat-row {
    display: flex;
    margin-bottom: 12px;
}

    .chat-row.bot {
        justify-content: flex-start;
    }

    .chat-row.user {
        justify-content: flex-end;
    }

.chat-bubble {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 75%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}

.chat-bubble {
    background: #EDEDED;
    color: #212121;
}

.user .chat-bubble {
    background: #D2F3FF;
    color: #212121;
}

#userInput:focus {
    outline: none !important;
}

.input-area {
    box-shadow: 0px 1px 5px -1px #0000004D;
    border-radius: 16px;
}

.input-area-box-shadow {
    box-shadow: 0px -3px 5px 0px #00000017,0px 12px 13px 0px #0000002B,0px 4px 6px 0px #0000001F,0px -12px 30px 0px #0000001F,0px 54px 55px 0px #00000040 !important;
}

#sendBtn {
    background: linear-gradient(90deg, #0074CA 0%, #5297FF 100%);
    border-radius: 8px;
}

.chatbox-main-container {
    margin-bottom: 72px;
}

.chat-show-btn, .chat-route-btn {
    color: #0078D4;
    border: 1.5px solid #0078d4;
    border-radius: 8px;
    font-size: 12px;
    padding: 4px 6px;
    font-weight: 600;
    width: 100%;
    background: #ffffff;
}

.input-main-container {
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    position: absolute;
    bottom: 0;
    left: 0;
}

#sendBtn img {
    margin-left: 2px;
}

.scrollbar::-webkit-scrollbar {
    width: 5px !important;
}

.scrollbar::-webkit-scrollbar-track {
    background-color: #E8E8E8 !important;
    border-radius: 10px !important;
    margin-top: 4px;
}

.scrollbar::-webkit-scrollbar-thumb {
    background-color: #9D9D9D !important;
    border-radius: 10px !important;
}



/* Add these CSS styles for better chatbot styling */
.chatbot-trigger-btn button:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.typing-dots span {
    animation: typing 1.4s infinite;
    animation-fill-mode: both;
}

    .typing-dots span:nth-child(1) {
        animation-delay: 0.2s;
    }

    .typing-dots span:nth-child(2) {
        animation-delay: 0.4s;
    }

    .typing-dots span:nth-child(3) {
        animation-delay: 0.6s;
    }

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
    }

    30% {
        opacity: 1;
    }
}

@media only screen and (max-width:859px) {
    /* Hide scrollbars on mobile - keep panels scrollable via touch */
    .chat-container,
    .scrollbar {
        scrollbar-width: none;
        -ms-overflow-style: none;

        &::-webkit-scrollbar {
            display: none;
        }
    }
}
