/* isdp/web/src/components/thread/MessageInput.css */
.message-input-container {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--bg-container);
  border-top: 1px solid var(--border-color);
}

.input-wrapper {
  flex: 1;
  position: relative;
}

.input-wrapper textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  resize: none;
  font-size: 14px;
  background: var(--bg-base);
  color: var(--text-primary);
}

.input-wrapper textarea::placeholder {
  color: var(--text-secondary);
}

.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-opacity-15);
}

.mention-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--bg-container);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-height: 200px;
  overflow-y: auto;
  min-width: 200px;
}

.mention-item {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  align-items: center;
}

.mention-item:hover {
  background: var(--color-primary-opacity-10);
}

.mention-name {
  font-weight: 500;
  color: var(--text-primary);
}

.mention-role {
  color: var(--text-secondary);
  font-size: 0.9em;
}

.message-input-container button {
  padding: 10px 20px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.message-input-container button:hover:not(:disabled) {
  background: var(--color-primary-hover);
}

.message-input-container button:disabled {
  background: var(--color-primary-opacity-30);
  cursor: not-allowed;
  opacity: 0.6;
}