.titled-two-columned-section {
  background-color: #f0f0f2;
  color: #1c1c1e;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0px 2rem;
  box-sizing: border-box;
}

.two-titled-container {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 1200px;
}

.two-titled-container .left-column,
.two-titled-container .right-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1 1 0%;
}

@media screen and (max-width: 768px) {
  .two-titled-container {
    flex-direction: column;
  }
  .two-titled-container .left-column,
  .two-titled-container .right-column {
    width: 100%;
  }
}

.card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border-width: 0px;
}

/* Left Column Styling */
.left-column .card,
.right-column .card {
  background-color: #e7e7e7;
  padding: 24px !important;
  padding-top: 0px !important;
}
.left-column .card {
  height: 100%;
}
.tags-container,
.pre-date-selector {
  background-color: #ffffff;
  padding: 15px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.chat-window {
  border-radius: 16px;
  border-top-left-radius: 0px !important;
  border-top-right-radius: 0px !important;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 350px; /* Give it a minimum height */
}

.message-group {
  display: flex;
  flex-direction: column;
  max-width: 80%;
}

.message {
  padding: 10px 15px;
  border-radius: 18px;
  line-height: 1.4;
  font-size: 15px;
}

.message-group.received {
  align-self: flex-start;
  align-items: flex-start;
  font-weight: 500;
}

.message-group.received .message {
  background: #fff;
  color: #1c1c1e;
  margin-bottom: 4px;
}

.message-group.received .message:first-child:last-child {
  border-radius: 18px;
}
.message-group.received .message:first-child:not(:last-child) {
  border-bottom-left-radius: 4px;
}
.message-group.received .message:last-child:not(:first-child) {
  border-top-left-radius: 4px;
}
.message-group.received .message:not(:first-child):not(:last-child) {
  border-radius: 4px 18px 18px 4px;
}

.message-group.sent {
  align-self: flex-end;
  align-items: flex-end;
  font-weight: 500;
  margin-bottom: 10px;
}

.message-group.sent .message {
  background-color: #292826;
  color: #ffffff;
  margin-bottom: 10px;
}

.message-group.sent .message:first-child:last-child {
  border-radius: 18px;
}
.message-group.sent .message:first-child:not(:last-child) {
  border-bottom-right-radius: 4px;
}
.message-group.sent .message:last-child:not(:first-child) {
  border-top-right-radius: 4px;
}
.message-group.sent .message:not(:first-child):not(:last-child) {
  border-radius: 18px 4px 4px 18px;
}

.timestamp {
  font-size: 11px;
  color: #7e7e7e;
  margin-top: 4px;
}

.message-group.received .timestamp {
  align-self: flex-start;
}

.message-group.sent .timestamp {
  align-self: flex-end;
}
.info-card {
  padding: 24px 0px !important;
}

.info-card h2 {
  font-size: 20px;
  font-weight: 500;
  margin-top: 0;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 17px;
  color: #7e7e7e;
  line-height: 1.5;
  margin: 0;
}

/* --- Typing Indicator Styling --- */
.typing-indicator {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 18px;
}
.typing-indicator .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 2px;
  animation: bounce 1.2s infinite ease-in-out;
}
.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

/* Sent (right) indicator style */
.message-group.sent .typing-indicator {
  background-color: #292826;
}
.message-group.sent .typing-indicator .dot {
  background-color: rgba(255, 255, 255, 0.7);
}

/* Received (left) indicator style */
.message-group.received .typing-indicator {
  background-color: #eaeae9;
}
.message-group.received .typing-indicator .dot {
  background-color: #7e7e7e;
  opacity: 0.6;
}

@keyframes bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
}
/* --- End Typing Indicator --- */

/* Right Column Styling */
.tags-container {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 5px;
}

.tag {
  background-color: #eaeae9;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: clamp(10px, 1.2vw, 15px);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1c1c1e;
}
.tag2 {
  width: fit-content !important;
  border-radius: 100% !important;
  padding: 6px !important;
}
.pretag {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1c1c1e;
}
.tag svg {
  stroke: #7e7e7e;
}

.date-selector {
  border: 1px solid #e5e5ea;
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 500;
}
.date-selector span {
  flex-grow: 1;
  margin: 0 12px;
}
.date-selector svg {
  stroke: #7e7e7e;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  .parallaxC {
    flex-direction: row !important;
  }
}
.chat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chat-card .info-card {
  margin-top: auto !important;
}

.tags-container2 {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* Keep everything in one row */
  gap: 8px;
  background-color: #ffffff;
  padding: 15px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  width: 100%;
}

.pretag {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap; /* Prevent text wrapping */
}

.dotted-line2 {
  flex-grow: 1;
  height: 1px;
  border-top: 2px dashed #333342;
}

.dotted-line2.deactivate,
.pretag.deactivate {
  opacity: 0.4;
}

.max-w-xl {
  max-width: 36rem;
}
.tagicon {
  line-height: 0.8;
}
