body {
    display: flex;
    background-color: rgb(0, 0, 0);
    color: black;
    width: 100vh;
}

main {
    margin-top: 70px;
}

.chatbot {
    flex: 1;
    position: absolute;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100px;
    max-width: 1000px;
    width: 80%;
    overflow: hidden;
    border-radius: 15px;
    border: 2px solid rgb(87, 87, 87);
    background-color: rgb(45, 45, 45);
    box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.chatbot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: linear-gradient(to bottom right, rgba(47, 0, 255, 0.411), rgba(255, 0, 238, 0.427));
    padding: 15px 22px;
}

.chatbot-header .chatbot-header-info {
    display: flex;
    gap: 10px;
    align-items: center;
}

.chatbot-svg {  
    height: 35px;
    width: 35px;
    background-color: white;
    fill: rgb(71, 16, 154);
    flex-shrink: 0;
    padding: 6px;
    border-radius: 50%;
}

.logo-text {
    color: white;
    font-size: 1.31rem;
    font-weight: 600;
}

.arrow-menu {
    color: black;
    background-color: gray;
}

.chat-body {
    padding: 25px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    height: 400px;
    margin-bottom: 80px;
    scrollbar-width: thin;
    scrollbar-color: rgb(80, 80, 80) transparent;
}

.chat-body .message {
    display: flex;
    gap: 11px;
    align-items: center;
}

.chat-body .message .bot-avatar {
    height: 35px;
    width: 35px;
    background-image: linear-gradient(to bottom right, rgba(47, 0, 255, 0.411), rgba(255, 0, 238, 0.427));
    fill: white;
    flex-shrink: 0;
    padding: 6px;
    border-radius: 50%;
    align-self: flex-end;
    margin-bottom: 2px;
}

.chat-body .message .message-text {
    display: flex;
    align-self: flex-end;
    padding: 12px 16px;
    max-width: 75%;
    font-size: 0.95rem;
    background: rgb(200, 200, 200);
}

.chat-body .bot-message.thinking .message-text {
    padding: 15px 16px 1px;
}

.chat-body .bot-message .message-text {
    background: rgb(255, 255, 255);
    border-radius: 13px 13px 13px 3px;
}

.chat-body .user-message .message-text {
    color: white;
    background: rgba(255, 0, 238, 0.427);
    border-radius: 13px 13px 3px 13px;
}

.user-message {
    flex-direction: column;
    align-items: flex-end;
}

.chat-body .bot-message .thinking-indicator {
    display: flex;
    gap: 4px;
    padding-bottom: 15px;
}

.chat-body .bot-message .thinking-indicator .dot {
    height: 7px;
    width: 7px;
    border-radius: 50%;
    background: rgb(78, 49, 152);
    animation: dotPulse 1.8s ease-in-out infinite;
    opacity: 0.7;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(1) {
    animation-delay: 0.2s;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(2) {
    animation-delay: 0.3s;
}

.chat-body .bot-message .thinking-indicator .dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotPulse {
    0%, 44% {
        transform: translateY(0);
    }

    28% {
        opacity: 0.4;
        transform: translateY(-4px);
    }

    44% {
        opacity: 0.2;
    }
}

.chat-footer {
    display: flex;
    position: absolute;
    justify-content: center;
    width: 100%;
    bottom: 10px;
    background-color: rgb(45, 45, 45);
    padding: 15px 22px 30px -45px;

}

.chat-footer .chat-form {
    position: relative;
    border: none;
    outline: none;
    display: flex;
    background: white;
    outline: 1px solid rgb(204, 204, 204);
    border-radius: 32px;
}

.chat-footer .chat-form:focus-within {
    outline: 2px solid rgba(255, 0, 238, 0.427);

}

.chat-form .message-input {
    border: none;
    outline: none;
    box-shadow: none;
    height: 20px;
    width: 100%;
    font-size: 0.95rem;
    padding: 14px 0 13px 18px;
    border-radius: 10px 0 0;
    resize: none;
    font-family: Roboto, Arial;
    color: white;
    background-color: rgb(45, 45, 45);
}

.chat-form .chat-controls {
    display: flex;
    height: 47px;
    outline: none;
    border: none;
    align-items: center;
    align-self: flex-end;
    padding-right: 6px;
    gap: 3px;
    background-color: rgb(45, 45, 45);
}

.chat-form .chat-controls button {
    height: 35px; 
    width: 35px;
    border: none;
    color: rgb(255, 255, 255);
    background: none;
    border-radius: 50%;
    font-size: 1.15rem;
    transition: 0.2s ease;
}

.chat-form .chat-controls #send-message {
    cursor: pointer;
    color: white;
    background: rgb(99, 61, 194);
    display: none;
}

.chat-form .message-input:valid~.chat-controls #send-message {
    display: block;
}

.chat-form .chat-controls #send-message:hover {
    background: rgb(80, 44, 171);
}