.input-with-voice { position: relative; display: flex; align-items: center; } .voice-btn { width: 40px; height: 40px; border-radius: 50%; background: #007bff; color: white; border: none; margin-left: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; } .voice-btn.listening { background: #dc3545; animation: pulse 1.5s infinite; } @keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }