.chat-header a {
    text-decoration: none;
    color: white;
}

.chat-header {
    position: relative;
    background-color: #3284f9;
    color: #fff;
    padding: 15px 20px 0;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header > div {
    display: flex;
    align-items: center;
}

.chat-header-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    transform: translateY(100%);
    z-index: 100;
}

.bot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.header-title p {
    font-size: 12px;
    color: white;
}

#chatbot-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    height: 50px;
    width: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    background-color: #1087ff;
    color: #fff;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
    transition: 1s all ease;
}

#chatbot-toggle-btn.open {
    transform: rotate(45deg);
}

#chatbot-toggle-btn:hover {
    background-color: #0074cc;
}

.chatbot-popup {
    display: none;
    position: fixed;
    bottom: 90px;
    right: 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    width: 350px;
    max-width: 90%;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#close-btn {
    background-color: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.chat-box {
    max-height: 350px;
    overflow-y: auto;
    padding: 35px 20px;
}

.chat-input {
    display: grid;
    grid-template-columns: auto 80px;
    align-items: center;
    padding: 10px 20px;
    border-top: 1px solid #ddd;
}

#user-input {
    width: 100%;
    font-family: "Poppins";
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 12px;
    outline: none;
}

#send-btn {
    width: 100%;
    font-family: "Poppins", sans-serif;
    padding: 10px 20px;
    border: none;
    background-color: #1087ff;
    color: #fff;
    border-radius: 12px;
    margin-left: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#send-btn:hover {
    background-color: #0074cc;
}

.user-message {
    background-color: #f3f3f3;
    color: #333;
    padding: 14px;
    margin-bottom: 15px;
    margin-top: 15px;
    margin-left: 10px;
    margin-right: -10px;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    border-radius: 15px 15px 0 15px;
}

.user-message::before {
    content: "";
    position: absolute;
    transform: rotate(150deg);
    bottom: -15px;
    right: -1px;
    margin-bottom: 7px;
    width: 0;
    height: 0;
    border: 8px solid transparent;
    border-left-color: #f3f3f3;
}

.bot-message {
    background-color: #1087ff;
    color: #fff;
    padding: 14px;
    border-radius: 15px;
    margin-bottom: 10px;
    margin-top: 15px;
    align-self: flex-start;
    margin-right: 10px;
    position: relative;
    display: flex;
    flex-direction: column; /* Adjust for button placement */
}

.bot-message a {
    text-decoration: underline;
    color: white;
}

.bot-message::before {
    content: "";
    position: absolute;
    bottom: -17px;
    left: -14px;
    margin-bottom: 4px;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    display: block;
    background-image: url("https://st5.depositphotos.com/72897924/62255/v/450/depositphotos_622556394-stock-illustration-robot-web-icon-vector-illustration.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 2px solid #1087ff;
}

/* Additional css */
.typing-indicator {
    padding: 16px 20px !important;
}

.typing-dots {
    display: flex;
    gap: 4px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ffffff;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}
.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%,
    80%,
    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.help-menu-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
    margin: 15px 5px 10px 0;
    padding: 0 5px;
}

.help-menu-button {
    /* border: 1px solid #4a90e2; */
    color: #4a90e2;
    padding: 12px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.help-menu-button:hover {
    transform: translateX(5px);
}

.quick-actions-container {
    display: flex;
    justify-content: end;
    gap: 8px;
    margin-right: 10px;
    flex-wrap: wrap;
}

.quick-action-button {
    border: 1px solid #1087ff;
    color: #1087ff;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.quick-action-button:hover {
    background: #1087ff;
    color: white;
    transform: scale(1.05);
}

.button-container {
    margin-right: 10px;
    display: flex;
    flex-direction: column;
    align-items: end;
    margin-top: 5px;
}

.expert-button {
    padding: 5px 0;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.expert-button::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: #1088ffa1;
    transition: width 0.3s ease;
}

.yes-button {
    color: #1087ff;
}

.yes-button:hover {
    transform: translateY(-1px);
}

.yes-button:hover::before {
    width: 100%;
}

.no-button {
    color: #1087ff;
}

.no-button:hover {
    transform: translateY(-1px);
}

.no-button:hover::before {
    width: 100%;
}

.message-content {
    margin-bottom: 4px;
}
