/* Emote Studio — Gumloop-style chat UI */

.chat-bubble {
  border-radius: 1rem;
  padding: 0.75rem 1rem;
  max-width: 85%;
  line-height: 1.45;
  animation: bubbleIn 0.25s ease-out;
}
.chat-bubble.user {
  background: #2563eb;
  color: #fff;
  margin-left: auto;
  border-bottom-right-radius: 0.25rem;
}
.chat-bubble.agent {
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 0.25rem;
}
.dark .chat-bubble.agent {
  background: #1f2937;
  color: #f3f4f6;
  border-color: #374151;
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.typing-dot {
  width: 6px; height: 6px; border-radius: 9999px;
  background: #9ca3af;
  animation: typingBlink 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBlink {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.progress-track {
  height: 6px;
  border-radius: 9999px;
  background: #e5e7eb;
  overflow: hidden;
}
.dark .progress-track { background: #374151; }
.progress-fill {
  height: 100%;
  background: #2563eb;
  border-radius: 9999px;
  transition: width 0.15s linear;
}

.dropzone-active {
  outline: 2px dashed #2563eb;
  outline-offset: 4px;
  background: rgba(37, 99, 235, 0.06);
}

video, canvas { max-width: 100%; height: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.6rem;
  font-weight: 500;
  font-size: 0.8rem;
  transition: background 0.15s, transform 0.05s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-ghost {
  background: transparent;
  border-color: #d1d5db;
  color: #374151;
}
.dark .btn-ghost { border-color: #4b5563; color: #d1d5db; }
.btn-ghost:hover { background: rgba(0,0,0,0.04); }
.dark .btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
}
.dark .card { background: #111827; border-color: #374151; }

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  background: #dbeafe;
  color: #1d4ed8;
}
.dark .badge { background: #1e3a8a; color: #bfdbfe; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 9999px; }
.dark ::-webkit-scrollbar-thumb { background: #4b5563; }
