@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    /* background-color: #E3F2FD; */
}
canvas {
  background: #232323;
}
/* ------------------------------------------------------------ */
/* Chat FULL BOX */
.chatbot {
    position: fixed;
    left: 50%; 
    top: 50%; 
    width: 800px; 
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    transform-origin: bottom center;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1), 
                0 32px 64px -48px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
}
.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
}

/* ------------------------------------------------------------ */
/* Chatbot Header */
.chatbot header {
    background: #F4538A;
    padding: 16px 0;
    text-align: center;
    position: relative;
}
.chatbot header h2 {
    color: #fff;
    font-size: 1.4rem;
}
.chatbot header span {
    position: absolute;
    right: 20px;
    top: 50%;
    color: #ffffff;
    cursor: pointer;
    display: none;
    transform: translateY(-50%);
}
.chatbot header span {
    display: block;
}

/* ------------------------------------------------------------ */
/* Chatbot Feed */
.chatbot .chatbox {
    height: 510px;
    overflow-y: auto;
    padding: 30px 20px 100px;
}
.chatbox .chat {
    display: flex;
}


/* ------------------------------------------------------------ */
/* AI LOGO Backdrop */
.chatbox .incoming span {
    height: 32px;
    width: 32px;
    color: #fff;
    align-self: flex-end;
    background: #EE4266;
    text-align: center;
    line-height: 32px;
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

/* ------------------------------------------------------------ */
/* User Request */
.chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
}


/* ------------------------------------------------------------ */
/* Test */
.chatbox .chat p {
    color: #fff;
    max-width: 75%;
    white-space: pre-wrap;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    background: #EE4266;
}

/* ------------------------------------------------------------ */
/* AI Respond */
.chatbot .incoming p {
    color: #000;
    background: #f2f2f2;
    border-radius: 10px 10px 10px 0;
}

/* ------------------------------------------------------------ */
/* Chatbot Footer */
.chatbot .chat-input {
    position: absolute;
    bottom: 0;
    width: 100%;
    display: flex;
    gap: 5px;
    background: #fff;
    padding: 5px 20px;
    border-top: 1px solid #ccc;
}

/* ------------------------------------------------------------ */
/* User text area */
.chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    max-height: 180px;
    font-size: 0.95rem;
    resize: none;
    padding: 16px 15px 16px 0;
}
.chat-input span {
    align-self: flex-end;
    height: 55px;
    line-height: 55px;
    color: #EE4266;
    font-size: 1.35rem;
    cursor: pointer;
    visibility: hidden;
}

/* Send user request button */
.chat-input textarea:valid ~ span {
    visibility: visible;
}

@media(max-width: 890px) {
    .chatbot {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    .chatbot .chatbox {
        height: 90%;
    }
}
