/* VoiceAI global styles */
* { -webkit-font-smoothing: antialiased; }
html { scroll-behavior: smooth; }

.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glass {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
}
.glow {
  box-shadow: 0 0 60px -15px rgba(99,102,241,0.5);
}

/* Voice orb animation */
.orb {
  position: relative;
  border-radius: 9999px;
  transition: all 0.3s ease;
}
.orb.listening { animation: pulse-ring 1.5s infinite; }
.orb.speaking { animation: pulse-fast 0.6s infinite; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(99,102,241,0.6); }
  70% { box-shadow: 0 0 0 30px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}
@keyframes pulse-fast {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Audio bars */
.bars { display: flex; align-items: center; gap: 3px; height: 40px; }
.bars span {
  display: block; width: 4px; background: currentColor; border-radius: 2px;
  height: 8px; animation: bar 1s infinite ease-in-out;
}
.bars span:nth-child(2){ animation-delay: .1s }
.bars span:nth-child(3){ animation-delay: .2s }
.bars span:nth-child(4){ animation-delay: .3s }
.bars span:nth-child(5){ animation-delay: .4s }
@keyframes bar { 0%,100%{ height:8px } 50%{ height:36px } }

.fade-in { animation: fadeIn .4s ease; }
@keyframes fadeIn { from{ opacity:0; transform:translateY(8px) } to{ opacity:1; transform:translateY(0) } }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100,116,139,.4); border-radius: 4px; }

.chat-msg { animation: fadeIn .3s ease; }
.sidebar-link.active { background: rgba(99,102,241,.12); color:#4f46e5; border-left: 3px solid #4f46e5; }
