body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #fcfcfb;
}

#chat-container {
    width: 400px;
    height: 600px;
    border: 1px solid #ccc;
    background-color: #f4f6f8;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#title {
    padding: 10px;
    background-color: #0d5ef8;
    color: #fff;
    text-align: left;
    font-size: 20px;
    border-bottom: 1px solid #ccc;
}

#messages {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    border-bottom: 1px solid #ccc;
    display: flex;
    flex-direction: column;
    position: relative;
}

.message {
    margin: 10px 0;
    padding: 10px;
    border-radius: 15px;
    max-width: 70%;
    position: relative;
    background-color: #deffd4; /* Default background, to be overridden */
    
}

.user-message {
    background-color: #c0c2c4;
    align-self: flex-end;
    text-align: left;
    padding-left: 15px;
    display: flex;
    color: rgb(67, 66, 66) ;
}

.message-content{
    margin-top: 8px;
    
}

.bot-message {
    background-color: #e1e1e3;
    align-self: flex-start;
    text-align: left;
    bottom: 10px;
    color: rgb(76, 75, 75);
    
}
.icon-container {
    width: 30px;
    height: 30px;
    margin-right: 10px;
    
    
}
.icon-container img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    
    
}



.text-content {
    white-space: pre-wrap; /* Ensure long messages wrap correctly */
    word-wrap: break-word;
}

.image-container {
    margin-top: 10px;
}

.image-container img {
    max-width: 100%;
    border-radius: 10px;
}

.time {
    font-size: 12px;
    color: #201b1b;
    margin-top: 10px;
    display: block;
    text-align: right;
}

.copy-icon {
    display: block;
    font-size: 12px;
    color: black;
    margin-top: 10px;
    cursor: pointer;
    position: absolute;
    right: 1px;
    bottom: -30px;
    
}

.copy-icon img {
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    
}

.copy-icon:hover {
    color: black;
}

#input-container {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
}

#message-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
}

#send-icon {
    padding: 10px;
    cursor: pointer;
    margin-left: 10px;
}

#send-icon img {
    width: 24px;
    height: 24px;
}


/* General styles */
.icons-container {
    display: flex;
    justify-content: flex-end; /* Align icons to the right */
    margin-top: 10px;
}

.copy-icon,
.share-icon {
    display: inline-block;
    margin-left: 15px;
    cursor: pointer;
    bottom: -20px;
}

.copy-icon img,
.share-icon img {
    width: 20px;
    height: 20px;
}

/* Hover effect */
.copy-icon:hover img,
.share-icon:hover img {
    opacity: 0.7;
}

/* Responsive styling */
@media screen and (max-width: 600px) {
    .copy-icon img,
    .share-icon img {
        width: 18px;
        height: 18px;
    }
}
.share-icon {
    position: absolute;
    
    right: -40px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    left: 200px;
    bottom: -30px;
    
}   