
/* ── Live Translated Chat Panel ── */
.chat-overlay {
  position: absolute;
  right: 20px;
  bottom: 90px;
  width: 320px;
  max-height: 60vh;
  background: rgba(15, 20, 35, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
  z-index: 100;
  overflow: hidden;
}

.chat-overlay.hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.chat-header {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.chat-header:active {
  cursor: grabbing;
}

.chat-header h3 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  pointer-events: none;
}

.chat-lang-select {
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.8rem;
  outline: none;
  cursor: pointer;
}

.chat-header button {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  opacity: 0.7;
}

.chat-header button:hover {
  opacity: 1;
}

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
}

.chat-msg {
  background: rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 8px;
  font-size: 0.85rem;
}

.chat-msg.me {
  background: rgba(0, 200, 150, 0.15);
  border: 1px solid rgba(0, 200, 150, 0.3);
}

.chat-msg-header {
  font-size: 0.75rem;
  color: #aaa;
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
}

.chat-msg-original {
  font-weight: 500;
  margin-bottom: 4px;
}

.chat-msg-translated {
  color: #00e5ff;
  font-style: italic;
}

.chat-input-area {
  padding: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 8px;
}

.chat-input-area input {
  flex: 1;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 0.85rem;
  outline: none;
}

.chat-input-area input:focus {
  border-color: #00e5ff;
}

.chat-input-area button {
  background: #00e5ff;
  color: #000;
  border: none;
  border-radius: 20px;
  padding: 0 16px;
  font-weight: 600;
  cursor: pointer;
}

.chat-input-area button:hover {
  background: #00c4dd;
}
