/* Transcription Component Styles */
.transcription-highlight {
  background-color: rgba(59, 130, 246, 0.1);
  border-left: 3px solid #3b82f6;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 0.25rem;
  animation: fadeIn 0.5s ease-in-out;
}

.transcription-error {
  background-color: rgba(239, 68, 68, 0.1);
  border-left: 3px solid #ef4444;
  padding: 0.5rem;
  margin-bottom: 0.75rem;
  border-radius: 0.25rem;
}

.transcription-user {
  font-weight: 500;
  color: #3b82f6;
  margin-right: 0.5rem;
}

.transcription-timestamp {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Toggle animation */
.transcription-panel-collapsed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.transcription-panel-expanded {
  max-height: 500px;
  transition: max-height 0.5s ease-in;
}

/* Loading indicator */
.transcription-loading {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 13px;
}

.transcription-loading div {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #3b82f6;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.transcription-loading div:nth-child(1) {
  left: 8px;
  animation: transcription-loading1 0.6s infinite;
}

.transcription-loading div:nth-child(2) {
  left: 8px;
  animation: transcription-loading2 0.6s infinite;
}

.transcription-loading div:nth-child(3) {
  left: 32px;
  animation: transcription-loading2 0.6s infinite;
}

.transcription-loading div:nth-child(4) {
  left: 56px;
  animation: transcription-loading3 0.6s infinite;
}

@keyframes transcription-loading1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes transcription-loading3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}

@keyframes transcription-loading2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}
