/* Base layout */
body {
  background: radial-gradient(circle at center, #0b0f19 0%, #05070d 70%);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Voice orb */
#orb {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin-bottom: 32px;
  transition: all 0.35s ease;
}

/* Idle */
#orb.idle {
  background: radial-gradient(circle, #222, #0a0a0a);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.08);
}

/* Listening */
#orb.listening {
  background: radial-gradient(circle, #00ff99, #006644);
  box-shadow: 0 0 70px rgba(0, 255, 153, 0.9);
  animation: pulse 1.6s infinite;
}

/* Speaking */
#orb.speaking {
  background: radial-gradient(circle, #00e5ff, #003b44);
  box-shadow: 0 0 90px rgba(0, 229, 255, 1);
  animation: speak 0.35s infinite alternate;
}

/* Toggle button */
#toggleBtn {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #2979ff, #00e5ff);
  color: #001018;
  letter-spacing: 0.6px;
  box-shadow: 0 8px 30px rgba(0, 229, 255, 0.45);
  transition: all 0.3s ease;
}

#toggleBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 229, 255, 0.7);
}

#toggleBtn.active {
  background: linear-gradient(135deg, #ff1744, #ff616f);
  color: white;
  box-shadow: 0 8px 30px rgba(255, 23, 68, 0.5);
}

/* Status text */
#status {
  margin-top: 18px;
  font-size: 15px;
  color: #9aa4b2;
  min-height: 20px;
  text-align: center;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.85;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes speak {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}
