.ai-chat-title-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.8);
  margin-right: 8px;
}

.ai-message {
  display: flex;
  align-items: flex-start;
  max-width: 100%;
  padding: 8px 0;
}

.ai-message.user {
  flex-direction: row-reverse;
}

.ai-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 8px;
  flex-shrink: 0;
}

.ai-message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-message-content {
  max-width: calc(100% - 48px);
  padding: 10px 14px;
  border-radius: 18px;
  line-height: 1.5;
  word-wrap: break-word;
  animation: fadeIn 0.3s ease;
}

.ai-message.user .ai-message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #a1afc9;
  border-bottom-right-radius: 4px;
}

.ai-message.assistant .ai-message-content {
  background: rgba(26, 65, 119, 0.8);
  color: #c9e1ff;
  border: 1px solid #2e4e7c;
  border-bottom-left-radius: 4px;
}

.ai-welcome-message .ai-message-content {
  background: rgba(26, 117, 188, 0.2);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid #3a5f8a;
}

.ai-switch-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 24, 36, 0.95);
  z-index: 100;
  display: none;
  flex-direction: column;
  border-radius: 12px;
  border: 1px solid #2e4e7c;
}

.ai-switch-modal-header {
  background: linear-gradient(to right, #1a75bc, #2e9ce9);
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2e4e7c;
}

.ai-switch-modal-header h4 {
  color: white;
  margin: 0;
  font-size: 16px;
}

.ai-switch-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.ai-switch-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ai-switch-avatars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  gap: 20px;
  flex: 1;
}

.ai-switch-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 25px;
}

.ai-switch-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 85px;
}

.ai-switch-avatar:hover {
  transform: scale(1.1);
}

.ai-switch-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  transition: border-color 0.3s ease;
}

.ai-switch-avatar:hover img {
  border-color: #4db8ff;
}

.ai-switch-avatar span {
  color: #c9e1ff;
  font-size: 14px;
  text-align: center;
}

.ai-chat-title {
  color: white;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(16, 42, 67, 0.7);
}

.ai-message-content p { white-space: pre-wrap; }
