/* books-studio-v2-voice.css - Sala de Voz */

.bs-voice-room {
  display: flex;
  flex-direction: column;
  height: 520px;
  background: var(--surface, #1e1e2e);
  border-radius: 10px;
  overflow: hidden;
}

.bs-voice-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface2, #2a2a3a);
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.1));
  flex-shrink: 0;
}

.bs-voice-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text, #e0e0e0);
}

.bs-voice-subtitle {
  font-size: 12px;
  color: var(--text-muted, #888);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bs-voice-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.bs-voice-empty {
  color: var(--text-muted, #888);
  font-size: 13px;
  text-align: center;
  margin-top: 40px;
}

.bs-voice-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bs-voice-bubble-user {
  align-self: flex-end;
  background: var(--accent, #6366f1);
  color: #fff;
  border-bottom-right-radius: 2px;
}

.bs-voice-bubble-assistant {
  align-self: flex-start;
  background: var(--surface2, #2a2a3a);
  color: var(--text, #e0e0e0);
  border-bottom-left-radius: 2px;
  border: 1px solid var(--border, rgba(255,255,255,0.1));
}

.bs-voice-bubble-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.bs-voice-bubble-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.bs-voice-player {
  width: 100%;
  margin-top: 6px;
  height: 30px;
  border-radius: 6px;
  background: transparent;
}

.bs-voice-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--surface2, #2a2a3a);
  border-top: 1px solid var(--border, rgba(255,255,255,0.1));
  flex-shrink: 0;
  align-items: center;
}

.bs-voice-mic-btn {
  background: var(--surface3, #333347);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  color: var(--text, #e0e0e0);
  border-radius: 8px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}

.bs-voice-mic-btn:hover {
  background: var(--accent, #6366f1);
  color: #fff;
}

.bs-voice-input {
  flex: 1;
  background: var(--surface, #1e1e2e);
  border: 1px solid var(--border, rgba(255,255,255,0.1));
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text, #e0e0e0);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.bs-voice-input:focus {
  border-color: var(--accent, #6366f1);
}

.bs-voice-send-btn {
  background: var(--accent, #6366f1);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.bs-voice-send-btn:hover {
  opacity: 0.85;
}

.bs-voice-send-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bs-voice-status {
  padding: 4px 16px 8px;
  font-size: 12px;
  color: var(--accent, #6366f1);
  min-height: 20px;
  flex-shrink: 0;
  background: var(--surface2, #2a2a3a);
}
