/* ═══════════════════════════════════════════════════════════════════════════════
   🎤🔊 VOICE CONTROLS - الصوت الحي
   GraTech Commander - Voice Styles
   ═══════════════════════════════════════════════════════════════════════════════ */

.voice-btn,
.speak-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.voice-btn:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: var(--success);
  transform: scale(1.1);
}

.speak-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  border-color: var(--accent-primary);
  transform: scale(1.1);
}

/* Listening Animation */
.voice-btn.listening {
  background: var(--success);
  border-color: var(--success);
  animation: pulse-voice 1.5s infinite;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}

@keyframes pulse-voice {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.8);
  }
}

/* Speaking Animation */
.speak-btn.speaking {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  animation: pulse-speak 0.8s infinite;
}

@keyframes pulse-speak {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

/* Voice Status Bar */
.voice-status {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: 12px;
  margin-top: 12px;
}

.voice-status.hidden {
  display: none;
}

.voice-indicator {
  font-size: 1.5rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.voice-text {
  color: var(--success);
  font-weight: 600;
}

.voice-stop {
  margin-right: auto;
  background: var(--error);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.voice-stop:hover {
  background: #dc2626;
}
