body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f2f2f2;
}

.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.chat-icon img {
    width: 50%;
    height: 50%;
}

.chat-box {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-box.show {
    display: flex;
}

.chat-header {
    background-color: #E11217 ;
    color: white;
    padding: 10px;
    /* display: flex; */
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    padding: 10px;
    height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.message {
    max-width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    color: white;
    font-size: 14px;
     word-wrap: break-word;  /* Break long words */
    overflow-wrap: break-word; /* Ensure compatibility with modern browsers */
    white-space: normal;
}

.message p {
    margin: 0; /* Remove default margins */
}
.message a {
    display: inline-block; /* Make sure links behave like text */
    max-width: 100%; /* Ensure link does not overflow its container */
    overflow-wrap: break-word; /* Break long URLs */
}

.message.sent {
    align-self: flex-end;
    background-color: #D3D3D3;
    color:#262626;
}

.message.received {
    align-self: flex-start;
    background-color: #e0e0e0;
    color: black;
}



.chat-footer {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #ddd;
}

.chat-footer input {
    width: 80%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.chat-footer button {
    padding: 5px 10px;
    border: none;
    background-color: #E11217;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}
.recieved small {
    display: block;
    color: #000; /* Lighter color for timestamp */
    font-size: 0.75em; /* Smaller font size for timestamp */
    text-align: right; /* Align timestamp to the right */
    margin-top: 5px; /* Space above the timestamp */
}

.send small {
    display: block;
    color: #fff; /* Lighter color for timestamp */
    font-size: 0.75em; /* Smaller font size for timestamp */
    text-align: right; /* Align timestamp to the right */
    margin-top: 5px; /* Space above the timestamp */
}

.tick-icon {
    width: 20px; /* Adjust size as needed */
    height: 20px;
    vertical-align: middle;
    margin-left: 5px; /* Space between message and icon */
}


  #imageOverlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
}

#imageOverlay .overlay-content {
    max-width: 90%;
    max-height: 80%;
}

#closeOverlay {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

#downloadImage {
    margin-top: 20px;
    background-color: #E11217;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
}


.badge {
    position: absolute;
    top: -5px; /* Adjust the top position to place the badge correctly */
    right: -5px; /* Adjust the right position to place the badge correctly */
    background-color: red; /* Badge background color */
    color: white; /* Badge text color */
    padding: 3px 6px; /* Badge size */
    border-radius: 50%; /* Rounded corners for a circular badge */
    font-size: 12px; /* Font size for the badge */
    font-weight: bold; /* Bold text */
}


