.chatWindow {
 
  height: 93%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 100%;
  
}

.messagesContainer {
  overflow-y: auto;
 flex-grow: 1;
  padding: 10px;
  background-color: #ffffff;
  border-bottom: 1px solid #DADADA;
  flex-direction: column;
  justify-content: flex-end;
  height:90%;
  
}

.messageWrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 15px;
}

.messageBubble {
  max-width: 70%;
  padding: 10px;
  border-radius: 15px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  word-break: break-word;
  white-space: pre-wrap;
  display: inline-block;
  height:auto;
}

.userMessage {
  background-color: #dcf8c6;
  align-self: flex-start;
  border-bottom-right-radius: 0;
}

.botMessage {
  background-color: #e1e1e1;
  align-self: flex-end;
  border-bottom-left-radius: 0;
}

/* Timestamp styling */
.timestamp {

  font-size: 10px; 
  color: rgba(0, 0, 0, 0.6); 
  margin-top: 3px; 
  display: inline-block;
}


.userTimestamp {
  align-self: flex-start; 
  text-align: left;
}

/* Bot Timestamp */
.botTimestamp {
  display: flex;
  align-self: flex-end; 
  text-align: right;
  margin-right: 5px;
  gap: 5px;
}

.templateMessage {
  background-color: #f0f0f0;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 10px;
  width: 70%;
  align-self: flex-end;
  border-bottom-left-radius: 0;
}

.button {
  background-color: #15685e; /* WhatsApp green color */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  margin: 5px;
  cursor: pointer;
}

.button:hover {
  background-color: #075e54; /* Darker green on hover */
}


/* Styling for input field and send button container */
.inputContainer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px;
  background-color: #fff;
  height:16%;

}
.inputRow {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
/* Input field styling */
.inputField {
  flex-grow: 1;
  width: 100%;
  font-size: 1rem;
  outline: none;
  border:none;
  margin-top:0;
}

/* Send button styling */
.sendButton {
  color: white;
  border: none;
  border-radius:30px;
  cursor: pointer;
  object-fit: contain !important;
 margin-top: -10px;
}

.sendButton:hover {
 cursor: pointer;
}
.ctaMessage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 10px 0;
}

.ctaButton {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  margin-top: 5px;
}

.ctaButton:hover {
  background-color: #0056b3;
}

.documentContainer {
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #e5f5f3; /* Light greenish shade for the bubble */
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  max-width: 100%;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  color: #15685e; /* Darker green for text */
}

/* Specific to Document Message */
/* .documentMessage {
  border-left: 4px solid #1db2a6; 
} */

/* Icon Container for Document */
.documentContainer {
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background-color: #e5f5f3; /* Light greenish shade for the bubble */
  border-radius: 10px;
  padding: 12px;
  margin: 8px 0;
  margin-left: auto;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
  color: #15685e; /* Darker green for text */
}

.documentIcon {
  width:50%;
  margin-right: 10px;
  font-size: 22px;
  color: #15685e; /* Dark green for the icon */
}

/* Details Section */
.documentDetails {
display: flex;
flex-direction: column;
  gap: 7px;  
  width: 100%;  
}

.fileName {
  font-size: 14px;
  font-weight: 600;
  color: #15685e;       
  margin: 0;        
  width: 90%;       
  overflow: hidden;   
  white-space: nowrap; 
  text-overflow: ellipsis; 
}


/* File Name Styling */

.fileName {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: #15685e;
  margin: 0; /* Remove extra margin for tighter layout */
  flex: 1;  /* Allow the file name to take up available space */
  overflow: hidden;         /* Hide overflow text */
  white-space: nowrap;      /* Prevent wrapping */
  text-overflow: ellipsis;  /* Show ellipsis when text overflows */
}

/* Button Styling */
.downloadButton {
  background-color: #15685e; /* Dark green for the button */
  color: #fff; /* White text for contrast */
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.2); /* Depth effect on button */
  
  /* Fixed size styling */
  width: 120px;      /* Set a fixed width */
  height: 40px;      /* Set a fixed height */
  text-align: center; /* Center text horizontally */
  display: inline-block; /* Ensure the element respects width and height */
  box-sizing: border-box; /* Include padding and border in the width and height */
}


.downloadButton:hover {
  background-color: #124d46; /* Slightly darker green for hover effect */
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3); /* Emphasize shadow on hover */
}
/* Top bar styling */
.topBar {
  display: flex;
  align-items: center;
  padding: 10px;
  /* background-color: #f5f5f5; */
  border-bottom: 1px solid #ddd;
  height:6.5%;
}

/* Admin dropdown styling */
.adminDropdown {
  padding: 6px;
  font-size: 14px;
  /* border: 1px solid #ccc; */
  /* border-radius: 4px; */
  border: none;
  background-color: #fff;
  cursor: pointer;
}
.assignmentMessage{
align-items: center;
}
.assignmentSeparator {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}


.assignmentSeparator::before,
.assignmentSeparator::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ccc; /* Light grey line */
}

.assignmentSeparator::before {
  margin-right: 10px;
}

.assignmentSeparator::after {
  margin-left: 10px;
}

.assignmentText {
  color: #666; /* Subtle text color */
  background-color: #f9f9f9; /* Light background to blend with chat UI */
  padding: 0 10px;
  border-radius: 5px;
  font-size: 10px;
}
.fileMesssage{
  /* width: 20%; */
  width: auto;
  display: flex;
  flex-direction: column;
  /* background-color: #e1e1e1; */
  align-self: flex-end;
  border-bottom-left-radius: 0;
  padding-left: 10px;
  padding-right: 10px;
margin-top: 0px;
}
.attachButton {
  cursor: pointer;
  margin-right: 10px;
  /* Add additional styling for the button or icon as needed */
}

.fileInput {
  display: none;
}
.fileAttachment{
  display: flex;
  flex-direction: row;
  width: 100%;
  gap:10px;
  justify-content: space-between;
  align-items: center; 
}
.caption {
  font-size: 14px;       
  color: grey; 
  opacity: 0.7;           
  margin-right: 1px;
  line-height: 1.4;
}
.removeFileButton {
  margin-left: 8px;
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  color: #cc0000;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  padding: 0;
  transition: transform 0.2s ease;
}

.removeFileButton:hover {
  transform: scale(1.3);
}
.tickContainer {
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;
 

}
.tickWrapper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.singleTick {
  fill: #8696a0; /* grey */
}

.doubleTick {
  fill: #8696a0; /* delivered = grey */
}

.readTick {
  fill: #53bdeb !important; /* read = blue */
}

.dateBar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 18px 0 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: #555;
  background: transparent;
}

.dateBarLine {
  flex: 1;
  height: 1px;
  background: #8696a0;
  margin: 0 12px;
  border: none;
}

.dateBarText {
  background: #f1f1f1;
  border-radius: 8px;
  padding: 4px 18px;
  min-width: 120px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  z-index: 1;
}
