/* Voice Search Tool Styles */
/* This file contains additional styles for the voice-search tool */

/* Custom scrollbar for search results */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: transparent;
}

.search-results::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
}

/* Dark mode adjustments */
[data-theme="dark"] .transcript-box {
  background: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .status-indicator {
  background: rgba(139, 92, 246, 0.1);
}

[data-theme="dark"] .instructions {
  background: rgba(139, 92, 246, 0.08);
}

/* Focus styles for accessibility */
.search-input:focus-visible,
.mic-button:focus-visible,
.control-btn:focus-visible,
.language-select:focus-visible {
  outline: 2px solid var(--voice-primary);
  outline-offset: 2px;
}

/* Animation for search results */
.search-results {
  animation: fadeIn 0.3s ease;
}

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

/* Loading state for microphone */
.mic-button.loading {
  pointer-events: none;
}

.mic-button.loading .mic-icon {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}