/* Voice Assistant Styles */
.voice-assistant-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  font-family: 'Rajdhani', sans-serif;
}

.voice-assistant-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #00ffff;
  color: #00ffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
  transition: all 0.3s ease;
  font-size: 24px;
}

.voice-assistant-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.7);
}

.voice-assistant-button.active {
  background: rgba(0, 255, 255, 0.3);
}

.voice-assistant-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid #00ffff;
  border-radius: 10px;
  padding: 15px;
  color: white;
  display: none;
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
  max-height: 400px;
  overflow-y: auto;
}

.voice-assistant-panel.visible {
  display: block;
  animation: fade-in 0.3s ease;
}

.voice-assistant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 255, 255, 0.3);
}

.voice-assistant-title {
  font-size: 18px;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 5px rgba(0, 255, 255, 0.5);
}

.voice-assistant-close {
  cursor: pointer;
  color: #00ffff;
  font-size: 18px;
  transition: transform 0.2s ease;
}

.voice-assistant-close:hover {
  transform: scale(1.2);
}

.voice-assistant-messages {
  margin-bottom: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.voice-assistant-message {
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 8px;
  position: relative;
  line-height: 1.4;
}

.voice-assistant-user-message {
  background: rgba(0, 200, 255, 0.2);
  border-left: 3px solid #00ffff;
  margin-right: 20px;
}

.voice-assistant-ai-message {
  background: rgba(255, 51, 112, 0.2);
  border-left: 3px solid #ff3370;
  margin-left: 20px;
}

.voice-assistant-input-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 10px;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.voice-assistant-input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  padding: 8px;
  font-family: 'Rajdhani', sans-serif;
  outline: none;
}

.voice-assistant-send {
  background: transparent;
  border: none;
  color: #00ffff;
  cursor: pointer;
  padding: 8px;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.voice-assistant-send:hover {
  transform: scale(1.2);
}

.voice-assistant-listening-indicator {
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.voice-assistant-listening-wave {
  display: inline-block;
  width: 4px;
  height: 20px;
  margin: 0 2px;
  background: #00ffff;
  animation: wave 1s infinite ease-in-out;
  border-radius: 2px;
}

.voice-assistant-listening-wave:nth-child(2) {
  animation-delay: 0.1s;
}

.voice-assistant-listening-wave:nth-child(3) {
  animation-delay: 0.2s;
}

.voice-assistant-listening-wave:nth-child(4) {
  animation-delay: 0.3s;
}

.voice-assistant-listening-wave:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes wave {
  0%, 100% {
    height: 5px;
  }
  50% {
    height: 20px;
  }
}

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

/* Loading animation for assistant responses */
.voice-assistant-loading {
  display: flex;
  padding: 10px;
}

.voice-assistant-loading-dot {
  width: 8px;
  height: 8px;
  background: #00ffff;
  border-radius: 50%;
  margin: 0 3px;
  animation: pulse 1s infinite alternate ease-in-out;
}

.voice-assistant-loading-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.voice-assistant-loading-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes pulse {
  from {
    opacity: 0.4;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Cyberpunk effect for messages */
.voice-assistant-message::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 255, 255, 0.05) 50%, transparent 100%);
  animation: scan 2s linear infinite;
  z-index: -1;
  pointer-events: none;
}

@keyframes scan {
  0% {
    background-position: -300px 0;
  }
  100% {
    background-position: 300px 0;
  }
}

/* Responsiveness */
@media (max-width: 768px) {
  .voice-assistant-panel {
    width: 250px;
  }
} 