/* Chat Container Styling */
.chat-container {
    padding: 20px;
    background-color: #FFF;
    border-radius: 10px;
    margin: 0 auto;
    width: 100%;
    max-width: 600px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 80vh; /* Adjust height of chat container */
}

/* Scrollable Chat History */
.chat-history {
    flex-grow: 1;
    overflow-y: auto; /* Scrollable */
    margin-bottom: 20px;
    padding-right: 10px;
    padding-left: 10px;
}

/* Message Bubbles */
.message {
    padding: 10px 15px;
    margin: 10px 0;
    border-radius: 15px;
    max-width: 80%;
    word-wrap: break-word;
    position: relative;
    font-size: 16px;
}

/* User Message Styling */
.message.user {
    background-color: #d1e7dd;
    text-align: left; /* Align text to left for better readability */
    margin-left: auto;
    border-top-right-radius: 0;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* GPT Message Styling */
.message.gpt {
    background-color: #f8f9fa;
    text-align: left;
    border-top-left-radius: 0;
    box-shadow: -2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Tail for User Message */
.message.user::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #d1e7dd;
}

/* Tail for GPT Message */
.message.gpt::after {
    content: "";
    position: absolute;
    left: -10px;
    top: 10px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent #f8f9fa transparent transparent;
}

/* Input Bar with Send Button */
.input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    border-radius: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ccc;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

textarea#prompt {
    flex-grow: 1;
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 20px;
    border: 1px solid #ccc;
    background-color: #f8f8f8;
    resize: none;
    height: 40px;
    margin-right: 10px;
}

button.send-btn {
    flex-shrink: 0;
    width: 10%;
    height: 45px;
    background-color: #0d6efd;
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.send-btn i {
    font-size: 18px;
}



/* Mobile Responsiveness */
@media only screen and (max-width: 768px) {
    .chat-container {
        width: 95%;
    }
}
