/* Estilos gerais */
.alfabetizacao-oral-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

.alfabetizacao-oral-container h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

/* Formulário */
.alfabetizacao-oral-form-group {
  margin-bottom: 20px;
}

.alfabetizacao-oral-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.alfabetizacao-oral-form-group input,
.alfabetizacao-oral-form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

/* Botões */
.alfabetizacao-oral-form-actions {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
}

.alfabetizacao-oral-next-btn,
.alfabetizacao-oral-prev-btn,
.alfabetizacao-oral-restart-btn,
.alfabetizacao-oral-record-btn,
.alfabetizacao-oral-stop-btn,
.alfabetizacao-oral-print-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.alfabetizacao-oral-next-btn,
.alfabetizacao-oral-print-btn {
  background-color: #0073aa;
  color: white;
}

.alfabetizacao-oral-next-btn:hover,
.alfabetizacao-oral-print-btn:hover {
  background-color: #005177;
}

.alfabetizacao-oral-prev-btn {
  background-color: #f0f0f0;
  color: #333;
}

.alfabetizacao-oral-prev-btn:hover {
  background-color: #e0e0e0;
}

.alfabetizacao-oral-restart-btn {
  background-color: #4caf50;
  color: white;
}

.alfabetizacao-oral-restart-btn:hover {
  background-color: #388e3c;
}

.alfabetizacao-oral-record-btn {
  background-color: #f44336;
  color: white;
}

.alfabetizacao-oral-record-btn:hover {
  background-color: #d32f2f;
}

.alfabetizacao-oral-stop-btn {
  background-color: #9e9e9e;
  color: white;
}

.alfabetizacao-oral-stop-btn:hover {
  background-color: #757575;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Instruções */
.alfabetizacao-oral-instructions {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alfabetizacao-oral-instructions ol {
  margin-left: 20px;
}

/* Perguntas */
.alfabetizacao-oral-question {
  background-color: #f0f7ff;
  padding: 20px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.alfabetizacao-oral-question .question-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.alfabetizacao-oral-question .question-description {
  color: #666;
  font-style: italic;
}

/* Gravação */
.alfabetizacao-oral-recording {
  margin: 20px 0;
  text-align: center;
}

.alfabetizacao-oral-recording-status {
  margin: 10px 0;
  font-weight: 600;
}

.alfabetizacao-oral-recording-status.recording {
  color: #f44336;
}

.alfabetizacao-oral-recording-status.processing {
  color: #ff9800;
}

.alfabetizacao-oral-recording-status.success {
  color: #4caf50;
}

.alfabetizacao-oral-recording-status.error {
  color: #f44336;
}

.alfabetizacao-oral-timer {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
  font-family: monospace;
}

/* Resultado */
.alfabetizacao-oral-result {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
  margin: 20px 0;
}

.alfabetizacao-oral-transcription,
.alfabetizacao-oral-analysis {
  margin-bottom: 15px;
}

.alfabetizacao-oral-transcription h5,
.alfabetizacao-oral-analysis h5 {
  margin-bottom: 5px;
  color: #333;
}

/* Loading */
.alfabetizacao-oral-loading {
  text-align: center;
  padding: 30px;
}

.alfabetizacao-oral-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #0073aa;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Resultado final */
.alfabetizacao-oral-final-result {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 4px;
}

.alfabetizacao-oral-final-analysis {
  line-height: 1.6;
}

.alfabetizacao-oral-print-section {
  margin-top: 20px;
  text-align: center;
}

/* Responsividade */
@media (max-width: 600px) {
  .alfabetizacao-oral-form-actions {
    flex-direction: column;
    gap: 10px;
  }

  .alfabetizacao-oral-next-btn,
  .alfabetizacao-oral-prev-btn,
  .alfabetizacao-oral-restart-btn,
  .alfabetizacao-oral-record-btn,
  .alfabetizacao-oral-stop-btn,
  .alfabetizacao-oral-print-btn {
    width: 100%;
  }
}

