.agent-overlay {
  position: absolute;
  bottom: 12px;
  left: 15%;
  width: 70%;
  background: transparent;
  z-index: 200;
  transition: all 0.3s ease;
  pointer-events: none;
}

.agent-overlay.hidden {
  display: none;
}

.agent-overlay.visible {
  display: block;
}

.agent-overlay-content {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.message {
  display: flex;
  padding: 2px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.3;
  position: relative;
  animation: slideIn 0.3s ease-out;
  margin: 4px;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(138, 43, 226, 0.4);
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
  pointer-events: auto;
  max-width: 100%;
  word-wrap: break-word;
}

.message.think {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(75, 0, 130, 0.9));
  color: #ffffff;
}

.message.agent {
  background: linear-gradient(135deg, rgba(147, 112, 219, 0.9), rgba(138, 43, 226, 0.9));
  color: #ffffff;
}

.message-text {
  padding: 8px 0 8px 8px;
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  display: block;
  text-wrap: auto;
  text-align: left;
}

.message-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  margin: 4px;
  border-radius: 2px;
  opacity: 0.6;
  transition: all 0.2s;
  line-height: 1;
}

.message-close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
