/* DA ESTA 1.0 — Entrada Rápida por Voz (TV-01) */

.voice-entry-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: inherit;
  color: var(--text, #161616);
}

.voice-entry-intro {
  font-size: 0.84rem;
  color: var(--muted, #6c6c6c);
  margin: 0;
  line-height: 1.4;
}

/* Hero Card de Fala Direta (Ação Principal Prioritária - Sem Tons Escuros) */
.voice-hero-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.voice-hero-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  background: #f8fafc !important;
  color: #24292f !important;
  border: 1px solid #d0d7de !important;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease-in-out;
  box-shadow: 0 1px 2px rgba(27, 31, 36, 0.04);
  box-sizing: border-box;
}

.voice-hero-btn:hover {
  background: #f1f5f9 !important;
  border-color: #0969da !important;
  box-shadow: 0 2px 6px rgba(9, 105, 218, 0.08);
}

.voice-hero-btn:focus {
  outline: none;
  background: #f8fafc !important;
  border-color: #0969da !important;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.18) !important;
}

.voice-hero-btn:active {
  background: #e2e8f0 !important;
  border-color: #0969da !important;
}

.voice-hero-mic-ring {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e8f0fe;
  border: 1px solid #d2e3fc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  transition: all 0.15s ease;
}

.voice-hero-btn:hover .voice-hero-mic-ring {
  background: #dbe8fd;
  border-color: #b6d4fe;
}

.voice-hero-btn:focus .voice-hero-mic-ring {
  border-color: #0969da;
}

.voice-hero-btn:active .voice-hero-mic-ring {
  background: #cce0fc;
}

.voice-hero-btn.recording {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
  animation: pulse-recording 1.6s infinite;
}

.voice-hero-btn.recording .voice-hero-mic-ring {
  background: #fee2e2 !important;
  border: 1px solid #fca5a5 !important;
  animation: pulse-ring 1.6s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes pulse-recording {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}

.voice-hero-texts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.voice-hero-title {
  font-size: 0.94rem;
  font-weight: 600;
  color: #24292f;
  transition: color 0.15s ease;
}

.voice-hero-btn:hover .voice-hero-title,
.voice-hero-btn:focus .voice-hero-title {
  color: #0969da;
}

.voice-hero-btn:active .voice-hero-title {
  color: #0858b8;
}

.voice-hero-btn.recording .voice-hero-title {
  color: #b91c1c !important;
}

.voice-hero-sub {
  font-size: 0.8rem;
  color: #57606a;
}

.voice-hero-btn.recording .voice-hero-sub {
  color: #dc2626 !important;
  font-weight: 500;
}

.voice-status-msg {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
  background: #e8f0fe;
  color: #1a73e8;
  border: 1px solid #d2e3fc;
}

.voice-status-msg.error {
  background: #fce8e6;
  color: #c5221f;
  border-color: #fad2cf;
}

.voice-status-msg.success {
  background: #e6f4ea;
  color: #137333;
  border-color: #ceead6;
}

.voice-transcript-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--paper-solid, #ffffff);
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
}

.voice-transcript-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voice-transcript-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #6c6c6c);
}

.voice-transcript-meta {
  font-size: 0.72rem;
  color: var(--muted, #6c6c6c);
}

.voice-transcript-input {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.86rem;
  line-height: 1.4;
  resize: vertical;
  font-family: inherit;
  color: var(--text, #161616);
  background: #faf9f6;
  box-sizing: border-box;
}

.voice-transcript-input:focus {
  outline: none;
  border-color: #0969da;
  background: var(--paper-solid, #ffffff);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.12);
}

.voice-transcript-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.voice-btn-interpret {
  padding: 6px 14px;
  border-radius: 16px;
  background: #0969da;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid #0969da;
  cursor: pointer;
  transition: all 0.15s ease;
}

.voice-btn-interpret:hover:not(:disabled) {
  background: #0858b8;
  border-color: #0858b8;
}

.voice-btn-interpret:disabled {
  opacity: 0.45;
  background: #0969da;
  cursor: not-allowed;
}

.voice-btn-clear {
  padding: 6px 12px;
  border-radius: 16px;
  background: transparent;
  color: var(--muted, #6c6c6c);
  font-size: 0.76rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.voice-btn-clear:hover {
  color: var(--text, #161616);
  border-color: rgba(0, 0, 0, 0.25);
}

/* Balão Único 'Confirma?' */
.voice-confirm-balloon {
  background: var(--paper-solid, #ffffff);
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}

.voice-balloon-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding-bottom: 10px;
}

.voice-balloon-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-balloon-icon {
  font-size: 1.2rem;
}

.voice-balloon-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  color: var(--text, #161616);
  letter-spacing: -0.01em;
}

.voice-balloon-subtitle {
  font-size: 0.8rem;
  color: var(--muted, #6c6c6c);
  margin: 4px 0 0 0;
}

.voice-entries-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.voice-entry-card {
  background: #faf9f6;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.voice-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.voice-entry-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.voice-entry-num-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted, #6c6c6c);
  text-transform: uppercase;
}

.voice-entry-type-tag {
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #161616;
  color: #ffffff;
}

.voice-entry-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: #161616;
}

.voice-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px 12px;
  font-size: 0.8rem;
  padding-top: 4px;
}

.voice-entry-field {
  display: flex;
  flex-direction: column;
}

.voice-field-label {
  font-size: 0.68rem;
  color: var(--muted, #6c6c6c);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.voice-field-value {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text, #161616);
  margin-top: 1px;
}

.voice-field-pending {
  color: #c5221f !important;
  font-weight: 600;
}

.voice-entry-pendings-box {
  background: #fef7e0;
  border: 1px solid #f9ab00;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.76rem;
  color: #b06000;
  display: flex;
  align-items: center;
  gap: 6px;
}

.voice-balloon-alert {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

.voice-balloon-alert.complete {
  background: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.voice-balloon-alert.pending {
  background: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

.voice-balloon-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 4px;
}

.voice-btn-confirm {
  padding: 9px 20px;
  border-radius: 20px;
  background: #1f883d;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  border: 1px solid #1a7f37;
  cursor: pointer;
  transition: all 0.15s ease;
}

.voice-btn-confirm:hover:not(:disabled) {
  background: #1a7f37;
  border-color: #166e30;
}

.voice-btn-confirm:disabled {
  background: #dadce0 !important;
  border-color: #dadce0 !important;
  color: #80868b !important;
  cursor: not-allowed !important;
  opacity: 0.8;
}

.voice-btn-discard {
  padding: 9px 16px;
  border-radius: 20px;
  background: transparent;
  color: var(--muted, #6c6c6c);
  font-size: 0.84rem;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.voice-btn-discard:hover {
  color: var(--text, #161616);
  border-color: rgba(0, 0, 0, 0.25);
}
