/* Reply preview bar */
.reply-preview {
  display: flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  gap: 10px;
  font-size: 13px;
}
.reply-preview-content {
  flex: 1;
  border-left: 3px solid var(--primary);
  padding-left: 10px;
}
.reply-preview .reply-close {
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--text-secondary);
}

/* Chat input area */
.chat-input-area {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.chat-input-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg-input);
  border-radius: 12px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  transition: border-color 0.15s;
}
.chat-input-wrap:focus-within {
  border-color: var(--primary);
}

.chat-input {
  border: none;
  background: none;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  resize: none;
  min-height: 22px;
  max-height: 120px;
  outline: none;
  line-height: 1.4;
  width: 100%;
}

.chat-file-btn {
  background: none; border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.15s;
}
.chat-file-btn svg {
  width: 30px;
  height: 30px;
}
.chat-file-btn:hover { color: var(--primary); }

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.chat-send-btn:hover { transform: scale(1.05); }
.chat-send-btn:disabled { opacity: 0.4; transform: none; }

/* File preview chips */
.file-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  background: var(--bg-primary);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.file-chip-remove {
  background: none; border: none; cursor: pointer;
  font-size: 14px; color: var(--red); padding: 0 2px;
}

/* Date separator */
.chat-date-sep {
  text-align: center;
  padding: 12px 0 6px;
}
.chat-date-sep span {
  background: var(--bg-input);
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Edit message */
.edit-textarea {
  width: 100%; min-height: 40px; padding: 8px;
  border: 1px solid var(--primary); border-radius: 6px;
  font-size: 14px; resize: vertical; font-family: inherit;
  background: var(--bg-input); color: var(--text-primary);
}
.edit-buttons { margin-top: 6px; display: flex; gap: 8px; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
