body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  min-height: 100vh;
  position: relative;
  padding: 0;
  background-color: #fff;
  overflow-x: hidden;
  background-image: url('https://i.ibb.co/8LscJ9XV/images-17.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.send-btn {
  font-family: 'Material Symbols Outlined';
  font-size: 22px;
  color: #749cbf;
  margin: 0 8px;
  cursor: pointer;
  display: none;
  align-items: center;
  position: relative;
}
.send-btn.active {
  display: inline-flex;
}
.send-btn::before {
  content: '';
}
.video-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% - var(--input-container-height, 50px));
  background: rgba(255, 255, 255, 0.1); /* Changed from white to very light transparent */
  z-index: 1002;
  transition: transform 0.2s ease;
}
.video-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-overlay video {
  position: relative;
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1003;
  transition: width 0.2s ease, height 0.2s ease;
}
.video-overlay.emoji-picker-active {
  transform: translateY(calc(-1 * var(--emoji-picker-height, 250px)));
}
.video-overlay.emoji-picker-active video {
  width: 180px;
  height: 180px;
}
.chat-input-container {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 8px 12px;
  border-top: 1px solid #e8ecef;
  width: 100%;
  box-sizing: border-box;
  box-shadow: none !important;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 1000;
  transition-property: bottom;
  transition-duration: 0.2s;
  will-change: bottom;
  transform: translate3d(0, 0, 0);
  transform-style: preserve-3d;
  perspective: 1000px;
  backface-visibility: hidden;
}
.emoji-picker {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 2000;
  overflow: hidden;
  background-color: #fff;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
  border-top: 4px solid #f2f2f2;
}
.emoji-picker.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.chat-container {
  padding: 0;
  max-width: 100%;
  margin: 0;
  overflow-y: auto;
  height: calc(100vh - 60px);
  box-sizing: border-box;
  transition: height 0s, margin 0s;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
.chat-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background-color: #fff;
  border-bottom: 1px solid #e8ecef;
  position: sticky;
  top: 0;
  z-index: 1001;
  margin: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.chat-header .back-btn {
  font-size: 26px;
  color: #749cbf;
  margin-right: 15px;
  cursor: pointer;
}
.chat-header .user-info {
  flex-grow: 1;
  display: flex;
  align-items: center;
}
.chat-header .user-info .avatar {
  width: 40px;
  height: 40px;
  background-color: #d3d3d3;
  border-radius: 50%;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  font-weight: bold;
}
.chat-header .user-info .name-status {
  flex-grow: 1;
}
.chat-header .user-info .name {
  font-size: 20px;
  font-weight: bold;
  color: #000;
  margin: 0;
}
.chat-header .user-info .status {
  font-size: 14px;
  color: #749cbf;
  margin: 0;
}
.chat-header .actions .action-btn {
  font-size: 26px;
  color: #749cbf;
  margin-left: 15px;
  cursor: pointer;
}
.message {
  margin: 15px 0;
  max-width: 80%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.message.received {
  margin-left: 0;
}
.message.sent {
  margin-right: 0;
  align-items: flex-end;
  text-align: right;
}
.message .bubble-container {
  position: relative;
  display: inline-block;
  transition: transform 0.2s ease-out;
}
.message .bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 16px;
  color: #000;
  line-height: 1.5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: none;
}
.message.received .bubble {
  background-color: #eceff1;
  border-bottom-left-radius: 4px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
.message.sent .bubble {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  border-bottom-right-radius: 4px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  color: #fff;
}
.message.received .bubble-container::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 10px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #eceff1;
}
.message.sent .bubble-container::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 10px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #7c3aed;
}
.message .profile {
  display: flex;
  align-items: center;
  margin-top: 12px;
}
.message .profile .timestamp {
  font-size: 12px;
  color: #8696a0;
}
.message.sent .profile .timestamp {
  color: #1a73e8;
}
.message.sent .profile .check {
  font-size: 12px;
  color: #1a73e8;
  margin-left: 2px;
}
.message.highlighted {
  background: rgba(116, 156, 191, 0.15);
  transition: background 0.2s ease;
}
.message.received .reply-indicator,
.message.sent .reply-indicator {
  position: absolute;
  top: 50%;
  left: -40px;
  transform: translateY(-50%) translateX(0);
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 20px;
  color: #749cbf;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-out, opacity 0.2s ease-out;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
}
.message.received .reply-indicator::before,
.message.sent .reply-indicator::before {
  content: "\f3e5";
}
.message.sliding .bubble-container {
  transform: translateX(50px);
}
.message.sliding .reply-indicator {
  opacity: 1;
  transform: translateY(-50%) translateX(20px);
}
.message.sliding.sent .bubble-container {
  transform: translateX(50px);
}
.message.sliding.sent .reply-indicator {
  opacity: 1;
  transform: translateY(-50%) translateX(20px);
}
.replied-message-preview {
  display: flex;
  align-items: center;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
  max-width: 100%;
}
.message.received .replied-message-preview {
  background: rgba(0, 0, 0, 0.05);
}
.message.sent .replied-message-preview {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
}
.replied-message-preview .reply-bar {
  width: 3px;
  height: 32px;
  border-radius: 2px;
  margin-right: 8px;
  background-color: #749cbf;
}
.message.sent .replied-message-preview .reply-bar {
  background-color: #7c3aed;
}
.replied-message-preview .reply-content {
  flex-grow: 1;
  overflow: hidden;
}
.replied-message-preview .reply-sender {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message.sent .replied-message-preview .reply-sender {
  color: #7c3aed;
}
.replied-message-preview .reply-text {
  font-size: 12px;
  color: #4b5563;
  margin: 0;
  line-height: 1.3;
  max-height: 32px;
  white-space: normal;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.message.sent .replied-message-preview .reply-text {
  color: #fff;
}
.reply-preview-container {
  display: none;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: #f9fafb;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
  position: absolute;
  bottom: 56px;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 999;
  transform: translateY(100%);
  transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}
.reply-preview-container.active {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.reply-preview-content {
  display: flex;
  align-items: center;
  flex-grow: 1;
}
.reply-preview-bar {
  width: 4px;
  height: 40px;
  border-radius: 2px;
  margin-right: 10px;
  background-color: #749cbf;
}
.reply-preview-container.sent-reply .reply-preview-bar {
  background-color: #7c3aed;
}
.reply-details {
  flex-grow: 1;
  max-width: calc(100% - 60px);
}
.reply-sender-name {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reply-preview-container.sent-reply .reply-sender-name {
  color: #7c3aed;
}
.reply-message-text {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
  max-height: 40px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.close-reply-btn {
  font-size: 20px;
  color: #888;
  cursor: pointer;
  margin-left: 15px;
}
.close-reply-btn:hover {
  color: #374151;
}
.icon {
  font-size: 22px;
  color: #749cbf;
  margin: 0 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
}
.icon.locked {
  color: #fff;
  background-color: #4a90e2;
  border-radius: 50%;
  padding: 5px;
}
.icon.smile-toggled {
  display: none;
}
.icon.red-dot {
  font-size: 24px;
  color: #749cbf;
  margin: 0 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
  animation: dotBlink 1.2s infinite;
}
.icon.red-dot.trash-icon {
  color: #ff3333;
  animation: openClose 0.8s ease-in-out infinite, shake 0.3s ease-in-out infinite;
}
@keyframes dotBlink {
  0% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 1; }
  75% { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes openClose {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.2); }
  100% { transform: scale(0.8); }
}
@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}
.mic-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #749cbf;
  border-radius: 50%;
  margin: 0 8px;
  cursor: pointer;
  position: relative;
  transition: transform 0.1s ease, width 0.1s ease, height 0.1s ease;
}
.mic-container.recording {
  width: 72px;
  height: 72px;
  background-color: #749cbf;
  position: absolute;
  right: -20px;
  margin-right: 0;
  z-index: 1002;
}
.mic-container.recording .voice-wave {
  display: none;
}
.mic-container.recording i {
  font-size: 30px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.mic-container.locked {
  width: 36px;
  height: 36px;
  background-color: #749cbf;
  position: relative;
  right: auto;
  margin-right: 8px;
}
.mic-container.locked i {
  display: none;
}
.mic-container.locked .fa-paper-plane {
  font-size: 20px;
  color: #fff;
  display: inline-flex;
}
.mic-container i {
  font-size: 20px;
  color: #fff;
}
.mic-container .fa-paper-plane {
  display: none;
}
.input-field {
  flex: 1;
  background-color: #f1f3f5;
  border: none;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 16px;
  color: #000;
  outline: none;
  min-height: 20px;
  line-height: 1.5;
  margin: 0 15px 0 8px;
  resize: none;
  box-sizing: border-box;
  max-width: calc(100% - 80px);
  transition: none;
}
.input-field:disabled {
  pointer-events: none;
  background-color: #f1f3f5;
  opacity: 0.7;
}
.input-field::placeholder {
  color: #8696a0;
}
.input-field.recording {
  filter: blur(150px);
  pointer-events: none;
}
.recording-interface {
  flex: 1;
  border: none;
  padding: 0;
  font-size: 16px;
  color: #000;
  outline: none;
  min-height: 20px;
  line-height: 1.5;
  margin: 0;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1001;
  max-width: 100%;
  height: 100%;
  text-align: center;
  pointer-events: none;
}
.recording-interface .cancel-label {
  font-size: 12px;
  margin-right: 10px;
  position: relative;
  top: 6px;
  color: #666;
  opacity: 0.8;
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.recording-interface .cancel-label.locked {
  display: none;
}
.recording-interface .cancel-label .back-arrow {
  font-size: 14px;
  color: #91959c;
  margin-right: 4px;
}
.recording-interface .cancel-link {
  font-size: 12px;
  margin-right: 10px;
  position: relative;
  top: 6px;
  color: #749cbf;
  opacity: 0.8;
  white-space: nowrap;
  display: none;
  align-items: center;
  cursor: pointer;
}
.recording-interface .cancel-link.locked {
  display: flex;
}
.recording-interface .timer {
  font-size: 22.5px;
  margin-left: -13px;
  position: relative;
  margin-top: 12.5px;
  color: #91959c;
}
.recording-interface .mic-icon {
  font-size: 22.5px;
  margin-right: 40px;
  position: relative;
  top: 6px;
  color: #ff0000;
  opacity: 0.8;
  white-space: nowrap;
  display: none;
  align-items: center;
  animation: dotBlink 1.2s infinite;
}
.recording-interface .mic-icon.active {
  display: flex;
}
.recording-interface .lock-indicator {
  display: none;
}
.recording-interface .cancel-btn {
  display: none;
}
.emoji-picker-navbar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background-color: #f8f9fa;
  border-top: 1px solid #e8ecef;
  padding: 8px 0;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2010;
}
.emoji-picker-navbar .nav-icon {
  font-size: 24px;
  color: #8696a0;
  cursor: pointer;
  padding: 5px;
}
.emoji-picker-navbar .nav-icon:hover,
.emoji-picker-navbar .nav-text:hover {
  color: #495057;
}
.emoji-picker-navbar .nav-icon.active,
.emoji-picker-navbar .nav-text.active {
  color: #495057;
}
.emoji-picker-navbar .nav-text {
  font-size: 18px;
  font-weight: bold;
  color: #8696a0;
  cursor: pointer;
  padding: 5px 12px;
  text-align: center;
  display: inline-flex;
  justify-content: center;
  transition: all 0.2s ease;
}
.emoji-picker-navbar .nav-text.active {
  color: #000;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  padding: 5px 12px;
}
.emoji-picker-navbar .drag-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: #86959c;
  display: block;
}
.emoji-picker-body {
  height: calc(100% - 50px);
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  top: 0;
}
.sticker {
  width: 70px;
  height: 70px;
  margin: 5px;
  margin-top: 25px;
  display: inline-block;
  vertical-align: middle;
}
.gif-placeholder {
  text-align: center;
  color: #8696a0;
  font-size: 16px;
  margin-top: 25px;
}
@media (max-width: 600px) {
  .send-btn {
    font-size: 20px;
    margin: 0 6px;
  }
  .video-overlay.active video {
    width: 200px;
    height: 200px;
  }
  .video-overlay.emoji-picker-active {
    transform: translateY(calc(-1 * var(--emoji-picker-height, 200px)));
  }
  .video-overlay.emoji-picker-active video {
    width: 205px;
    height: 205px;
    transform: translateY(106px);
    margin-top: 9px;
  }
  .chat-container {
    padding: 0;
    margin: 0;
    height: calc(100vh - 50px);
    box-sizing: border-box;
  }
  .chat-header {
    padding: 8px 10px;
    margin: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  .chat-header .back-btn,
  .chat-header .actions .action-btn {
    font-size: 22px;
    margin-right: 10px;
    margin-left: 10px;
  }
  .chat-header .user-info .avatar {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .chat-header .user-info .name {
    font-size: 18px;
  }
  .chat-header .user-info .status {
    font-size: 12px;
  }
  .message {
    margin: 12px 0;
    max-width: 90%;
  }
  .message.received {
    margin-left: 0;
  }
  .message.sent {
    margin-right: 0;
    align-items: flex-end;
    text-align: right;
    max-width: none;
    width: auto;
    padding-right: 0;
  }
  .message .bubble {
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 12px;
  }
  .message.received .bubble {
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }
  .message.sent .bubble {
    border-bottom-right-radius: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
  }
  .message.received .bubble-container::after {
    bottom: -6px;
    left: 8px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #eceff1;
  }
  .message.sent .bubble-container::after {
    bottom: -6px;
    right: 8px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #7c3aed;
  }
  .message .profile {
    margin-top: 10px;
  }
  .message .profile .timestamp {
    font-size: 11px;
  }
  .message .profile .check {
    font-size: 10px;
    margin-left: 2px;
  }
  .message.highlighted {
    background: rgba(116, 156, 191, 0.1);
  }
  .message.received .reply-indicator,
  .message.sent .reply-indicator {
    width: 28px;
    height: 28px;
    font-size: 18px;
    left: -36px;
    opacity: 0;
  }
  .message.sliding .bubble-container {
    transform: translateX(40px);
  }
  .message.sliding .reply-indicator {
    transform: translateY(-50%) translateX(16px);
    opacity: 1;
  }
  .message.sliding.sent .bubble-container {
    transform: translateX(40px);
  }
  .message.sliding.sent .reply-indicator {
    transform: translateY(-50%) translateX(16px);
    opacity: 1;
  }
  .replied-message-preview {
    padding: 4px 6px;
    margin-bottom: 0;
    border-radius: 6px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  .replied-message-preview .reply-bar {
    height: 24px;
    margin-right: 6px;
  }
  .replied-message-preview .reply-sender {
    font-size: 12px;
  }
  .replied-message-preview .reply-text {
    font-size: 11px;
    max-height: 28px;
  }
  .reply-preview-container {
    padding: 10px 12px;
  }
  .reply-sender-name {
    font-size: 13px;
  }
  .reply-message-text {
    font-size: 12px;
    max-height: 36px;
  }
  .chat-input-container {
    padding: 6px 8px;
  }
  .icon {
    font-size: 20px;
    margin: 0 6px;
  }
  .mic-container {
    width: 32px;
    height: 32px;
    margin: 0 6px;
  }
  .mic-container.recording {
    width: 64px;
    height: 64px;
    position: absolute;
    right: -18px;
    margin-right: 0;
    z-index: 1002;
  }
  .mic-container.recording i {
    font-size: 28px;
  }
  .mic-container.locked {
    width: 32px;
    height: 32px;
    margin: 0 6px;
  }
  .mic-container.locked i {
    display: none;
  }
  .mic-container.locked .fa-paper-plane {
    font-size: 18px;
    display: inline-flex;
  }
  .mic-container i {
    font-size: 18px;
  }
  .input-field {
    padding: 8px 12px;
    font-size: 14px;
    margin: 0 6px 0 4px;
    min-height: 18px;
    max-width: calc(100% - 70px);
  }
  .input-field::placeholder {
    font-size: 14px;
  }
  .input-field.recording {
    filter: blur(150px);
    pointer-events: none;
  }
  .recording-interface {
    padding: 0;
    font-size: 14px;
    margin: 0;
    min-height: 18px;
    max-width: 100%;
    height: 100%;
    border: none;
    display: none;
  }
  .recording-interface .cancel-label {
    font-size: 12px;
    margin-right: 10px;
    position: relative;
    top: 6px;
    color: #666;
    opacity: 0.8;
    white-space: nowrap;
    display: flex;
    align-items: center;
  }
  .recording-interface .cancel-label.locked {
    display: none;
  }
  .recording-interface .cancel-label .back-arrow {
    font-size: 12px;
    margin-right: 2px;
  }
  .recording-interface .cancel-link {
    font-size: 12px;
    margin-right: 10px;
    position: relative;
    top: 6px;
    color: #749cbf;
    opacity: 0.8;
    white-space: nowrap;
    display: none;
    align-items: center;
    cursor: pointer;
  }
  .recording-interface .cancel-link.locked {
    display: flex;
  }
  .recording-interface .timer {
    font-size: 22.5px;
    margin-left: -13px;
    position: relative;
    margin-top: 12.5px;
    color: #91959c;
  }
  .recording-interface .mic-icon {
    font-size: 22.5px;
    margin-right: 40px;
    position: relative;
    top: 6px;
    color: #ff0000;
    opacity: 0.8;
    white-space: nowrap;
    display: none;
    align-items: center;
    animation: dotBlink 1.2s infinite;
  }
  .recording-interface .mic-icon.active {
    display: flex;
  }
  .emoji-picker-body {
    padding: 8px;
  }
  .emoji-picker-navbar {
    padding: 6px 0;
  }
  .emoji-picker-navbar .nav-icon {
    font-size: 20px;
    padding: 4px;
  }
  .emoji-picker-navbar .nav-text {
    font-size: 14px;
    padding: 4px 10px;
  }
  .emoji-picker-navbar .nav-text.active {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    padding: 4px 10px;
  }
  .emoji-picker-navbar .drag-line {
    top: 0;
    width: 32px;
    height: 2px;
  }
  .sticker {
    width: 56px;
    height: 56px;
    margin: 4px;
    margin-top: 20px;
  }
  .gif-placeholder {
    font-size: 14px;
    margin-top: 20px;
  }
  .emoji-picker {
    border-top: 4px solid #f2f2f2;
  }
}
