/**
 * Styles for the Speech-to-Speech component
 */

.chat-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

/* Message styles */
.message {
  display: flex;
  flex-direction: column;
  max-width: 70%;
  margin: 8px 0;
  padding: 12px 16px;
  border-radius: 18px;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.message.user {
  align-self: flex-end;
  background-color: #4CAF50;
  color: white;
  border-top-right-radius: 4px;
}

.message.assistant {
  align-self: flex-start;
  background-color: #90CAF9;
  color: #333;
  border-top-left-radius: 4px;
}

.message.system {
  align-self: center;
  background: none;
  box-shadow: none;
  color: #666;
  font-style: italic;
  padding: 8px;
}

.role-label {
  font-size: 0.8em;
  margin-bottom: 4px;
  opacity: 0.7;
}

/* Thinking indicator styles */
.thinking-indicator {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.thinking-dots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  opacity: 0.7;
  animation: pulse 1.4s infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.8;
    transform: scale(1);
  }
}

/* Status styles */
.status {
  padding: 8px 16px;
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
}

.connected {
  color: #4CAF50;
}

.disconnected {
  color: #F44336;
}

.error {
  color: #F44336;
  font-weight: bold;
}

.reconnecting {
  color: #FF9800;
}
